summary refs log tree commit diff stats
path: root/zsh.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2022-12-17 16:25:06 +0100
committersils <sils@sils.li>2022-12-17 16:25:06 +0100
commited581526fd0643946143f416b002c770adc4abdd (patch)
tree4f7881f192b49e01f3f392541a8b598f6f2a35a5 /zsh.nix
parentadded latex (diff)
downloadnix-config-ed581526fd0643946143f416b002c770adc4abdd.tar.gz
nix-config-ed581526fd0643946143f416b002c770adc4abdd.zip
new restic cache dir
Diffstat (limited to 'zsh.nix')
-rw-r--r--zsh.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/zsh.nix b/zsh.nix
index b86ca51..eeb3869 100644
--- a/zsh.nix
+++ b/zsh.nix
@@ -22,7 +22,7 @@
 		alias repreconf='restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd'
 		alias b-del="sudo btrfs subv delet /srv/snapshots/home"
 		alias b-shot="sudo btrfs subvolume snapshot -r /home /srv/snapshots/home"
-		alias b-home='[ -d /srv/snapshots/home ] && sudo btrfs subvolume delete /srv/snapshots/home; sudo btrfs subvolume snapshot -r /home /srv/snapshots/home; sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd backup /srv/snapshots/home;'
+		alias b-home='[ -d /srv/snapshots/home ] && sudo btrfs subvolume delete /srv/snapshots/home; sudo btrfs subvolume snapshot -r /home /srv/snapshots/home; sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd --cache-dir /srv/.restic-cache backup /srv/snapshots/home;'
 		alias r-clean="sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd forget \
                         	--keep-weekly  7  \
                         	--keep-daily   7  \
@@ -31,7 +31,7 @@
                         	--keep-hourly  5  \
                         	--keep-tag prs"
 		alias r-prune="sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd prune"
-		alias r-check="sudo restic -r /mnt/storage/backups --cache-dir /root/.cache --password-file ~/srv/.restic_pswd check"
+		alias r-check="sudo restic -r /mnt/storage/backups --cache-dir /srv/.restic-cache --password-file ~/srv/.restic_pswd check"
 		alias zconf="vim ~/.config/zsh/.zshrc"
 		alias zenv="vim ~/.config/zsh/.zshenv"
 		alias o="xdg-open"