https://github.com/pavelsr/dmove
Set of utilities for fast trasfer dockerized apps to new VDS
https://github.com/pavelsr/dmove
devops docker transfer-data transfer-file vds
Last synced: 7 months ago
JSON representation
Set of utilities for fast trasfer dockerized apps to new VDS
- Host: GitHub
- URL: https://github.com/pavelsr/dmove
- Owner: pavelsr
- Created: 2018-06-10T08:41:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-12T18:42:38.000Z (over 7 years ago)
- Last Synced: 2025-03-18T03:34:07.466Z (10 months ago)
- Topics: devops, docker, transfer-data, transfer-file, vds
- Language: Shell
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dmove - Docker move utilities set
Set of utilities for fast trasfer dockerized apps to new VDS
Including:
`dmove` - full auto transfer (image, its volumes, network settings)
`move-container` - transfering container as image to new host
`move-volumes` - move all docker volumes of selected containers (transfer data gzipped).
`move-db` - move sql-like database
*`move-db` and `move-volume` by default doesn't make deployment, they just trasfer appropriate files to `$REMOTE_FOLDER`*
*To deploy you need to specify image name on target host in addition to container name*
` $CONTAINER_NAME `
`move-db` has two additional arguments:
`hostname`
`do_pwd_sql_volume` (works for `/var/lib/mysql`)
` `
Related utils:
`dmove-copy-id` - wrapper under ssh-copy-id, reads hostname from config file
`dmove-config` - generate new config file (conenient if you need to have separate REMOTE_HOST perl user)
`dmove-nginx-proxy` - quick deployment of [nginx-proxy](https://github.com/jwilder/nginx-proxy) container
Config file: `~/.dmove`
# Requirements
[jq](https://stedolan.github.io/jq/)
REMOTE_HOST (remote) user must have privileges to run docker
Docker must be installed on both machines
# Installation
```
curl -sSL -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/pavelsr/dmove/master/install-dmove | sudo bash
```
Just dmove-nginx-proxy:
```
sudo wget https://raw.githubusercontent.com/pavelsr/dmove/master/dmove-nginx-proxy -O /usr/local/bin/dmove-nginx-proxy && sudo chmod +x /usr/local/bin/dmove-nginx-proxy
```
# Used naming conventions
On new host container will be started with same name as at old
# Recommended docker objects naming conventions to use dmove without problems
`_db` : container name for app `` must be ``
## See more
Similar project: https://github.com/tubesandlube/blimp