how to backup and restore ghost cms docker easyly #377
View-my-Git-Lab-krafi
started this conversation in
General
Replies: 1 comment
-
Assuming that you are using a sql database, then you'd need to backup that along with the content directory/volume that you are mounting: The reason |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried so hard to understand how docker work and creating backup and restore. already tried tuns of stuff but non of them worked. i waste today completely finding solution. but i failed.
technique one :
sudo docker commit efef1f15b461 mycontainer_backup && docker save mycontainer_backup -o mycontainer_backup.tar
to restore docker load -i mycontainer_backup.tar docker run -it --name mycontainer mycontainer_backup issue is /var/lib/ghost/content folder get missing and output says my theme got missing if i get inside docker and fix that after running that command again theme get missing....
sudo docker export efef1f15b461 | openssl enc -aes-256-cbc -pbkdf2 -pass pass:hack -out out/"asd.tar.enc" -v also i tried this encryption script ..
simple backup and restore.
Beta Was this translation helpful? Give feedback.
All reactions