Skip to content

Commit

Permalink
Add export warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Jul 15, 2019
1 parent 66f6016 commit e788e75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Command/Archive/ArchiveExportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ protected function execute(InputInterface $input, OutputInterface $output)

$this->stdErr->writeln('');

$this->stdErr->writeln('<options=bold;fg=yellow>Warning</>');
$this->stdErr->writeln('Your site may be changing data during archiving, resulting in inconsistencies.');
$this->stdErr->writeln('This tool is not suitable for making consistent backups (instead, see <info>' . $this->config()->get('application.executable') . ' snapshot:create</info>).');

$this->stdErr->writeln('');

if (!$questionHelper->confirm('Are you sure you want to continue?')) {
return 1;
}
Expand Down

0 comments on commit e788e75

Please sign in to comment.