Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

This docker container provides a cron job which backups a volume and uploads it to a GitHub repository.

License

Notifications You must be signed in to change notification settings

GeorgesAlkhouri/virtuoso-backup-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cron Backup Docker

This docker container provides a backup cron job for a linked Virtuoso Triple Store.

Usage instructions

The container can be executed through the following example command:

docker run -d --link '<virtuoso container name>':virtuoso -e GIT_REPO='<ssh clone url>' -e GIT_EMAIL='<git email>' -e GIT_NAME='<git name>' -v '<.shh directory>':/root/.ssh '<docker image name>'

The container provides the following environment variables which could be set through the -e parameter:

  • GIT_REPO needs to be a SSH URL like [email protected]:GeorgesAlkhouri/cron-backup-docker.git
  • GIT_EMAIL needs to be set
  • GIT_NAME needs to be set
  • CRONTAB by default this is set to a midnight build (0 0 * * *)

To authenticate with the backup GitHub repository the container uses SSH. Therefore the hosts .ssh folder will be injected to /root/.ssh in the containers file system through:

-v '<.shh directory>':/root/.ssh

The hosts .ssh folder needs to contain the proper private ssh key and github.com needs to be added to the known_hosts file.

Finally the backup repository needs the public ssh key.

About

This docker container provides a cron job which backups a volume and uploads it to a GitHub repository.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages