Make backups in /mnt/drive/bup

This commit is contained in:
Anthony Wang 2022-01-10 07:47:19 -06:00
parent a6c93a6fd4
commit cd5e04057d
Signed by: a
GPG key ID: BC96B00AEC5F2D76

3
backup
View file

@ -10,7 +10,7 @@
name="$(date -u +'%Y-%m-%d')"
# repository_dir="$(dirname "${1:-}/gets-removed")"
# repository="${repository_dir}/${name}/$(date -u +'%Y-%m')"
repository=/mnt/drive/Backups/
repository=/mnt/drive/bup/
# Set the `bup` directory here so it affects all the `bup` commands.
export BUP_DIR="${repository}"
@ -18,6 +18,7 @@ export BUP_DIR="${repository}"
# Create the backup repository if it doesn't exist.
if [ ! -d "${repository}" ]; then
bup init
chmod 700 "${repository}"
fi
# Do the backup as non-intrusively as possible.