Update Scripts/Bash/Transfer Docker Containers.md
This commit is contained in:
@ -9,6 +9,9 @@ sudo chmod 740 /srv/containers/example
|
|||||||
sudo chown nicole:nicole /srv/containers/example
|
sudo chown nicole:nicole /srv/containers/example
|
||||||
```
|
```
|
||||||
|
|
||||||
|
!!! warning
|
||||||
|
You need to stop the running containers on the old server before copying their data over, otherwise the state of the data may be unstable. Once you have migrated the data, you can spin up the containers on the new server and confirm they work before deleting the data on the old server.
|
||||||
|
|
||||||
On the source (old) server, perform an rsync over to the new server, authenticating yourself as you will be prompted to do so:
|
On the source (old) server, perform an rsync over to the new server, authenticating yourself as you will be prompted to do so:
|
||||||
```
|
```
|
||||||
rsync -avz -e ssh --progress /srv/containers/example/* nicole@192.168.3.30:/srv/containers/example
|
rsync -avz -e ssh --progress /srv/containers/example/* nicole@192.168.3.30:/srv/containers/example
|
||||||
|
Reference in New Issue
Block a user