Sign inSign up

raquette/docker-git-backup

By raquette

•Updated about 8 years ago

automate backup of repo to git hub

Image
0

343

raquette/docker-git-backup repository overview

⁠docker-git-backup

Container that backs up files by commiting them to git archives.

There is an existing image available on the public registry at raquette/docker-git-backup⁠.

⁠Directory to backup

The directory to backup can be changed to point to an attached volume

⁠Backing up

To backup run once:

$ docker run -e KEY=auth-key -e URL=git-repo-url -e REPO_PATH=directory_path raquette/docker-git-backup backup

To backup periodically:

$ docker run -e KEY=auth-key -e URL=git-repo-url -e REPO_PATH=directory_path -e CRONTAB="* * * * *" raquette/docker-git-backup cron_backup

⁠Restoring

To restore an existing backup run:

$ docker run -e KEY=auth-key -e URL=git-repo-url -e REPO_PATH=directory_path raquette/docker-git-backup restore

It is important to note that if this repo already exists on your server, a restore will update it.

⁠Configuration

The container can be customized with these environment variables:

NameDefault ValueDescription
KEYblankauth key for github
URLblankurl pointing to repo
REPO_PATH/repodirectory to back up
CRONTAB* * * * *crontab schedule

Tag summary

Content type

Image

Digest

Size

98.1 MB

Last updated

about 8 years ago

docker pull raquette/docker-git-backup