I know variations of this question have already been asked here, but I could not find proper information on details for a backup procedure for a remote site. I am still new to Drupal.
Assuming a host handles multiple Drupal 7 sites under a /public_html
directory, using the same MySQL installation:
/public_html/my_drupal_site_1/...
/public_html/my_drupal_site_2/...
/public_html/my_drupal_site_3/...
...
I see two situations to consider: i) Drush is not installed on the remote host, ii) Drush is installed on the remote host.
Regarding i), that is, Drush is not available:
- What would be the proper step-by-step procedure to backup and restore
my_drupal_site_2
on the remote host from a local pc, assuming theBackup & Migrate
module is installed on this site? - Which part of the directory tree should be copied (eventually with FTP)?
- Which part should be restored?
- How to make sure only the part of the database for
my_drupal_site_2
is backup and restored? - Does one need to create a database before restoring the back up?
- Does one need to create an 'empty' Drupal site before restoring?
Regarding ii), that is, Drush is available, say via SSH on the remote site:
- What would be the proper step-by-step procedure to backup and restore
my_drupal_site_2
on the remote host from a local pc, assuming theBackup & Migrate
module is installed on this site? - Is there a way to synchronize a local directory tree from the remote directory tree? The idea is to put this content under subversion or git for example.
At last, is there a all-in-one solution? Like a script that could do everything at once? Thanks.