Make backups in /mnt/drive/bup
This commit is contained in:
parent
a6c93a6fd4
commit
cd5e04057d
3
backup
3
backup
|
@ -10,7 +10,7 @@
|
||||||
name="$(date -u +'%Y-%m-%d')"
|
name="$(date -u +'%Y-%m-%d')"
|
||||||
# repository_dir="$(dirname "${1:-}/gets-removed")"
|
# repository_dir="$(dirname "${1:-}/gets-removed")"
|
||||||
# repository="${repository_dir}/${name}/$(date -u +'%Y-%m')"
|
# 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.
|
# Set the `bup` directory here so it affects all the `bup` commands.
|
||||||
export BUP_DIR="${repository}"
|
export BUP_DIR="${repository}"
|
||||||
|
@ -18,6 +18,7 @@ export BUP_DIR="${repository}"
|
||||||
# Create the backup repository if it doesn't exist.
|
# Create the backup repository if it doesn't exist.
|
||||||
if [ ! -d "${repository}" ]; then
|
if [ ! -d "${repository}" ]; then
|
||||||
bup init
|
bup init
|
||||||
|
chmod 700 "${repository}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do the backup as non-intrusively as possible.
|
# Do the backup as non-intrusively as possible.
|
||||||
|
|
Loading…
Reference in a new issue