docker-duplicity-cron/backup.sh

19 lines
357 B
Bash
Raw Normal View History

2017-03-19 00:11:03 +00:00
#! /bin/bash
set -e
duplicity \
$1 \
2017-03-19 00:11:03 +00:00
--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 \
2017-06-29 06:28:48 +00:00
--name $BACKUP_NAME \
2017-03-19 00:11:03 +00:00
$BACKUP_DEST
fi