Commit Graph

10 Commits

Author SHA1 Message Date
ducoterra
dca1e8522f Switch to network drive backup
Change default vars to network iscsi drive.
2022-02-04 13:50:07 -05:00
ducoterra
7c90ddc5ae Add logging and error handling to backup script
Add much needed logging and error handling to make sure backups happen
more consistently.
2022-02-04 13:49:31 -05:00
ducoterra
672371887c Add open_backup.sh
Add open_backup, a script to mount the encrypted backup drive created in
arch_backup.
2022-02-04 13:49:02 -05:00
ducoterra
f3ce93554d arch_backup major fixes
1. Don't automount disks (dconf changes) this breaks backups
2. Rewrite the entire backup script to handle mounting, decrypting,
   many use cases, etc
3. Update main.yaml to not create mount location for backup drive,
   script will handle it
2022-02-03 12:34:54 -05:00
ducoterra
b315d6a043 Don't send backup fail as critical alert
Critical alerts don't seem to timeout. Don't send critical alerts.
2022-02-02 09:29:27 -05:00
ducoterra
8abfbcf561 Fix issues where cryptsetup would fail to unmount
There were occasions where removing the backup drive would confuse luks
and prevent re-mounting. This fixes the issue by attempting to luks
close and open the drive before mounting, thereby correcting any issues
where the drive would stick.
2022-02-01 20:25:26 -05:00
ducoterra
c8396037db Fix backup snapshot drift
Occasionally, the latest snapshot in the snapshots dir would get out of
sync with the backup drive. Change the script to detect drift and fix it
before performing a backup.
2022-02-01 10:47:08 -05:00
ducoterra
9a3ee4fa9b Pull variables out of arch_backup
Pull out user-modifiable variables from arch_backup. This should make it
easier for anyone to modify.
2022-02-01 10:46:11 -05:00
ducoterra
6d6c2d27eb Move btrfs_backups.sh to backup role dir
Move backup script to role directory rather than the root directory of
the roles.
2022-01-31 16:43:11 -05:00
ducoterra
838dad0302 Move single ansible playbook to ansible directory
Make ansible playbook properly- use ansible-galaxy init commands.
2022-01-31 13:44:46 -05:00