From d9dfea1402e09b591e86bfdbc24676128932d44d Mon Sep 17 00:00:00 2001 From: Bertrand Janvoie Date: Mon, 6 Jun 2022 19:25:33 +0000 Subject: [PATCH 1/2] Add 'help.md' --- help.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 help.md diff --git a/help.md b/help.md new file mode 100644 index 0000000..fc0a33b --- /dev/null +++ b/help.md @@ -0,0 +1,20 @@ +```bash + +# CREATE GHOST CONTAINER +sudo docker run -d --name blog.noobtoroot.xyz -p 3001:2368 -e url=https://blog.noobtoroot.xyz ghost + +# TRANSFER BACKUP ARCHITE INSIDE CONTAINER +sudo docker cp content.tar.gz blog.noobtoroot.xyz:/var/lib/ghost/ + +# CONNECT TO TERMINAL INSIDE CONTAINER +sudo docker exec -u root -it blog.noobtoroot.xyz /bin/bash + +# EXTRACT AND COPY CONTENT BACKUP TO NEW CONTENT +mkdir -p /contentbackup/ +tar -zxvf content.tar.gz -C /contentbackup/ +cp -R /contentbackup/var/www/noobtoroot/content/images/* /var/lib/ghost/content/images/ + +# CHANGE OWNERSHIP +chown node:node content/* + +``` \ No newline at end of file From 81e8262924e83d1045819d0e61be27ab5a099457 Mon Sep 17 00:00:00 2001 From: Bertrand Janvoie Date: Mon, 6 Jun 2022 19:25:57 +0000 Subject: [PATCH 2/2] Delete 'help.md' --- help.md | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 help.md diff --git a/help.md b/help.md deleted file mode 100644 index fc0a33b..0000000 --- a/help.md +++ /dev/null @@ -1,20 +0,0 @@ -```bash - -# CREATE GHOST CONTAINER -sudo docker run -d --name blog.noobtoroot.xyz -p 3001:2368 -e url=https://blog.noobtoroot.xyz ghost - -# TRANSFER BACKUP ARCHITE INSIDE CONTAINER -sudo docker cp content.tar.gz blog.noobtoroot.xyz:/var/lib/ghost/ - -# CONNECT TO TERMINAL INSIDE CONTAINER -sudo docker exec -u root -it blog.noobtoroot.xyz /bin/bash - -# EXTRACT AND COPY CONTENT BACKUP TO NEW CONTENT -mkdir -p /contentbackup/ -tar -zxvf content.tar.gz -C /contentbackup/ -cp -R /contentbackup/var/www/noobtoroot/content/images/* /var/lib/ghost/content/images/ - -# CHANGE OWNERSHIP -chown node:node content/* - -``` \ No newline at end of file