I'm using this terminal command to restore an archive created on a remote server locally:

drush arr archive.tar.gz default --destination ./newdir --db-url=mysql://user:pass@localhost/db

The archive was created with drush archive-dump, and the restore is on a Mac running the MAMP stack. The archive is in the current working directory when I run drush arr.

In general, this works fine, but for some reason, the new directory (newdir) isn't created. All files are restored into a folder named "1" (which is created). Drush reports "Archive restored to 1"

Is there some way for me to modify the syntax so that newdir is created, and all files are restored there?

  • Try --destination=./newdir
    – Clive
    Nov 17, 2013 at 21:03
  • @Clive. That's it. Can't believe I didn't notice that. Thank you.
    – Dave Bruns
    Nov 17, 2013 at 21:30

1 Answer 1


Try --destination=./newdir. Drush always uses --flag=value; without a value specified, the default is 1.

  • Thanks, Greg. That was my problem. Using --destination=./newdir, everything works beautifully.
    – Dave Bruns
    Nov 17, 2013 at 21:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.