From 74e02ccf77d15f59e356a596c784bdabed999fcd Mon Sep 17 00:00:00 2001 From: earnest ma Date: Thu, 30 Dec 2021 14:14:51 -0500 Subject: [PATCH] backups: update --- .restic/ignore.txt | 27 +++++++++++++++++++-------- .restic/restic-do | 6 +++++- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/.restic/ignore.txt b/.restic/ignore.txt index 22bf2a8..4686805 100644 --- a/.restic/ignore.txt +++ b/.restic/ignore.txt @@ -1,38 +1,49 @@ $HOME/.Trash $HOME/.cache +$HOME/.config/**/cache +$HOME/.config/**/Cache +$HOME/.config/emacs/.local $HOME/.cargo $HOME/.config/google-chrome $HOME/.esmtp_queue $HOME/.java $HOME/.local/bin $HOME/.local/lib -$HOME/.mozilla/firefox/*/storage/default/*/cache +$HOME/.local/share/Steam +$HOME/.mozilla/firefox/**/storage/default/**/cache $HOME/.npm $HOME/.rustup $HOME/.steam $HOME/.steampath $HOME/.steampid $HOME/.subversion -$HOME/.thunderbird/*/ImapMail -$HOME/.thunderbird/*/Mail -$HOME/.var/app/*/cache # Flatpak +$HOME/.thunderbird/**/ImapMail +$HOME/.thunderbird/**/Mail +$HOME/.tmp +$HOME/.var/app/**/cache +$HOME/.wine +$HOME/.vscode-oss +$HOME/Documents +$HOME/Nextcloud $HOME/Downloads/nobkup $HOME/Music +$HOME/rpmbuild $HOME/tmp -$HOME/Videos # temporary until i get it cleared up +$HOME/Videos +$HOME/VirtualBox VMs -$HOME/ghq # consider removing +$HOME/ghq $HOME/ghq/**/node_modules +$HOME/go +$HOME/GPUCache $HOME/.restore-info/tmp -# Nix $HOME/.nix-profile $HOME/.nix-defexpr -# Nextcloud .owncloudsync.log .sync_* .sync-exclude.lst diff --git a/.restic/restic-do b/.restic/restic-do index 51f8c81..e9fa5c3 100755 --- a/.restic/restic-do +++ b/.restic/restic-do @@ -4,7 +4,9 @@ mkdir -p ~/.restore-info/tmp chmod 700 ~/.restore-info -# ./restic -r s3:https:/// init +# restic-do exec init +# restic-do exec mount /path/to-restorepoint (mkdir first) + export AWS_ACCESS_KEY_ID=$(pash show personal-backups/aws-key-id) export AWS_SECRET_ACCESS_KEY=$(pash show personal-backups/aws-access-key) @@ -79,6 +81,7 @@ case "$1" in restic_exit_code="$?" backup_stopped=$(date +%k%M%S) + echo "sending email report" cat <