backups: update

pull/1/head
earnest ma 2021-12-30 14:14:51 -05:00
parent b7acc5034d
commit 74e02ccf77
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
2 changed files with 24 additions and 9 deletions

View File

@ -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

View File

@ -4,7 +4,9 @@
mkdir -p ~/.restore-info/tmp
chmod 700 ~/.restore-info
# ./restic -r s3:https://<WASABI-SERVICE-URL>/<WASABI-BUCKET-NAME> 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 <<EOMAIL | msmtp --read-envelope-from $BACKUP_EMAIL_TO
To: $BACKUP_EMAIL_TO
From: $BACKUP_EMAIL_FROM
@ -101,6 +104,7 @@ EOMAIL
maint_done=$(date +%k%M%S)
echo "sending email report"
cat <<EOMAIL | msmtp --read-envelope-from $BACKUP_EMAIL_TO
To: $BACKUP_EMAIL_TO
From: $BACKUP_EMAIL_FROM