Update backup script

This commit is contained in:
2023-05-15 14:06:39 +02:00
parent c43927140c
commit 90b9744d1c
3 changed files with 20 additions and 5 deletions

View File

@@ -9,8 +9,15 @@
#
# Runs `backup` command on $HOME and ignore what is listed in `.resticexclude`
restic \
-o rclone.args="serve restic --stdio --b2-hard-delete --ignore-size --ignore-checksum --update" \
-r rclone:onedrive-vub:restic \
-v backup "$HOME" \
--exclude-file="$HOME/.resticexclude"
# restic \
# -o rclone.args="serve restic --stdio --b2-hard-delete --ignore-size --ignore-checksum --update" \
# -r rclone:onedrive-vub:restic \
# -v backup "$HOME" \
# --exclude-file="$HOME/.resticexclude"
source /etc/restic-env
restic -r b2:"$HOSTNAME" backup \
--one-file-system \
--files-from="$HOME/.resticinclude" \
--exclude-file="$HOME/.resticexclude" \
--verbose=3