Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Backup & Restore section to docs.drupalcommerce.org/commerce2/developer-guide #173

Open
WNYmathGuy opened this issue Dec 3, 2017 · 2 comments

Comments

@WNYmathGuy
Copy link

I'm a very newbie, newbie both on Git and Drupal in general. I used the guide successfully to install a Drupal Commerce 8.x site the Composer way
Installing | Drupal Commerce docs
and now I realize I don't know know how to back it up and restore it. I don't assume it's just as simple as copy out the /web subfolder and corresponding database because of all the Composer and Drupal Console tweaks I did to add modules, themes and so on. that Google AMP integration was a bear to turn on
I see nothing in the developer guide about this so maybe it is that simple? I'm just too new to have instincts for this type of thing. I don't even know if I'm using Git right to post this suggestion. I wish there was a tab called a suggestion box.

@f1rf1n
Copy link
Contributor

f1rf1n commented Dec 4, 2017

For DB backup, it should be independent on your composer files. So just use mysql commands or phpmyadmin or whatever has your preference to back up the database.

And the files are just the files. In my case I usually just copy all the files (you do need some of the files in /vendor I think.) Just make sure your hosters docroot / webroot is pointing to your projects /web directory and everything 'above' that is out of reach for the rest of the world.

@WNYmathGuy
Copy link
Author

Thank you very much. I'm actually my own hosting service. I'm losing a struggle with secure virtual mail services in Postfix with a DHCP connection and about to erase my server to try something different. My site isn't developed yet, but I want to see that I can backup and restore prior to developing it. Listening to Drupal podcasts had me thinking that if you don't Git all the files of a Drupal site, then you don't backup all the files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants