aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-02-25 12:02:27 -0300
committerEuAndreh <eu@euandre.org>2022-02-25 12:02:27 -0300
commit0431ba2d80c5cb71b5acaf6172900cebc3b43c65 (patch)
tree9012ca2cd2d3f64b6e1d9ab3a0b30588cd95a57b /src
parentsrc/bin/backup: exclude ~/.cache from backup (diff)
downloaddotfiles-0431ba2d80c5cb71b5acaf6172900cebc3b43c65.tar.gz
dotfiles-0431ba2d80c5cb71b5acaf6172900cebc3b43c65.tar.xz
src/bin/backup: Change remote path usurpador-borg/ -> borg/usurpador/
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bin/backup10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/backup b/src/bin/backup
index 631e28fa..159f8db1 100755
--- a/src/bin/backup
+++ b/src/bin/backup
@@ -65,21 +65,21 @@ export BORG_PASSCOMMAND='pass show Usurpador/borg/passphrase'
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
export SSH_AUTH_SOCK
-borg init -e repokey-blake2 suyin:usurpador-borg ||:
-borg key export suyin:usurpador-borg ~/archive/usurpador-borg-key.txt
+borg init -e repokey-blake2 suyin:borg/usurpador ||:
+borg key export suyin:borg/usurpador ~/archive/usurpador-borg-key.txt
borg create \
--exclude ~/.cache \
--stats \
--compression lzma,9 \
--comment "${2:-}" \
- "suyin:usurpador-borg::{hostname}-{now}-${1:-cronjob}" \
+ "suyin:borg/usurpador::{hostname}-{now}-${1:-cronjob}" \
~/
borg check \
--verbose \
--last 3 \
- suyin:usurpador-borg
+ suyin:borg/usurpador
borg prune \
--verbose \
@@ -87,6 +87,6 @@ borg prune \
--keep-within=6m \
--keep-weekly=52 \
--keep-monthly=24 \
- suyin:usurpador-borg
+ suyin:borg/usurpador
ssh suyin quota