> V1.0.2 > Commands > Plakar backup
Version v1.0.2

backup

PLAKAR-BACKUP(1)General Commands ManualPLAKAR-BACKUP(1)

plakar backupCreate a new snapshot in a Plakar repository

plakar backup[-concurrency number] [-exclude pattern] [-excludes file] [-check] [-quiet] [-tag tag] [place]

The plakar backup command creates a new snapshot of place, or the current directory. Snapshots can be filtered to exclude specific files or directories based on patterns provided through options.

place can be either a path, an URI, or a label on the form “@name” to reference a remote configured with plakar-config(1).

The options are as follows:

number
Set the maximum number of parallel tasks for faster processing. Defaults to 8 * CPU count + 1.
pattern
Specify individual glob exclusion patterns to ignore files or directories in the backup. This option can be repeated.
file
Specify a file containing glob exclusion patterns, one per line, to ignore files or directories in the backup.
Perform a full check on the backup after success.
Suppress output to standard input, only logging errors and warnings.
tag
Specify a tag to assign to the snapshot for easier identification.

Create a snapshot of the current directory with a tag:

$ plakar backup -tag daily-backup

Backup a specific directory with exclusion patterns from a file:

$ plakar backup -excludes ~/my-excludes-file /var/www

Backup a directory with specific file exclusions:

$ plakar backup -exclude "*.tmp" -exclude "*.log" /var/www

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

0
Command completed successfully, snapshot created.
>0
An error occurred, such as failure to access the repository or issues with exclusion patterns.

plakar(1), plakar-config(1)

April 4, 2025Plakar