backups: update
parent
b7acc5034d
commit
74e02ccf77
|
@ -1,38 +1,49 @@
|
||||||
|
|
||||||
$HOME/.Trash
|
$HOME/.Trash
|
||||||
$HOME/.cache
|
$HOME/.cache
|
||||||
|
$HOME/.config/**/cache
|
||||||
|
$HOME/.config/**/Cache
|
||||||
|
$HOME/.config/emacs/.local
|
||||||
$HOME/.cargo
|
$HOME/.cargo
|
||||||
$HOME/.config/google-chrome
|
$HOME/.config/google-chrome
|
||||||
$HOME/.esmtp_queue
|
$HOME/.esmtp_queue
|
||||||
$HOME/.java
|
$HOME/.java
|
||||||
$HOME/.local/bin
|
$HOME/.local/bin
|
||||||
$HOME/.local/lib
|
$HOME/.local/lib
|
||||||
$HOME/.mozilla/firefox/*/storage/default/*/cache
|
$HOME/.local/share/Steam
|
||||||
|
$HOME/.mozilla/firefox/**/storage/default/**/cache
|
||||||
$HOME/.npm
|
$HOME/.npm
|
||||||
$HOME/.rustup
|
$HOME/.rustup
|
||||||
$HOME/.steam
|
$HOME/.steam
|
||||||
$HOME/.steampath
|
$HOME/.steampath
|
||||||
$HOME/.steampid
|
$HOME/.steampid
|
||||||
$HOME/.subversion
|
$HOME/.subversion
|
||||||
$HOME/.thunderbird/*/ImapMail
|
$HOME/.thunderbird/**/ImapMail
|
||||||
$HOME/.thunderbird/*/Mail
|
$HOME/.thunderbird/**/Mail
|
||||||
$HOME/.var/app/*/cache # Flatpak
|
$HOME/.tmp
|
||||||
|
$HOME/.var/app/**/cache
|
||||||
|
$HOME/.wine
|
||||||
|
$HOME/.vscode-oss
|
||||||
|
|
||||||
|
$HOME/Documents
|
||||||
|
$HOME/Nextcloud
|
||||||
$HOME/Downloads/nobkup
|
$HOME/Downloads/nobkup
|
||||||
$HOME/Music
|
$HOME/Music
|
||||||
|
$HOME/rpmbuild
|
||||||
$HOME/tmp
|
$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/ghq/**/node_modules
|
||||||
|
$HOME/go
|
||||||
|
$HOME/GPUCache
|
||||||
|
|
||||||
$HOME/.restore-info/tmp
|
$HOME/.restore-info/tmp
|
||||||
|
|
||||||
# Nix
|
|
||||||
$HOME/.nix-profile
|
$HOME/.nix-profile
|
||||||
$HOME/.nix-defexpr
|
$HOME/.nix-defexpr
|
||||||
|
|
||||||
# Nextcloud
|
|
||||||
.owncloudsync.log
|
.owncloudsync.log
|
||||||
.sync_*
|
.sync_*
|
||||||
.sync-exclude.lst
|
.sync-exclude.lst
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
mkdir -p ~/.restore-info/tmp
|
mkdir -p ~/.restore-info/tmp
|
||||||
chmod 700 ~/.restore-info
|
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_ACCESS_KEY_ID=$(pash show personal-backups/aws-key-id)
|
||||||
export AWS_SECRET_ACCESS_KEY=$(pash show personal-backups/aws-access-key)
|
export AWS_SECRET_ACCESS_KEY=$(pash show personal-backups/aws-access-key)
|
||||||
|
|
||||||
|
@ -79,6 +81,7 @@ case "$1" in
|
||||||
restic_exit_code="$?"
|
restic_exit_code="$?"
|
||||||
backup_stopped=$(date +%k%M%S)
|
backup_stopped=$(date +%k%M%S)
|
||||||
|
|
||||||
|
echo "sending email report"
|
||||||
cat <<EOMAIL | msmtp --read-envelope-from $BACKUP_EMAIL_TO
|
cat <<EOMAIL | msmtp --read-envelope-from $BACKUP_EMAIL_TO
|
||||||
To: $BACKUP_EMAIL_TO
|
To: $BACKUP_EMAIL_TO
|
||||||
From: $BACKUP_EMAIL_FROM
|
From: $BACKUP_EMAIL_FROM
|
||||||
|
@ -101,6 +104,7 @@ EOMAIL
|
||||||
|
|
||||||
maint_done=$(date +%k%M%S)
|
maint_done=$(date +%k%M%S)
|
||||||
|
|
||||||
|
echo "sending email report"
|
||||||
cat <<EOMAIL | msmtp --read-envelope-from $BACKUP_EMAIL_TO
|
cat <<EOMAIL | msmtp --read-envelope-from $BACKUP_EMAIL_TO
|
||||||
To: $BACKUP_EMAIL_TO
|
To: $BACKUP_EMAIL_TO
|
||||||
From: $BACKUP_EMAIL_FROM
|
From: $BACKUP_EMAIL_FROM
|
||||||
|
|
Loading…
Reference in New Issue