Would be nice to have a configurable backup path which I can set in drushrc.php ... so the updates for the installation goes where I want to have them.

Comments

moshe weitzman’s picture

Assigned: Unassigned » owen barton
owen barton’s picture

Status: Active » Fixed

Added a --backup-dir option

Apparently Adrian has some helpers that could make the directory creation a little more elegant, that we should add at some point

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

izkreny’s picture

Title: Configurable Backup Path » Configurable Backup Path via site aliases
Version: 6.x-1.2 »
Assigned: owen barton » Unassigned
Priority: Minor » Normal
Status: Closed (fixed) » Active
Issue tags: +backup

Hi!

Since Drush 3.0 have nice handling of site aliases is it possible to implement specification of backup directory through *.alias(es).drushrc.php file(s)?

Something like '%backup-dir' => '/path/to/backup/directory', e.g.:

$aliases['stage'] = array(
  'uri' => 'stage.mydrupalsite.com',
  'root' => '/path/to/remote/drupal/root',
  'db-url' => 'pgsql://username:password@dbhost.com:port/databasename',
  'remote-host' => 'mystagingserver.myisp.com',
  'remote-user' => 'publisher',
  'path-aliases' => array(
    '%drush' => '/path/to/drush',
    '%drush-script' => '/path/to/drush/drush',
    '%dump' => '/path/to/live/sql_dump.sql',
    '%files' => 'sites/mydrupalsite.com/files',
    '%backup-dir' => '/path/to/backup/directory',
    '%custom' => '/my/custom/path',
    ),
  );

BTW, tnx for --backup-dir option and, of course, for such awesome tool, i.e., Drush. :D

owen barton’s picture

Status: Active » Fixed

This looks great - but please add this as a new issue, since the original mission of this issue has been accomplished.

owen barton’s picture

Title: Configurable Backup Path via site aliases » Configurable Backup Path
Version: » 6.x-1.2
Priority: Normal » Minor
izkreny’s picture

Oops I apologise for the inconvenience.

Tnx for feedback (I created new one: #761270: Specification of backup dir through *.alias(es).drushrc.php file(s)).

Bye.

Status: Fixed » Closed (fixed)
Issue tags: -backup

Automatically closed -- issue fixed for 2 weeks with no activity.