mirror of
https://github.com/ViViDboarder/docker-duplicity-cron.git
synced 2024-11-23 10:36:29 +00:00
19 lines
357 B
Bash
Executable File
19 lines
357 B
Bash
Executable File
#! /bin/bash
|
|
set -e
|
|
|
|
duplicity \
|
|
$1 \
|
|
--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
|