mirror of
https://github.com/ViViDboarder/docker-restic-cron.git
synced 2024-11-05 04:46:35 +00:00
1c90005b96
If needed, it can be added via opt args
18 lines
348 B
Bash
Executable File
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
|