Forgetting period
This commit is contained in:
parent
5642a9ac15
commit
3c3be40609
|
@ -229,6 +229,9 @@ MAX_PHP_MEMORY=32
|
||||||
# default MariaDB password
|
# default MariaDB password
|
||||||
MARIADB_PASSWORD=
|
MARIADB_PASSWORD=
|
||||||
|
|
||||||
|
# The obnam forgetting period
|
||||||
|
BACKUP_PERIOD_DAYS=30
|
||||||
|
|
||||||
# Whether to encrypt backups to the USB drive
|
# Whether to encrypt backups to the USB drive
|
||||||
ENCRYPT_BACKUPS="yes"
|
ENCRYPT_BACKUPS="yes"
|
||||||
|
|
||||||
|
@ -3174,6 +3177,7 @@ function create_backup_script {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo '#!/bin/bash' > /usr/bin/$BACKUP_SCRIPT_NAME
|
echo '#!/bin/bash' > /usr/bin/$BACKUP_SCRIPT_NAME
|
||||||
|
echo "obnam forget --keep=${BACKUP_PERIOD_DAYS}d" >> /usr/bin/$BACKUP_SCRIPT_NAME
|
||||||
echo "if [ -b $USB_DRIVE ]; then" >> /usr/bin/$BACKUP_SCRIPT_NAME
|
echo "if [ -b $USB_DRIVE ]; then" >> /usr/bin/$BACKUP_SCRIPT_NAME
|
||||||
echo " if [ ! -d $USB_MOUNT ]; then" >> /usr/bin/$BACKUP_SCRIPT_NAME
|
echo " if [ ! -d $USB_MOUNT ]; then" >> /usr/bin/$BACKUP_SCRIPT_NAME
|
||||||
echo " mkdir $USB_MOUNT" >> /usr/bin/$BACKUP_SCRIPT_NAME
|
echo " mkdir $USB_MOUNT" >> /usr/bin/$BACKUP_SCRIPT_NAME
|
||||||
|
|
Loading…
Reference in New Issue