You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
601 B
20 lines
601 B
3 years ago
|
```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/*
|
||
|
|
||
|
```
|