diff options
author | Sam Chudnick <sam@chudnick.com> | 2022-06-16 21:20:08 -0400 |
---|---|---|
committer | Sam Chudnick <sam@chudnick.com> | 2022-06-16 21:20:08 -0400 |
commit | c090ce58a2fd1edfbdefd756e18bf2f2296d8a4a (patch) | |
tree | c13d7edc5b7d422ab2f8384534e1e638cf9ae3d9 /.local/bin/backups | |
parent | 3b279ef824063842af6d5098485aa4541b33cbef (diff) |
Updated for new partition scheme
Updated script for new partition scheme. Removed backups for partitions
that no longer exist.
Diffstat (limited to '.local/bin/backups')
-rwxr-xr-x | .local/bin/backups/assimilate | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/.local/bin/backups/assimilate b/.local/bin/backups/assimilate index dea18d3..fd6ed7f 100755 --- a/.local/bin/backups/assimilate +++ b/.local/bin/backups/assimilate | |||
@@ -48,16 +48,6 @@ sudo $SUDO_OPTS borg create $CREATE_OPTS \ | |||
48 | "/mnt/$LOCATION-backup/$(hostname)::boot-{now:%Y-%m-%d}" /boot 2>>$LOG | 48 | "/mnt/$LOCATION-backup/$(hostname)::boot-{now:%Y-%m-%d}" /boot 2>>$LOG |
49 | check_rc $? | 49 | check_rc $? |
50 | 50 | ||
51 | # Backup home partition | ||
52 | sudo $SUDO_OPTS borg create $CREATE_OPTS \ | ||
53 | "/mnt/$LOCATION-backup/$(hostname)::home-{now:%Y-%m-%d}" /home 2>>$LOG | ||
54 | check_rc $? | ||
55 | |||
56 | # Backup var partition | ||
57 | sudo $SUDO_OPTS borg create $CREATE_OPTS \ | ||
58 | "/mnt/$LOCATION-backup/$(hostname)::var-{now:%Y-%m-%d}" /var 2>>$LOG | ||
59 | check_rc $? | ||
60 | |||
61 | # Send notifications based on return codes of archives | 51 | # Send notifications based on return codes of archives |
62 | 52 | ||
63 | [ $WARNING -eq 1 ] && notify-send "One or more archives produced a warning" \ | 53 | [ $WARNING -eq 1 ] && notify-send "One or more archives produced a warning" \ |