Compare commits

..

1 commit

Author SHA1 Message Date
7df180f8f9 First version 2021-04-28 00:04:41 +02:00
2 changed files with 5 additions and 7 deletions

View file

@ -10,10 +10,10 @@ $ ./docker-duplicity-backup <config_file>
The `config_file` parameter is mandatory and must designate a script file which set these variables:
* `DOCKER_HOSTNAME`: hostname used for the container running the backup (optional; defaults to '`backup`').
This hostname should be the same through incremental backups or duplicity will complain.
* `VOLUMES`: space separated lit of volumes to backup.
This hostname should be the same through incremental backups, or duplicity will complain.
* `VOLUMES`: space separated list of docker volumes to backup (mandatory).
* `DUPLICITY_REMOTE_URI`: target URI for duplicity backup (mandatory; e.g. 'rsync://backup.example.com//target/path').
* `DUPLICITY_CACHE_VOLUME`: docker volume name to use for duplicity cache persistency (optional; default to '`backup_cache`').
* `DUPLICITY_CACHE_VOLUME`: docker volume name to use for duplicity cache persistency (optional; defaults to '`backup_cache`').
* `INIT_FOLDER`: local path to mount into the container as `/root/init.d` (optional).
The scripts into this folder will be sourced by the container's entrypoint before starting the backup. Useful for starting an `stunnel` service.
* `DOCKER_EXTRA_OPTIONS`: docker run options such as environment variables or extra volumes. Useful for importing an ssh configuration folder.
* `DOCKER_EXTRA_OPTIONS`: docker run options such as environment variables or extra volumes (optional). Useful for importing an ssh configuration folder.

View file

@ -17,9 +17,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
for file in $(ls init.d); do
if [ -x init.d/$file ]; then
./init.d/$file
fi
source init.d/$file
done
if [ $# -gt 0 ]; then