ls

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

plakar lsList snapshots and their contents in a Plakar repository

plakar ls[-uuid] [-name name] [-category category] [-environment environment] [-perimeter perimeter] [-job job] [-tag tag] [-latest] [-before date] [-since date] [-recursive] [snapshotID:path]

The plakar ls command lists snapshots stored in a Plakar repository, and optionally displays the contents of path in a specified snapshot.

The options are as follows:

name
Only apply command to snapshots that match name.
category
Only apply command to snapshots that match category.
environment
Only apply command to snapshots that match environment.
perimeter
Only apply command to snapshots that match perimeter.
job
Only apply command to snapshots that match job.
tag
Filter snapshots by the specified tag, listing only those that contain the given tag.
Only apply command to latest snapshot matching filters.
date
Only apply command to snapshots matching filters and older than the specified date. Accepted formats include relative durations (e.g. 2d for two days, 1w for one week) or specific dates in various formats (e.g. 2006-01-02 15:04:05).
date
Only apply command to snapshots matching filters and created since the specified date, included. Accepted formats include relative durations (e.g. 2d for two days, 1w for one week) or specific dates in various formats (e.g. 2006-01-02 15:04:05).
Display the full UUID for each snapshot instead of the shorter snapshot ID.
List directory contents recursively when exploring snapshot contents.

List all snapshots with their short IDs:

$ plakar ls

List all snapshots with UUIDs instead of short IDs:

$ plakar ls -uuid

List snapshots with a specific tag:

$ plakar ls -tag daily-backup

List contents of a specific snapshot:

$ plakar ls abc123

Recursively list contents of a specific snapshot:

$ plakar ls -recursive abc123:/etc

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

0
Command completed successfully.
>0
An error occurred, such as failure to retrieve snapshot information or invalid snapshot ID.

plakar(1)

February 3, 2025 Plakar