From 90b9744d1c93876efd39e38e0977179586980658 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 15 May 2023 14:06:39 +0200 Subject: [PATCH] Update backup script --- .bin/backup-home | 17 ++++++++++++----- .resticexclude | 5 +++++ .resticinclude | 3 +++ 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 .resticinclude diff --git a/.bin/backup-home b/.bin/backup-home index 3e96589..7a1cbcd 100755 --- a/.bin/backup-home +++ b/.bin/backup-home @@ -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 diff --git a/.resticexclude b/.resticexclude index 2295b5a..4663aec 100644 --- a/.resticexclude +++ b/.resticexclude @@ -1,6 +1,8 @@ # Restic ignore # General +.trash +Trash .cache cache Cache @@ -23,6 +25,7 @@ $HOME/.cargo $HOME/.conda $HOME/.config/BraveSoftware/Brave-Browser/Default/Local Storage $HOME/.config/BraveSoftware/Brave-Browser/Default/Local Extension Settings +$HOME/.config/nvm/versions $HOME/.config/devcert $HOME/.espressif $HOME/.local/share/torbrowser @@ -31,4 +34,6 @@ $HOME/.nvm $HOME/.npm $HOME/.nuget $HOME/.yarn +$HOME/.config/yarn $HOME/doc/disk-images +$HOME/.stremio-server diff --git a/.resticinclude b/.resticinclude new file mode 100644 index 0000000..e8acc1d --- /dev/null +++ b/.resticinclude @@ -0,0 +1,3 @@ +/etc +/boot +/home