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:
parent
58a9827b28
commit
d353eefa2c
@ -10,8 +10,7 @@ backup_dateformat: "%Y-%m-%d-%H%M"
|
|||||||
# List of files/directories to back up
|
# List of files/directories to back up
|
||||||
# Note that tar is NOT instructed to recurse through symlinks
|
# Note that tar is NOT instructed to recurse through symlinks
|
||||||
# If you want it to do that, end the path with a slash!
|
# If you want it to do that, end the path with a slash!
|
||||||
backup_s3backup_list:
|
backup_s3backup_list: []
|
||||||
- /root
|
|
||||||
backup_s3backup_list_extra: []
|
backup_s3backup_list_extra: []
|
||||||
# Arguments to pass to tar
|
# Arguments to pass to tar
|
||||||
# Note that passing f here is probably a bad idea
|
# Note that passing f here is probably a bad idea
|
||||||
|
@ -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
|
# Tar up all items in the backup list, recursively, and pipe them straight
|
||||||
# up to S3
|
# up to S3
|
||||||
|
if [ -z "${DIRS[@]}" ]; then
|
||||||
|
echo "No directories configured to back up!"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
echo "Commencing backup on the following items:"
|
echo "Commencing backup on the following items:"
|
||||||
for dir in "${DIRS[@]}"; do
|
for dir in "${DIRS[@]}"; do
|
||||||
echo "- $dir"
|
echo "- $dir"
|
||||||
|
Loading…
Reference in New Issue
Block a user