From f3ef88c2dc1db005cf9dcd6dca22462523c21240 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Thu, 11 Apr 2024 00:06:02 -0600 Subject: [PATCH] Update Scripts/Bash/Transfer Docker Containers.md --- Scripts/Bash/Transfer Docker Containers.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Scripts/Bash/Transfer Docker Containers.md b/Scripts/Bash/Transfer Docker Containers.md index 8c443ca..e55b9ae 100644 --- a/Scripts/Bash/Transfer Docker Containers.md +++ b/Scripts/Bash/Transfer Docker Containers.md @@ -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 @@ -34,4 +36,7 @@ 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 - ``` \ No newline at end of file + ``` + +## 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. \ No newline at end of file