Update Scripts/Bash/Transfer Docker Containers.md
This commit is contained in:
@ -7,6 +7,8 @@ Be sure to perform the following steps to make sure that you can copy the contai
|
||||
|
||||
On the destination (new) server, the directory needs to exist and be writable via the person copying the data over SSH:
|
||||
|
||||
## Copying Data Between Servers
|
||||
|
||||
=== "Safe Method"
|
||||
|
||||
``` sh
|
||||
@ -35,3 +37,6 @@ On the source (old) server, perform an rsync over to the new server, authenticat
|
||||
``` sh
|
||||
rsync -avz -e ssh --progress /srv/containers/example nicole@192.168.3.30:/srv/containers
|
||||
```
|
||||
|
||||
## Spinning Up Docker / Portainer Stack
|
||||
Once everything has been moved over, copy the `docker-compose` and `.env` (environment variables) from the old server to the new one, pointing to the same location since we maintained the same folder structure, and the container should spin up like nothing ever happened.
|
Reference in New Issue
Block a user