plakar-archive

PLAKAR-ARCHIVE(1) General Commands Manual PLAKAR-ARCHIVE(1)

plakar-archiveCreate an archive from a Plakar snapshot

plakar archive[-format type] [-output archive] [-rebase] snapshotID:path

The plakar archive command creates an archive of the given type from the contents at path of a specified Plakar snapshot, or all the files if no path is given.

The options are as follows:

type
Specify the archive format. Supported formats are:

Creates a tar file.
Creates a compressed tar.gz file.
Creates a zip archive.
pathname
Specify the output path for the archive file. If omitted, the archive is created with a default name based on the current date and time.
Strip the leading path from archived files, useful for creating "flat" archives without nested directories.

Create a tarball of the entire snapshot:

$ plakar archive -output backup.tar.gz -format tarball abc123

Create a zip archive of a specific directory within a snapshot:

$ plakar archive -output dir.zip -format zip abc123:/var/www

Archive with rebasing to remove directory structure:

$ plakar archive -rebase -format tar abc123

The plakar-archive utility exits 0 on success, and >0 if an error occurs.

0
Command completed successfully.
>0
An error occurred, such as unsupported format, missing files, or permission issues.

plakar(1), plakar-backup(1)

Plakar July 3, 2025 PLAKAR-ARCHIVE(1)