borgmatic

recreate

πŸ”

Here's the command-line help for this action in the most recent version of borgmatic. If you're using an older version, some of these flags may not work, and you should instead run the action with --help to see the flags specific to your borgmatic version.

usage: borgmatic recreate [--repository REPOSITORY] [--archive ARCHIVE]
                          [--list] [--target TARGET] [--comment COMMENT]
                          [--timestamp TIMESTAMP] [-a PATTERN] [-h]

Recreate an archive in a repository (with Borg 1.2+, you must run compact
afterwards to actually free space)

recreate arguments:
  --repository REPOSITORY
                        Path of repository containing archive to recreate,
                        defaults to the configured repository if there is only
                        one, quoted globs supported
  --archive ARCHIVE     Archive name, hash, or series to recreate, defaults to
                        all archives in the repository (if specified), or all
                        archives across all repositories
  --list                Show per-file details
  --target TARGET       Create a new archive from the specified archive (via
                        --archive), without replacing it
  --comment COMMENT     Add a comment text to the archive or, if an archive is
                        not provided, to all matching archives
  --timestamp TIMESTAMP
                        Manually override the archive creation date/time (UTC)
  -a PATTERN, --match-archives PATTERN, --glob-archives PATTERN
                        Only consider archive names, hashes, or series
                        matching this pattern [Borg 2.x+ only]
  -h, --help            Show this help message and exit

Improve this documentation

Have an idea on how to make this documentation even better? Use our issue tracker to send your feedback!