backup_migrate + drush = happy days :)

Das backup_migrate.module gehört bei allen von mir administrierten Websites zu den Modulen, die gleich nach der Drupal-Installation installiert und aktiviert werden, selbst wenn ich tägliche Backups der MySQL-DB und des gesamten Rechners erstelle.

Was mir noch fehlte, war die Einbindung in drush, um “mal eben” einen DB-Schnappschuss erstellen zu können. So hatte ich mir für die erste Januarwoche vorgenommen, ein kleines Modul zu bauen, welches genau dies implementiert. Und siehe da: Die 2.x-Linie des Moduls bringt die Funktionalität schon mit!

 bam backup            Backup the site's database with Backup and Migrate.                       
 bam restore           Restore the site's database with Backup and Migrate.                      
 bam destinations      Get a list of available destinations.                                     
 bam sources           Get a list of available sources.                                          
 bam profiles          Get a list of available settings profiles.                                
 bam backups           Get a list of previously created backup files.

Ein kurzes

drush dl backup_migrate
drush updatedb

erledigte das Update von der bisherigen Version 1.2 auf 2.2. Danke Ronan!