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
This commit is contained in:
Salt 2020-12-24 09:21:05 -06:00
parent 58a9827b28
commit d353eefa2c
2 changed files with 5 additions and 2 deletions

View File

@ -10,8 +10,7 @@ backup_dateformat: "%Y-%m-%d-%H%M"
# List of files/directories to back up
# Note that tar is NOT instructed to recurse through symlinks
# If you want it to do that, end the path with a slash!
backup_s3backup_list:
- /root
backup_s3backup_list: []
backup_s3backup_list_extra: []
# Arguments to pass to tar
# Note that passing f here is probably a bad idea

View File

@ -42,6 +42,10 @@ export AWS_SECRET_ACCESS_KEY="{{ backup_s3backup_aws_secret_access_key }}"
# Tar up all items in the backup list, recursively, and pipe them straight
# up to S3
if [ -z "${DIRS[@]}" ]; then
echo "No directories configured to back up!"
exit 0
fi
echo "Commencing backup on the following items:"
for dir in "${DIRS[@]}"; do
echo "- $dir"