Skip to content

Commit 4f9b937

Browse files
gitressaweitzman
andauthored
Add tip that --destination starting point is Drupal root (#5819)
* Add tip that `--destination` starting point is Drupal root It would be nice if the `drush archive:dump` starting point was from where the command was run ... which is normally here, for most projects using `drupal/recommended-project projects`: ``` $ tree -L 1 . ├── composer.json ├── composer.lock ├── vendor └── web ``` I guess it's not possible? So perhaps adding the tip that `--destination` starting point is Drupal root at the top would help people who run `drush archive:dump --destination=archive.tar.gz` don't see the file, and then after looking in web realize they need to run `drush archive:dump --destination=../archive.tar.gz`? * Update ArchiveDumpCommands.php * Move to `--destination` parameter * Update ArchiveDumpCommands.php * improve wording --------- Co-authored-by: Moshe Weitzman <[email protected]>
1 parent 30e77f2 commit 4f9b937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/core/ArchiveDumpCommands.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ final class ArchiveDumpCommands extends DrushCommands
6464
*/
6565
#[CLI\Command(name: self::DUMP, aliases: ['ard'])]
6666
#[CLI\ValidatePhpExtensions(extensions: ['Phar'])]
67-
#[CLI\Option(name: 'destination', description: 'The full path and filename in which the archive should be stored. If omitted, it will be saved to the drush-backups directory.')]
67+
#[CLI\Option(name: 'destination', description: 'The full path and filename in which the archive should be stored. Any relative path will be calculated from Drupal root (usually <info>web</web> for drupal/recommended-project projects). If omitted, it will be saved to the configured temp directory.')]
6868
#[CLI\Option(name: 'overwrite', description: 'Overwrite destination file if exists.')]
6969
#[CLI\Option(name: 'code', description: 'Archive codebase.')]
7070
#[CLI\Option(name: 'exclude-code-paths', description: 'Comma-separated list of paths (or regular expressions matching paths) to exclude from the code archive.')]

0 commit comments

Comments
 (0)