
Equivalent to launching the container and then running docker exec duplicacy-autobackup /app/duplicacy-autobackup.sh backup. BACKUP_IMMEDIATELY ( yes/ no): indicates if a backup should be performed immediately after the container is started.Use the following environment variables if you want to customize duplicacy's behavior. If pre-backup.sh exits with a non-zero status code, the backup will not be performed until the next scheduled backup. For instance if you're backing up a MySQL database, this script can involve doing a mysqldump into /data/mydb.sql. You can have duplicacy-autobackup run a script before and after the backup process by mounting scripts on /scripts/pre-backup.sh and /scripts/post-backup.sh. You will get a prompt asking for your storage provider's credentials, and, if applicable, your encryption key: If you used client-side encryption, add the -encrypt flag: duplicacy init -encrypt backup_name backup_location.Run duplicacy init backup_name backup_location, where backup_name and backup_location correspond to the BACKUP_NAME and BACKUP_LOCATION environment variables of your setup.
#Duplicacy soft links install#
Install Duplicacy: download the latest Duplicacy binary from its Github page, and put it in your pathĬd to a directory where you'll restore your files, e.g. This shows the procedure to list files, versions, and restore a duplicacy backup made using duplicacy-autobackup. Ghcr.io/christophetd/duplicacy-autobackup:v1.4.0 Viewing and restoring backupsīackups are useless if you don't make sure they work. e BACKUP_ENCRYPTION_KEY= 'correct horse battery staple ' \ $ docker run -d -name duplicacy-autobackup \

If you want to execute an out of schedule backup, you can do so by running the script /app/backup.sh inside the container : Those files must be mounted in the container so that they can be accessed from inside it.

The following environment variables can be used to configure the backup strategy. and more generally, all the features that duplicacy has. Multiple storage backends: S3, Backblaze B2, Hubic, Dropbox, SFTP.It uses duplicacy under the hood, and therefore supports: Duplicacy Autobackup is a Docker image to easily perform automated backups.
