{"id":13437327,"url":"https://github.com/discordianfish/docker-backup","last_synced_at":"2025-03-19T06:30:59.529Z","repository":{"id":55872372,"uuid":"26461291","full_name":"discordianfish/docker-backup","owner":"discordianfish","description":"Tool for backing up docker volume / data containers","archived":false,"fork":true,"pushed_at":"2019-07-09T14:57:12.000Z","size":30,"stargazers_count":343,"open_issues_count":0,"forks_count":51,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-27T21:50:54.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"wyaeld/docker-backup","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/discordianfish.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}},"created_at":"2014-11-10T23:44:44.000Z","updated_at":"2024-10-04T20:43:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/discordianfish/docker-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discordianfish%2Fdocker-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discordianfish%2Fdocker-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discordianfish%2Fdocker-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discordianfish%2Fdocker-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/discordianfish","download_url":"https://codeload.github.com/discordianfish/docker-backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244370951,"owners_count":20442319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-07-31T03:00:56.019Z","updated_at":"2025-03-19T06:30:57.741Z","avatar_url":"https://github.com/discordianfish.png","language":"Go","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# Backup and Restore Docker Volume Containers\n\nThis tool gets the [volume container](http://docs.docker.io/en/latest/use/working_with_volumes/#creating-and-mounting-a-data-volume-container) of a given container and writes the volume container's json and all volumes found to a tarball.\nAfter that, this tool can be used to restore a volume container from that tarball.\n\nLet say you have a container named `mysql-data` to keep `/var/lib/mysql`. You start up your mysql server by running:\n\n    $ docker run --volumes-from=mysql-data --name mysql-server ...\n\n\nBackup that data container:\n\n    $ docker-backup store mysql-server-backup.tar mysql-server\n\nRestore it on a new system:\n\n    $ docker-backup restore mysql-server-backup.tar\n\n\nFor general documentation on how to use volume containers, see:\nhttp://docs.docker.io/en/latest/use/working_with_volumes/#creating-and-mounting-a-data-volume-container\n\nFor a more complete backup strategy built on top of docker-backup, look at https://github.com/discordianfish/docker-lloyd.\n\nTo run docker-backup itself as a Container, you need to bind-mount the Docker socket, Docker's data directory and point docker-backup via the `-addr` flag to the location of docker.sock within the container:\n\n    $ docker run -v /var/run/docker.sock:/docker.sock \\\n         -v /var/lib/docker/vfs/dir:/var/lib/docker/vfs/dir dckr/docker-backup -addr /docker.sock ...\n\n## Build\n```\ngo get -u github.com/golang/dep/cmd/dep\ndep ensure\ngo build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscordianfish%2Fdocker-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiscordianfish%2Fdocker-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscordianfish%2Fdocker-backup/lists"}