Sign inSign up

weikinhuang/rsync-backup

By weikinhuang

•Updated over 2 years ago

Container for daily backups based on rsync

Image
0

50K+

weikinhuang/rsync-backup repository overview

⁠Container for daily backups based on rsync

Backup script using incremental rsync and hardlinks.

--> Github repo⁠ <--

⁠Scripts

⁠disk-backup.sh

This script creates a backup using rsync of a local or a remote directory.

Environment variables are used to configure the script.

TARGET_DIR=         # path where the backups are stored
SOURCE_DIR=         # local or remote path to backup eg. /home/foobar OR [email protected]:/home/foobar
SSH_OPTIONS=        # ssh options to pass into rsync eg. -o UserKnownHostsFile=/dev/null
RSYNC_OPTIONS=      # additional rsync options
⁠disk-cleanup.sh

This script cleans up old backups older than MAX_AGE

Environment variables are used to configure the script.

TARGET_DIR=         # path where the backups are stored
MAX_AGE=            # oldest backup to keep in days, anything older will be deleted

Tag summary

Content type

Image

Digest

sha256:154c42688…

Size

32.2 MB

Last updated

over 2 years ago

docker pull weikinhuang/rsync-backup