Backing Up Site on Dev Desktop 2

Backing Up Site on Dev Desktop 2

7 posts / 0 new
Last post
thomas.a.grieve@gmail.com's picture
thomas.a.grieve
Points: 15
Backing Up Site on Dev Desktop 2

Hi,

I have a site I am working with to learn how to use Drupal (Pretty new to learning Drupal and Drupal 8 specifically.)

Even though this is on my local computer - I want to make a backup of it (files and DB) before trying to migrate it for the first time.

Question: What is the best procedure for doing this locally?

1 - A drupal 8 back-up module?

2 - Or manually:
a) export DB
b) directoryfiles
c) anything else?

Thank you!

Status: 
Resolved
dmyburgh's picture
david.myburgh
Points: 99

The simplest way to do a backup is to use "drush archive-dump". See https://drushcommands.com/drush-8x/core/archive-dump/ for more options on that one.

thomas.a.grieve@gmail.com's picture
thomas.a.grieve
Points: 15

Argh - drush again... well, I'd better get on board.

Anyway David - it sort of leads me to a second part of that question:

Once I have the archive - is it easy enough (theoretically of course):

1 - To use Drush to migrate that site archive to an external server after I create a DB?

Thx

dmyburgh's picture
david.myburgh
Points: 99

Heh, yeah, drush is the way to go. I use it regularly for things like clearing caches - its faster than doing it in Drupal's admin section.

Once you have the archive, you should be able to move it to other servers. Note that you might have to use drush to restore the archive. I'm not really sure if you can extract the archive without drush.

An alternative backup method could be simply dumping your database with mysqldump (command-line) or phpmyadmin, and copying your Drupal install folder somewhere else. Then you'd just need to upload all the files, and import your sql file to the new server.

thomas.a.grieve@gmail.com's picture
thomas.a.grieve
Points: 15

Yeah - that was the clarification I was looking for. So it's not unlike other CMS's in that aspect. I appreciate the answers as always & you taking the time.

And I will begin, in earnest, referencing Drush!

Status Change: 
Resolved
dmyburgh's picture
david.myburgh
Points: 99

Happy to help!

asad10987t@gmail.com's picture
asad10987t
Points: 0

Your contents force out your readers for commenting. Brian Holm Attorney San Diego