{"id":17419175,"url":"https://github.com/axtgr/docker-migrate","last_synced_at":"2025-09-29T07:06:05.770Z","repository":{"id":96593117,"uuid":"134574801","full_name":"axtgr/docker-migrate","owner":"axtgr","description":"Easily move volumes from one Docker host to another","archived":false,"fork":false,"pushed_at":"2022-11-20T14:35:45.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-19T13:40:02.047Z","etag":null,"topics":["docker","docker-volumes"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axtgr.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":"2018-05-23T13:36:03.000Z","updated_at":"2021-04-28T04:37:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6aeb07f-bc46-4c7c-ae76-0471d0ab33d1","html_url":"https://github.com/axtgr/docker-migrate","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/axtgr%2Fdocker-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Fdocker-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Fdocker-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Fdocker-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axtgr","download_url":"https://codeload.github.com/axtgr/docker-migrate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241465077,"owners_count":19967243,"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":["docker","docker-volumes"],"created_at":"2024-10-17T02:17:29.407Z","updated_at":"2025-09-29T07:06:00.713Z","avatar_url":"https://github.com/axtgr.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-migrate\n\nA container that helps you copy your volumes from one Docker host to another using rsync over SSH.\n\nFirst you run this container on the source server to host the volumes, then run the container on the destination server to copy the volumes from the source.\n\n### Source server\n\nSet `PASSWORD` and run the container with volumes you want to copy mounted to `/volumes` and the container's port `22` bound to any host port. It will start a server waiting for client connections. You will have to manually stop the container after the procedure is finished.\n\nExample source `docker-compose.yml`:\n\n```yaml\n...\nmigrate:\n  build: ../docker-migrate\n  ports:\n    - \"8722:22\"\n  environment:\n    - PASSWORD=s3cR3t\n  volumes:\n    # Add :ro to make the volumes read-only just in case\n    - some-data-volume:/volumes/some-data-volume:ro\n...\n```\n\n### Destination server\n\nSet `PASSWORD`, `HOST` and `PORT` variables to the corresponding values of the source, then run the container with volumes mounted to the same directories. It will connect to the server using rsync over SSH and copy the contents of the volumes while displaying the progress. After completion the container will quit.\n\nExample destination `docker-compose.yml`:\n\n```yaml\n...\nmigrate:\n  build: ../docker-migrate\n  environment:\n    - HOST=192.168.1.2 # Source host\n    - PORT=8722 # Source port, 8722 is default and can be omitted    \n    - PASSWORD=s3cR3t\n  volumes:\n    # No :ro here!\n    - some-data-volume:/volumes/some-data-volume\n...\n```\n\n\n## License\n\n[ISC](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtgr%2Fdocker-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxtgr%2Fdocker-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtgr%2Fdocker-migrate/lists"}