diff --git a/Scripts/Bash/Transfer Docker Containers.md b/Scripts/Bash/Transfer Docker Containers.md index 3e86f41..40a90af 100644 --- a/Scripts/Bash/Transfer Docker Containers.md +++ b/Scripts/Bash/Transfer Docker Containers.md @@ -9,6 +9,9 @@ sudo chmod 740 /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: ``` rsync -avz -e ssh --progress /srv/containers/example/* nicole@192.168.3.30:/srv/containers/example