{"id":16676972,"url":"https://github.com/jeckel/volume-backup","last_synced_at":"2026-04-11T07:45:10.179Z","repository":{"id":70148984,"uuid":"91363662","full_name":"jeckel/volume-backup","owner":"jeckel","description":"A docker image to backup volume on a periodic","archived":false,"fork":false,"pushed_at":"2018-05-31T12:36:21.000Z","size":10,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-01T00:55:41.085Z","etag":null,"topics":["backup","docker","docker-image","docker-volumes","volume-backup"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeckel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-15T17:08:44.000Z","updated_at":"2018-07-14T07:04:50.000Z","dependencies_parsed_at":"2023-02-27T09:15:36.618Z","dependency_job_id":null,"html_url":"https://github.com/jeckel/volume-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeckel/volume-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeckel%2Fvolume-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeckel%2Fvolume-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeckel%2Fvolume-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeckel%2Fvolume-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeckel","download_url":"https://codeload.github.com/jeckel/volume-backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeckel%2Fvolume-backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31673067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","docker","docker-image","docker-volumes","volume-backup"],"created_at":"2024-10-12T13:24:45.786Z","updated_at":"2026-04-11T07:45:10.160Z","avatar_url":"https://github.com/jeckel.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://images.microbadger.com/badges/image/jeckel/volume-backup.svg)](https://microbadger.com/images/jeckel/volume-backup \"Get your own image badge on microbadger.com\") [![](https://images.microbadger.com/badges/version/jeckel/volume-backup.svg)](https://microbadger.com/images/jeckel/volume-backup \"Get your own version badge on microbadger.com\") [![Twitter](https://img.shields.io/badge/Twitter-%40jeckel4-blue.svg)](https://twitter.com/intent/user?screen_name=jeckel4) [![LinkedIn](https://img.shields.io/badge/LinkedIn-Julien%20Mercier-blue.svg)](https://www.linkedin.com/in/jeckel/)\n\n\n# Volume Backup with cron\n\nA docker image to backup docker's volume on specific schedules using cron (or on demand backup)\n\n## Usage\n\nThere are two ways to run this tool.\n- run as daemon and backup volumes on schedules\n- run as one time backup\n\n**Examples**\n\n* **Backup all mounted volumes on daily basis**\n\n```shell\ndocker run -d --rm \\\n\t-v /path/to/volume:/project \\\n    -v /path/to/other/volume:/other_project \\\n\t-v `pwd`/backups:/backups \\\n    -e SCHEDULE=\"daily\"\n\tjeckel/volume-backup\n```\n\nThis will use the backups folder as a target. And the mounted folder's name is used as a basename for the backup file.\n\nFor example, using the option `-v /path/to/volume:/project` will backup the volume folder into a tar.gz file called `backup_project_\u003cdatetime\u003e.tar.gz`\n\n* **Make a one time backup**\n\n```shell\ndocker run -it --rm \\\n    -v /path/to/volume:/project \\\n    -v /path/to/other/volume:/other_project \\\n    -v `pwd`/backups:/backups \\\n    jeckel/volume-backup\n    backup.sh\n```\n\n## Environments\n\nSome environment variable has default value, so you needn't set all of them in most cases.\n\n* `SCHEDULE`: Schedule of backups, default is `\"daily\"`\n* `TARGET_DIRECTORY`: Folder in which backups will be stored, default is `/backups` (it should be a persistent volume of some sort)\n* `SOURCE_DIRECTORIES`: Specify which directories will be backups, if not specified all mounted volumes will be backup. You can specify multiple volume by seperating them with a space (`SOURCE_DIRECTORIS=/var/source /var/project` ) \n* `TAR_OPTIONS`: Additional options you want to add to the tar command (like exclude some directories)\n* `KEEP_NB_BACKUP`: If defined, only the last `x` backups will be kept, other backup will be deleted. If not specified, no backups are deleted by this script. \n\n## Schedule syntax:\n\n* `\"hourly\"`: 0 minute every hour.\n* `\"daily\"`: 02:00 every day.\n* `\"weekly\"`: 03:00 on Sunday every week.\n* `\"monthly\"`: 05:00 on 1st every month.\n* `\"0 5 * * 6\"`: crontab syntax.\n\n## Example\n\nYou can look at the [test docker-compose.yml file](https://github.com/jeckel/volume-backup/blob/master/tests/docker-compose.yml) to see some examples.\n\n## License\nReleased under the MIT License.\n\nCopyright Julien MERCIER https://github.com/jeckel","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeckel%2Fvolume-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeckel%2Fvolume-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeckel%2Fvolume-backup/lists"}