mirror of
https://github.com/ViViDboarder/docker-restic-cron.git
synced 2024-11-21 20:56:36 +00:00
19 lines
378 B
Bash
Executable File
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
|