46 Commits

Author SHA1 Message Date
2edbd1c9e8 Fix erroneous backslash in backup script 2025-01-25 22:27:31 -06:00
b793ebf587 Make backups a ton, ton more betterer 2025-01-25 03:20:07 -06:00
601d9543ec Make restic cache dir and ensure it's there whenever we invoke it 2025-01-25 01:36:13 -06:00
e6e8427227 Only use restic for backups from now on 2025-01-25 01:28:34 -06:00
834f40d3ad Implement ignore rules in restic 2025-01-23 12:21:42 -06:00
bfce95d50d Instead of processing ostree config-diffs, just tar up /etc. More consistent that way. 2025-01-23 03:21:01 -06:00
d3ee28fe56 Remove stale locks before backing up 2025-01-23 03:15:03 -06:00
8b0b900375 Alright clearly hard memory limits are working against us here 2025-01-23 03:08:33 -06:00
42f84c2d54 Verbose prunes too 2025-01-21 15:58:39 -06:00
51cf91e0c4 Verbose backups for restic 2025-01-21 15:58:23 -06:00
2bfc6f489d Up memory for backup.service 2025-01-21 15:57:53 -06:00
5d8238e029 Prune backups 2025-01-20 20:23:34 -06:00
8e6cbb69ff Update restic wrapper to have keys 2025-01-20 20:16:41 -06:00
ddac9fe542 Fix syntax (oops) 2025-01-20 20:03:17 -06:00
e651396604 Put the backups on the FS so we can just back them up later on the same way 2025-01-20 20:01:36 -06:00
09bdb80712 Dump PG DBs before doing full system backups 2025-01-20 19:58:20 -06:00
8cffa77d38 Fix not flattening args when doing null comparisons 2025-01-19 12:54:48 -06:00
0ffd8ef535 Add logging 2025-01-19 12:51:15 -06:00
c9984c448c Minor reworks to how script is structured for better efficiency 2025-01-19 12:47:27 -06:00
f3520c10ae Update backup script to use restic 2025-01-19 12:43:10 -06:00
b250ce9dc8 Enable automatic retries for backups within a short duration
This should help alleviate some of the problems I've been having with Backblaze's accessibility during peak backup hours
2024-07-10 13:14:07 -05:00
b37f882d7d Improve grep in ostree config-diff to not choke on spaces in filenames 2024-06-10 22:54:03 -05:00
b54710a72e Use bash HOSTNAME var for backup scripts 2024-06-10 22:35:58 -05:00
3ca88c4d88 Move to Backblaze for S3 object stores 2024-06-10 22:26:29 -05:00
0f9f574bac Rework backup script to be more versatile
This breaks the restore script but restoration from s3 should be easy enough now
2024-03-29 16:11:34 -05:00
1dbf436a50 Add a backup disk usage analyzer script 2023-11-11 09:24:48 -06:00
43e446cfa2 Bandaid fix for s3 backups 2022-12-19 17:10:10 -06:00
32147f789f Revert "Increase multipart-chunk-size-mb for aws s3 backup script"
This reverts commit 5621993f72bb81f034b5a949c51a856593014923.
2022-11-14 14:29:10 -06:00
5621993f72 Increase multipart-chunk-size-mb for aws s3 backup script 2022-11-14 13:28:39 -06:00
b7085c7e5b Implement dynamic backups for ostree systems, backing up system configuration in its entirety 2022-10-20 22:35:49 -05:00
4a87d65b47 Add a quick and dirty S3 restore script for when you need manual help in a pinch 2022-05-23 01:48:13 -05:00
7484dce678 Update backup script to do it all, allowing for directory AND DB backups 2021-05-04 13:38:39 -05:00
49b156c5dc Specify service type for ansible-pull and backup 2021-01-16 23:47:29 -06:00
abcfaea0a5 Modify ansible-pull and backup services to only run when connected to the internet 2021-01-16 23:19:28 -06:00
dc52392ebb Put backups in a folder labeled after full inventory hostname, not short
We were having conflicts with psql1.9iron.club and psql1.desu.ltd
2021-01-14 17:56:00 -06:00
d8640bae9b Fix backups failing
WHOOPSIE
2020-12-30 18:06:13 -06:00
1710d1108b Fix backup script to exclude items BEFORE the main arguments 2020-12-29 09:08:38 -06:00
a5b83e1a59 Fix incorrect expansion of array in s3backup.sh 2020-12-29 08:44:11 -06:00
1933ba21c0 Concatenate JINJA for loops, echo back ignored directories in backup script 2020-12-29 08:43:42 -06:00
eb97eb4a7a Add ability to exclude from s3backup.sh, lay out gameserver backups more nicely to respect this 2020-12-29 08:35:41 -06:00
3b17b4e39c Wait no this is the commit for the new backup script 2020-12-24 09:40:58 -06:00
5cfbca0534 Actually genericize properly this time, plus add a new backup script for pgdump 2020-12-24 09:35:17 -06:00
6d9d3a4784 Revert "Genericize s3 configuration"
This reverts commit 74cd565cad33531b58f6ce53019d4d958eddc846.
2020-12-24 09:33:33 -06:00
74cd565cad Genericize s3 configuration 2020-12-24 09:32:08 -06:00
d353eefa2c Don't back up anything by default
ESPECIALLY not /root. Turns out that tars up the entire goddamn pip cache, which is like 500M on my laptop
2020-12-24 09:21:05 -06:00
00fb2bb32e Work on a basic implementation of backups
Still need to set up good defaults and do host-based configuration tho
2020-12-24 09:06:20 -06:00