commit ab5ceca8871b8237adb3191d2049e1a0f5276e0d parent 612e30288c7ddeba87ceb1bf90830ee3e5c8226d Author: pyratebeard <root@pyratebeard.net> Date: Fri, 8 Sep 2023 23:12:27 +0100 updates Diffstat:
A | software/borg.md | | | 24 | ++++++++++++++++++++++++ |
M | tech-index.md | | | 1 | + |
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/software/borg.md b/software/borg.md @@ -0,0 +1,24 @@ +# borg + +* create repo +``` +borg init -e repokey /path/to/repo +``` +* create archive +``` +borg create /path/to/repo::archive /path/to/backup +``` +* or over ssh +``` +borg create ssh://user@host/path/to/repo::archive /path/to/backup +``` + +## my procedure +``` +borg init -e repokey /media/backup/borg-hostname +borg create /media/backup/borg-hostname::$(date +%Y%m%d) ${HOME} +borg list /media/backup/borg-hostname +sudo borg mount /media/backup/borg-hostname::$(date +%Y%m%d) /media/recover +sudo umount /media/recover +rclone sync /media/backup <cloud_storage>:<bucket> +``` diff --git a/tech-index.md b/tech-index.md @@ -79,6 +79,7 @@ * [nginx](/software/nginx) * [peertube](/software/peertube) * [wagtail](/software/wagtail) +* [borg](/software/borg) iwgetid wlp6s0 -r