Sign inSign up

bfren/backup

By bfren

•Updated almost 3 years ago

Image
1

7.0K

bfren/backup repository overview

⁠Docker Backup

GitHub release (latest by date) Docker Pulls Docker Image Size GitHub Workflow Status

Docker Repository⁠ - bfren ecosystem⁠

Uses Duplicity⁠ and rclone⁠ to perform scheduled backups, using end-to-end encryption.

Usage:

# start container
#  .. see docker-compose.yml for a sample file
docker compose up -d

# configure rclone
#  .. ensure the remote storage name is the same as environment variable BACKUP_RCLONE_STORAGE
docker exec -it backup rclone-config

# run an initial full backup
docker exec backup dup-full

# verify backup files
docker exec backup dup-verify

# list backup files
docker exec backup dup-list

# restore a file or directory
#  .. restored file or directory will be put in the /restore volume
docker exec backup dup-restore-file /path/to/file/or/directory

⁠Contents

⁠Volumes

VolumePurpose
/bAnything mounted in here will be backed up.
/configPersistent duplicity and rclone configuration, plus log files.
/restoreRestored files and directories are placed in here.

⁠Environment Variables

VariableValuesDescriptionDefault
BACKUP_COMMANDstringThe command to run on the schedule set by BACKUP_CRON.dup-default
BACKUP_CRONstringCron schedule on which backup will be run.0 0 * * * - every day at midnight
BACKUP_PASSPHRASEstringEnd-to-end encryption passphrase - if changed, backups cannot be restored.None - required
BACKUP_DUPLICITY_FULL_EVERYstringHow often to run a full backup (see here⁠).1M - one month
BACKUP_DUPLICITY_KEEP_FULLintegerHow many full backups to keep - more than this will be removed as part of the schedule.3
BACKUP_DUPLICITY_VERBOSITYstringThe output verbosity of duplicity operations (error, warning, notice, info, debug).notice
BACKUP_DUPLICITY_VOLSIZE_IN_MBintegerThe size (in MB) of each volume in the backup set.200
BACKUP_RCLONE_STORAGEstringThe name of the (configured) rclone storage provider.None - required
BACKUP_RCLONE_PATHstringThe root path within the storage provider in which to put backup files./
BACKUP_RCLONE_CUSTOM_CMDstringUse with BACKUP_COMMAND=rclone-custom to run rclone however you want using the configuration in /config.None
BACKUP_RCLONE_CUSTOM_ARGstringUse with BACKUP_COMMAND=rclone-custom to run rclone however you want using the configuration in /config.None

Additionally you can use RCLONE_ to configure rclone⁠. By default RCLONE_CHECKSUM is true to enable file checking based on checksum and date, not size.

⁠Licence

Copyright (c) 2022-2023 bfren⁠ (unless otherwise stated)

Tag summary

Content type

Image

Digest

sha256:eb912ccf0…

Size

57.2 MB

Last updated

about 3 years ago

docker pull bfren/backup