Question

Is there Drush command that can backup whole multisite platform:

  • database dump of each site
  • code of each site
  • backup of sites/all or complete core with sites/all
  • and all that in just ONE tar.gz

There is a archive-dump command which can backup whole platform code and database, but it does that for each site, and omitting other sites from its archive. And that is a problem because if you want to use that backup, and let's say you have 3 sites in platform, you would have to untar 3 backups of each site, and then merge those so your /sites folder has all three sites there, instead only one per archive.

Second, less annoying problem with that command is, if you provide it argument @sites, it will try to backup default site as well, which is not used on Aegir.

Was it helpful?

Solution

You can try drush archive-dump default,example.com,foo.com command to archive the DB and codebase. If it is not possibel through it, then you can create a shell script, which creates backup of the codebase and database.

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top