docker-restic-cron/backup.sh
ViViDboarder 1c90005b96 Remove --allow-source-mismatch arg
If needed, it can be added via opt args
2017-07-25 21:52:08 -07:00

18 lines
348 B
Bash
Executable File

#! /bin/bash
set -e
duplicity \
--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