AutoArchive can execute several commands. Besides the backup creation—its main function—it can show list of configured and orphaned archives displaying various information about them, or perform a cleaning action that wipes the orphaned archive data. The operation is chosen by specifying the corresponding command as a program’s argument. For list of all commands see the Usage section.
One of the actions that is actually not handled by the AutoArchive is the configuration of the archive. In order to be able to create a backup AutoArchive has to be provided by an archive specification file. It needs to be created manually and placed to archive specifications directory or path to it passed as the program’s argument. Archive specification file is a plain text file with simple structure which is described in the Configuration File section. Sample files are distributed with the program and an example is provided also in the Configuring the Archive Example section.
Main AutoArchive’s function is the backup creation. It is the default operation so no command needs to be specified in order to create one. Name or path to an archive specification file is required unless --all option is given. By default non-incremental tar.gz backup is created in the current directory. This can be changed with options on the command line, configuration files or the archive specification file itself. A simple example of the backup creation is shown in the Backup Creation Example section. See also Usage, Configuration File and Archive Specification File sections for all possible configuration options.
In order to list all configured archives or show information about them the --list command is provided. By default it shows all archives that are known to AutoArchive as well as orphaned archives. Note that “archive” here means the “archive configuration”, which is represented by the archive specification file, not the result of the backup creation (the *.tar.gz file). If one or more names or paths to archive specification files is passed as the argument it lists only those.
The output has two forms: normal and verbose.
The structure of the normal --list output is following:
<Name> <Root> <Destination directory> <Current backup level/next/max.>
An archive per line is listed.
If --verbose option is specified alongside with --list the verbose form is printed. It shows following information:
Name:
Root:
Archiver type:
Destination directory:
Current backup level/next/max.:
Target backup level for non-full restart:
Upcoming restart reason:
Restart count/max.:
Days since last restart/max.:
Days since last full restart/max.:
The meaning of the particular fields is:
If the value is enclosed in square brackets ([]) it means that it is not relevant to the current archive configuration. For example if an archive was previously configured as incremental and some incremental backups were already created, and its configuration was changed to non-incremental later, then the actual backup levels are shown but they are enclosed in square brackets. In case of orphaned archives the name is enclosed in square brackets.
If the value is not applicable or not available a dash (-) is printed instead.
Sometimes a question mark (?) is printed instead of the value which means that the value could not be determined while it is expected to be available. This happens mostly for orphaned archives where only a limited number of information is available.
Orphaned archives shown in the --list output with their names enclosed in square brackets does not have a corresponding archive specification file. It is just leftover information saved in a previous backup creation operation (it is not the backup itself). This information can be removed with the --purge command. It may be provided with the orphaned archive name in order to remove information about that particular archive or with the --all option in order to remove information about all orphaned archives.
Note that the --purge command does not remove created backups.