db-backup

db-backup

Docker app from A75G's Repository

Overview

Backup multiple database types on a scheduled basis with many customizable options. Manual Backups can be performed by entering the container and typing backup-now For diffrent port please add variable DB1_PORT and include the port For more DB backups you can include DB2_NAME etc https://github.com/tiredofit/docker-db-backup#job-backup-options Check advanced for more settings

Runtime arguments

Network
bridge
Shell
sh
Privileged
false

Template configuration

Backup LocationPathrw

Database Dump Location

Target
/backup
Value
/mnt/user/backups/db/
DB01_NAMEVariable

Schema Name e.g. database or ALL to backup all databases the user has access to.

Value
ALL
DB01_TYPEVariable

Type of DB Server to backup couch influx mysql mssql pgsql mongo redis sqlite3

Default
mysql|pgsql|mongo|redis|influx|couch|mssql|sqlite3
Value
mysql
DB01_HOSTVariable

Server Hostname e.g. mariadb. For sqlite3, full path to DB file e.g. /backup/db.sqlite3

Value
192.168.1.1
DB01_USERVariable

username for the database(s) - Can use root for MySQL

Value
root
DB01_PASSVariable

(optional if DB doesn't require it) password for the database

Value
password
DEFAULT_SPLIT_DBVariable

If using ALL - use this to split each database into its own file as opposed to one singular file

Default
TRUE|FALSE
Value
TRUE
DEFAULT_BACKUP_INTERVALVariable

How often to dump DB Minutes Defaults 1440 = Day

Value
1440
DEFAULT_BACKUP_BEGINVariable

https://github.com/tiredofit/docker-db-backup#scheduling-options

Value
0300
DEFAULT_CLEANUP_TIMEVariable

Value in minutes to delete old backups. 10080 = One Week. If you want all backup delete this key.

Value
10080
DEFAULT_COMPRESSIONVariable

Use either Gzip GZ, Bzip2 BZ, XZip XZ, ZSTD ZSTD or none NONE

Default
ZSTD|BZ|XZ|GZ|NONE
Value
ZSTD
DEFAULT_COMPRESSION_LEVELVariable

Numerical value of what level of compression to use, most allow 1 to 9, except for ZSTD which allows for 1 to 19

Default
3|1|2|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19
Value
3
DEFAULT_GZ_RSYNCABLEVariable

Use --rsyncable (gzip only) for faster rsync transfers and incremental backup deduplication.

Default
FALSE|TRUE
Value
FALSE
DEBUG_MODEVariable

DEBUG_MODE

Default
FALSE|TRUE
Value
FALSE
CONTAINER_ENABLE_MONITORINGVariable
Default
FALSE|TRUE
Value
FALSE
DEFAULT_CHECKSUMVariable

Either MD5 or SHA1 or NONE

Default
NONE|SHA1|MD5
Value
NONE
DEFAULT_CREATE_LATEST_SYMLINKVariable

Create a symbolic link pointing to last backup in this format: latest-(DB_TYPE)_(DB_NAME)_(DB_HOST)

Default
FALSE|TRUE
Value
FALSE
DEFAULT_ENABLE_PARALLEL_COMPRESSIONVariable

Maximum amount of threads to use when compressing - Integer value e.g. 8

Default
autodetected
Value
autodetected
USER_DBBACKUPVariable

The uid that the image should read and write files as

Value
99
GROUP_DBBACKUPVariable

The gid that the image should read and write files as

Value
100
DEFAULT_FILESYSTEM_PATH_PERMISSIONVariable

Permissions to apply to backup directory

Value
755
DEFAULT_FILESYSTEM_PERMISSIONVariable

Permissions to apply to files.

Default
777
Value
777

Categories

Download Statistics

22,692,047
Total Downloads
520,239
This Month
537,902
Avg / Month

Total Downloads Over Time

Loading chart...

Details

Repository
tiredofit/db-backup:latest
Last Updated2026-03-13
First Seen2020-03-07

Run db-backup on Unraid.

db-backup is listed in Community Apps for Unraid OS. Explore Unraid to build a flexible home server, NAS, or homelab.