docker-duplicity-cron/backup.sh
2017-06-28 23:28:48 -07:00

19 lines
378 B
Bash
Executable File

#! /bin/bash
set -e
duplicity \
--allow-source-mismatch \
--asynchronous-upload \
--log-file /root/duplicity.log \
--name $BACKUP_NAME \
$OPT_ARGUMENTS \
$PATH_TO_BACKUP \
$BACKUP_DEST
if [ -n "$CLEANUP_COMMAND" ]; then
duplicity $CLEANUP_COMMAND \
--log-file /root/duplicity.log \
--name $BACKUP_NAME \
$BACKUP_DEST
fi