ArangoListDumpsAction uses trait:short, \oihana\commands\traits\IOTrait
List all dumps files in the dump directory.
Table of Contents
Constants
- ARCHIVE_REGEXP : string = \oihana\arango\commands\enums\ArchivePattern::R...
- The pattern to find the archive files.
Properties
- $directory : string|null
- The dump/restore directory.
Methods
- initializeDirectory() : static
- Initializes the dump/restore directory from an init array.
- listDumps() : int
- List the dump files of the database.
Constants
ARCHIVE_REGEXP
The pattern to find the archive files.
public
string
ARCHIVE_REGEXP
= \oihana\arango\commands\enums\ArchivePattern::REGEXP
Properties
$directory
The dump/restore directory.
public
string|null
$directory
= null
Methods
initializeDirectory()
Initializes the dump/restore directory from an init array.
public
initializeDirectory([array<string|int, mixed> $init = [] ]) : static
Parameters
- $init : array<string|int, mixed> = []
-
The init definition, possibly containing ArangoCommandParam::DIRECTORY.
Return values
staticlistDumps()
List the dump files of the database.
protected
listDumps(InputInterface $input, OutputInterface $output[, string|null $directory = null ]) : int
The listed directory follows the same precedence as the dump and the
prune: the --directory CLI flag wins, then the optional $directory
(e.g. a profile output directory resolved by the caller), then the global
$this->directory.
Parameters
- $input : InputInterface
- $output : OutputInterface
- $directory : string|null = null
-
An optional directory override (the profile output directory), below the
--directoryCLI flag and above the global directory.