backups: update
parent
b7acc5034d
commit
74e02ccf77
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue