Update Scripts/Bash/Transfer Docker Containers.md

This commit is contained in:
Nicole Rappe
2024-04-10 23:59:59 -06:00
parent e68788c110
commit e7b8f4152f

View File

@ -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