### Install Plakar Source: https://github.com/plakarkorp/plakar/blob/main/README.md Installs the Plakar tool using Go's install command. Ensure Go is installed and configured on your system. ```sh go install github.com/PlakarKorp/plakar@latest ``` -------------------------------- ### Create a snapshot with tags Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-backup.md Example of creating a snapshot of the current directory and applying 'daily-backup' and 'production' tags. ```bash $ plakar backup -tag daily-backup,production ``` -------------------------------- ### Start a Plakar server on the local store Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-server.md This command starts a basic Plakar server instance on the default local store. No specific options are provided, so it will use default settings for listening address and port. ```bash $ plakar server ``` -------------------------------- ### Start a Plakar server on a remote store Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-server.md This command starts a Plakar server that connects to a remote store using SFTP. The 'at' subcommand specifies the remote location. ```bash $ plakar at sftp://example.org server ``` -------------------------------- ### Sample Plakar Plugin Recipe Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-pkg-recipe.yaml.md A basic example of a recipe.yaml file to build the 'fs' plugin from its GitHub repository. ```yaml name: fs version: v1.0.0 repository: https://github.com/PlakarKorp/integrations-fs ``` -------------------------------- ### Start a Plakar server on a specific address and port Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-server.md This command starts a Plakar server, explicitly defining the IP address and port to listen on. The '-listen' option allows customization of the network interface and port. ```bash $ plakar server -listen 127.0.0.1:12345 ``` -------------------------------- ### Start a login via email Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-login.md Use the `-email` option to send a login link to the specified email address. Visiting that link will authenticate `plakar`. ```bash $ plakar login -email user@example.com ``` -------------------------------- ### Show installed plugins and remove a plugin Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-pkg-rm.md First, list installed plugins using 'plakar pkg show'. Then, remove a specific plugin by providing its name to 'plakar pkg rm'. ```bash plakar pkg show epic-v1.2.3 plakar pkg rm epic-v1.2.3 ``` -------------------------------- ### Start a HTTPS Plakar server on a specific address and port Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-server.md This command starts a Plakar server configured for HTTPS connections. It specifies the listening address and port, along with paths to the certificate and private key files required for SSL/TLS. ```bash $ plakar server -listen backup.example.com:12345 -cert fullchain.pem -key privkey.pem ``` -------------------------------- ### Mount Snapshots Matching a Filter (Tag) Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-mount.md Mount Plakar snapshots that match a specific filter, such as a tag. This example mounts snapshots tagged 'daily-backup'. ```bash $ plakar mount -to ~/mnt -tag daily-backup ``` -------------------------------- ### Pass options to the source connector Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-backup.md Example of passing a custom option to the source connector, such as 'dont_traverse_fs=true', to control its behavior during the backup process. This is useful for excluding mounted file systems. ```bash $ plakar backup -o dont_traverse_fs=true / ``` -------------------------------- ### Add Plakar Integration Package Source: https://github.com/plakarkorp/plakar/blob/main/README.md Installs an integration package for Plakar. Use this to extend Plakar's capabilities with additional backup sources or storage backends. ```sh plakar pkg add ``` -------------------------------- ### List contents of a specific snapshot Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-ls.md Specify a snapshot ID to list its contents. For example, 'abc123' lists the contents of that snapshot. ```bash $ plakar ls abc123 ``` -------------------------------- ### Set Policy Frequency Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-policy.md Sets the 'per-week' option for a policy, specifying the number of backups to keep per week. For example, 'per-week=1' keeps one backup per week. ```bash plakar policy set weekly per-week=1 ``` -------------------------------- ### Recursively list contents of a specific snapshot Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-ls.md Use the '-recursive' flag along with a snapshot ID and path to list directory contents recursively. For example, 'abc123:/etc' lists the contents of /etc within the 'abc123' snapshot. ```bash $ plakar ls -recursive abc123:/etc ``` -------------------------------- ### Remove snapshots older than a specified duration Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-rm.md This command removes all snapshots that were created before the specified duration. For example, '-before 30d' removes snapshots older than 30 days. ```bash $ plakar rm -before 30d ``` -------------------------------- ### Set Policy Retention Duration Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-policy.md Sets the 'since' option for a policy, defining the maximum age of backups to retain. For example, '3 months' means backups older than three months will be discarded. ```bash plakar policy set weekly since='3 months' ``` -------------------------------- ### Create a Snapshot Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar.md Create a backup snapshot of the current directory and store it in the specified Kloset store. Ensure the store is accessible. ```bash plakar at @mys3bucket backup ``` -------------------------------- ### Sample manifest.yaml for 'fs' plugin Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-pkg-manifest.yaml.md This is a sample manifest file for the 'fs' plugin, demonstrating the required fields and structure for packaging a Plakar plugin. ```yaml # manifest.yaml name: fs display_name: file system connector description: file storage but as external plugin homepage: https://github.com/PlakarKorp/integrations/fs license: ISC tags: [ fs, filesystem, "local files" ] api_version: 1.0.0 version: 1.0.0 connectors: - type: importer executable: fs-importer protocols: [fs] - type: exporter executable: fs-exporter protocols: [fs] - type: storage executable: fs-store protocols: [fs] ``` -------------------------------- ### Create a Local Plakar Repository Source: https://github.com/plakarkorp/plakar/blob/main/README.md Initializes a new Plakar backup repository at the specified directory. This command sets up the necessary structure for storing backups. ```sh plakar at /var/backups create ``` -------------------------------- ### Show All Policies (YAML) Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-policy.md Displays the current retention policies configuration in YAML format. This is the default format. ```bash plakar policy show ``` -------------------------------- ### Show All Policies (JSON) Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-policy.md Displays the current retention policies configuration in JSON format. ```bash plakar policy show -json ``` -------------------------------- ### Ignore files using patterns from files Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-backup.md Demonstrates how to exclude files and directories from a backup by specifying paths to files containing gitignore-style patterns. This can be used with multiple ignore files. ```bash $ plakar backup -ignore-file ~/common-ignore -ignore-file ~/project-ignore /var/www ``` -------------------------------- ### Display a file with syntax highlighting Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-cat.md This command displays a file's content with syntax highlighting applied, which is useful for code files. The '-highlight' option enables this feature. Ensure the path points to a file that can be highlighted. ```bash $ plakar cat -highlight abc123:/home/op/korpus/driver.sh ``` -------------------------------- ### Create a Plakar Store Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar.md Use this command to create a new encrypted Kloset store. It can be created at the default location or a specified one. ```bash plakar create ``` -------------------------------- ### List Snapshots Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar.md List all available snapshots stored in the default Kloset store. This helps in identifying snapshots for restoration or management. ```bash plakar ls ``` -------------------------------- ### Show Specific Policies (YAML) Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-policy.md Displays the configuration for specified retention policies in YAML format. ```bash plakar policy show weekly ``` -------------------------------- ### Back Up a Directory with Plakar Source: https://github.com/plakarkorp/plakar/blob/main/README.md Creates a backup snapshot of the specified directory and stores it in the Plakar repository. The repository must be created first. ```sh plakar at /var/backups backup /etc ``` -------------------------------- ### List Repository States Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-diag.md View all the states currently recorded in the repository. This command helps in understanding the repository's history. ```bash $ plakar diag state ``` -------------------------------- ### Open Plakar Web UI Source: https://github.com/plakarkorp/plakar/blob/main/README.md Launches the built-in web-based user interface for managing Plakar backups. This provides a graphical way to interact with the repository. ```sh plakar at /var/backups ui ``` -------------------------------- ### List all snapshots with short IDs Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-ls.md Use 'plakar ls' to display all snapshots in the repository using their short IDs. ```bash $ plakar ls ``` -------------------------------- ### Create HTTPS Server with Custom Certificate Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-ui.md Use this snippet to configure the Plakar UI to serve over HTTPS using custom certificate and key files. Ensure the certificate and key paths are correct. ```bash $ plakar ui -cert fullchain.pem -key privkey.pem ``` -------------------------------- ### Display VFS Details for a Path Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-diag.md Examine the filesystem (VFS) details for a given path within a specific snapshot. This is useful for inspecting file attributes and metadata. ```bash $ plakar diag vfs abc123:/etc/passwd ``` -------------------------------- ### Show Repository Information Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-info.md Displays general information about the Plakar repository. Use this command when you need an overview of the repository's internal structures. ```bash plakar info ``` -------------------------------- ### Authenticate via GitHub (default) Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-login.md When no authentication method is specified, GitHub OAuth is assumed. A browser will be spawned to initiate the OAuth flow unless `-no-spawn` is specified. ```bash $ plakar login ``` -------------------------------- ### Serve UI with Custom Address and No Auto-Spawn Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-ui.md Use this snippet to serve the Plakar UI on a specific address and prevent the automatic opening of the web browser. ```bash $ plakar ui -addr localhost:9090 -no-spawn ``` -------------------------------- ### Synchronize All Snapshots from Peer to Local Repository Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-sync.md Synchronizes all snapshots from the peer repository '@peer' to the local repository '@repo'. This is useful for backing up or mirroring an entire repository. ```bash $ plakar at @repo sync from @peer ``` -------------------------------- ### Display Repository Information Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-diag.md Use this command to view general information about the Plakar repository when no specific sub-command is provided. ```bash $ plakar diag ``` -------------------------------- ### Mount All Snapshots to a Local Directory Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-mount.md Mount all available Plakar snapshots to a specified local directory using FUSE. Ensure the target directory exists or can be created. ```bash $ plakar mount -to ~/mnt ``` -------------------------------- ### Mount All Snapshots Allowing Other Users Access Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-mount.md Mount all Plakar snapshots to a local directory, enabling access for users other than the one executing the command. This requires appropriate system permissions. ```bash $ plakar mount -allow-others -to ~/mnt ``` -------------------------------- ### Compare specific files across snapshots with highlighting Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-diff.md This command compares a specific file across two snapshots and applies syntax highlighting to the diff output for better readability. Ensure the file path is correctly specified for both snapshots. ```bash $ plakar diff -highlight abc123:/etc/passwd def456:/etc/passwd ``` -------------------------------- ### Display Snapshot Details Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-diag.md Retrieve detailed information about a specific snapshot by providing its ID. This includes metadata and file counts. ```bash $ plakar diag snapshot abc123 ``` -------------------------------- ### Ignore files using inline patterns Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-backup.md Shows how to specify gitignore-style exclusion patterns directly on the command line to exclude specific file types like temporary or log files from the backup. ```bash $ plakar backup -ignore "*.tmp" -ignore "*.log" /var/www ``` -------------------------------- ### Display Object Details Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-diag.md Show detailed information for a specific object within the repository, identified by its object ID. This includes its MAC, type, and associated data chunks. ```bash $ plakar diag object 1234567890abcdef ``` -------------------------------- ### Create Tarball Archive of Entire Snapshot Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-archive.md Creates a compressed tar.gz archive of the entire specified Plakar snapshot. Use this for full backups. ```bash $ plakar archive -output backup.tar.gz -format tarball abc123 ``` -------------------------------- ### Create Zip Archive of Specific Directory Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-archive.md Creates a zip archive of a specific directory within a Plakar snapshot. Useful for backing up only certain parts of a snapshot. ```bash $ plakar archive -output dir.zip -format zip abc123:/var/www ``` -------------------------------- ### Create Tar Archive with Rebasing Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-archive.md Creates a tar archive from a Plakar snapshot, stripping the leading path from archived files to create a flat archive structure. This is useful when the directory hierarchy is not needed in the archive. ```bash $ plakar archive -rebase -format tar abc123 ``` -------------------------------- ### List all snapshots with UUIDs Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-ls.md Use the '-uuid' flag with 'plakar ls' to display the full UUID for each snapshot instead of the shorter snapshot ID. ```bash $ plakar ls -uuid ``` -------------------------------- ### Bi-directional Synchronization of Recent Snapshots Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-sync.md Performs bi-directional synchronization with a peer repository for snapshots taken within the last 7 days. Useful for keeping repositories up-to-date with recent changes. ```bash $ plakar sync -since 7d with @peer ``` -------------------------------- ### List Snapshots in a Plakar Repository Source: https://github.com/plakarkorp/plakar/blob/main/README.md Displays a list of all available backup snapshots stored in the Plakar repository. This helps in identifying snapshots for restoration or inspection. ```sh plakar at /var/backups ls ``` -------------------------------- ### Compute Digest with BLAKE3 Algorithm Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-digest.md Specify a different hashing algorithm, such as BLAKE3, to compute the digest of a file. This is useful for compatibility or specific security requirements. ```bash plakar digest -hashing BLAKE3 abc123:/etc/netstart ``` -------------------------------- ### Show Snapshot Information Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-info.md Displays detailed information for a specific snapshot identified by its ID. Use this when you need to inspect the contents or metadata of a particular snapshot. ```bash plakar info abc123 ``` -------------------------------- ### Mount Specific Snapshot by ID to a Directory Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-mount.md Mount a particular Plakar snapshot, identified by its unique ID, to a local directory. Replace 'abc123' with the actual snapshot ID. ```bash $ plakar mount -to ~/mnt abc123 ``` -------------------------------- ### Mount Latest Snapshot to a Local Directory Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-mount.md Mount only the most recent Plakar snapshot to a specified local directory. This is useful for quick access to the latest version of your data. ```bash $ plakar mount -to ~/mnt -latest ``` -------------------------------- ### Duplicate a Snapshot Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-dup.md Use this command to create a duplicate of an existing snapshot. Provide the ID of the snapshot you wish to duplicate. ```bash $ plakar dup abc123 ``` -------------------------------- ### Compare root directories of two snapshots Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-diff.md Use this command to compare the root directories of two specified Plakar snapshots. ```bash $ plakar diff abc123 def456 ``` -------------------------------- ### Authenticate via environment variable Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-login.md Use the `-env` option to persist the value of the `PLAKAR_TOKEN` environment variable into the configuration. Generate this token with `plakar-token-create(1)`. ```bash plakar login -env ``` -------------------------------- ### Restore a File Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar.md Restore a specific file from a snapshot to the current directory. You need to provide the snapshot ID and the file path. ```bash plakar restore -to . abcd:notes.md ``` -------------------------------- ### Add a Remote Plakar Store (AWS S3) Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar.md Add a remote Kloset store, such as an AWS S3 bucket, by specifying its location and access credentials. This command configures the store for subsequent operations. ```bash plakar store add mys3bucket \ location=s3://s3.eu-west-3.amazonaws.com/backups \ access_key="access_key" \ secret_access_key="secret_key" ``` ```bash plakar at @mys3bucket create ``` -------------------------------- ### List snapshots with a specific tag Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-ls.md Use the '-tag' flag with 'plakar ls' to filter and list snapshots that match a specific tag. ```bash $ plakar ls -tag daily-backup ``` -------------------------------- ### Mount Snapshots to an HTTP Endpoint Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-mount.md Mount all Plakar snapshots to a remote HTTP endpoint. Ensure the specified hostname and port are accessible and configured for Plakar. ```bash $ plakar mount -to http://hostname:8080 ``` -------------------------------- ### Argon2ID Parameters Configuration Source: https://github.com/plakarkorp/plakar/blob/main/docs/audit/2025-02-cryptography.md Configuration for Argon2ID parameters, noting that memory is specified in KiB. The Threads parameter was later reduced to 1. ```go Argon2IDParams: &Argon2IDParams{ SaltSize: saltSize, Time: 4, Memory: 256 * 1024, Threads: uint8(runtime.NumCPU()), KeyLen: 32, }, ``` -------------------------------- ### Authenticate via GitHub without spawning browser Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-login.md Use the `-no-spawn` option to prevent automatically opening a browser window for authentication flows, such as GitHub OAuth. ```bash plakar login -no-spawn -github ``` -------------------------------- ### Perform a fast check on specific paths of two snapshots Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-check.md This command performs a rapid integrity check on designated paths within specific snapshots. The '-fast' flag skips MAC verification, focusing on structural validation. It targets '/etc/passwd' in snapshot 'abc123' and '/var/www' in snapshot 'def456'. ```bash $ plakar check -fast abc123:/etc/passwd def456:/var/www ``` -------------------------------- ### Display a file's contents from a snapshot Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-cat.md Use this command to view the content of a specific file within a Plakar snapshot. Replace 'abc123' with your snapshot ID and '/etc/passwd' with the desired file path. ```bash $ plakar cat abc123:/etc/passwd ``` -------------------------------- ### Prune Snapshots with a Policy Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-policy.md Executes the plakar prune command using a specified retention policy, such as 'weekly', to discard old backups. ```bash plakar prune -policy weekly ``` -------------------------------- ### Restore all files from a specific snapshot to the current directory Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-restore.md Use this command to restore all files from a given snapshot ID to the current working directory. ```bash plakar restore abc123 ``` -------------------------------- ### Restore a specific path from a snapshot to a specific directory Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-restore.md Use this command to restore a particular file or directory path from a snapshot to a specified destination directory. ```bash plakar restore -to /mnt/ abc123:/etc/apache2 ``` -------------------------------- ### Check login status Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-login.md Use the `-status` option to check if the user is currently logged in. This option cannot be used with any other options. ```bash plakar login -status ``` -------------------------------- ### Restore all files from a specific snapshot to a specific directory Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-restore.md This command restores all files from a snapshot ID to a specified destination directory. ```bash plakar restore -to /mnt/ abc123 ``` -------------------------------- ### Generate a Plakar Token Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-token-create.md Use this command to generate a new token for authenticating with Plakar services. This token can then be exported as an environment variable for automated logins. ```bash $ plakar token create ``` ```bash $ export PLAKAR_TOKEN=... $ plakar login -env ``` -------------------------------- ### Scrypt Parameters for Password Hashing Source: https://github.com/plakarkorp/plakar/blob/main/docs/audit/2025-02-cryptography.md These are the scrypt parameters used for password hashing in Plakar. Consider switching to Argon2id for improved security and performance. ```go KDFParams: KDFParams{ N: 1 << 15, R: 8, P: 1, KeyLen: 32, ``` -------------------------------- ### Perform a full integrity check on all snapshots Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-check.md This command initiates a comprehensive integrity check across all snapshots in the Plakar repository. No specific paths or snapshots are targeted, so the entire repository is scanned. ```bash $ plakar check ``` -------------------------------- ### Add a New Retention Policy Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-policy.md Creates a new retention policy entry identified by a name. Additional options can be set during creation. ```bash plakar policy add weekly ``` -------------------------------- ### Compute Digest of a File Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-digest.md Use this command to compute the default SHA256 digest of a file within a specific snapshot. Provide the snapshot ID and the path to the file. ```bash plakar digest abc123:/etc/passwd ``` -------------------------------- ### Synchronize a Specific Snapshot Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-sync.md Synchronizes a snapshot with the ID 'abcd' to a peer repository. Use this when you need to transfer a particular snapshot. ```bash $ plakar sync abcd to @peer ``` -------------------------------- ### Show Snapshot Errors Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-info.md Displays errors found within a specified snapshot. Use this option when troubleshooting issues or verifying the integrity of a snapshot. ```bash plakar info -errors abc123 ``` -------------------------------- ### Mount Specific Snapshot to an HTTP Endpoint Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-mount.md Mount a particular Plakar snapshot, identified by its ID, to a remote HTTP endpoint. Replace 'abc123' with the actual snapshot ID. ```bash $ plakar mount -to http://hostname:8080 abc123 ``` -------------------------------- ### Restore a specific path from a snapshot to a remote destination Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-restore.md Use this command to restore a specific file or directory path from a snapshot to a specified remote destination. ```bash plakar restore -to @s3target abc123:/etc/apache2 ``` -------------------------------- ### Synchronize Plakar Stores Source: https://github.com/plakarkorp/plakar/blob/main/README.md Synchronizes Plakar Kloset stores across locations. This command is used for implementing backup strategies like 3-2-1 or advanced sync workflows. ```sh plakar at /var/backups sync to @s3 ``` -------------------------------- ### Log out from the current session Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-logout.md Use this command to end your current authenticated session with the Plakar platform. ```bash plakar logout ``` -------------------------------- ### Restore all files from a snapshot to a remote destination Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-restore.md This command restores all files from a snapshot ID to a specified remote destination, such as an S3 bucket. ```bash plakar restore -to @s3target abc123 ``` -------------------------------- ### Search for files ending in 'wd' Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-locate.md Use plakar locate with a shell glob pattern to find files ending with 'wd'. The patterns may need to be quoted to prevent shell expansion. ```bash $ plakar locate '*wd' abc123:/etc/master.passwd abc123:/etc/passwd ``` -------------------------------- ### Restore a Snapshot from Plakar Source: https://github.com/plakarkorp/plakar/blob/main/README.md Restores a specific snapshot from the Plakar repository to a target directory. Replace with the actual ID of the snapshot to restore. ```sh plakar at /var/backups restore -to /tmp/restore ``` -------------------------------- ### Remove snapshots older than a year and with a specific tag Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-prune.md This command combines age and tag filtering to remove snapshots that are both older than one year and possess the specified tag. This allows for more granular cleanup policies. ```bash $ plakar prune -years 1 -tag daily-backup ``` -------------------------------- ### Remove a Policy Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-policy.md Removes a retention policy identified by its name from the configuration. ```bash plakar policy rm weekly ``` -------------------------------- ### Remove snapshots with a specific tag Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-prune.md Use this command to delete all snapshots that have been assigned a particular tag. This is helpful for removing all backups of a certain type, like daily backups. ```bash $ plakar prune -tag daily-backup ``` -------------------------------- ### Remove snapshots older than a specified number of days Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-prune.md This command prunes snapshots that were created more than the specified number of days ago. This is useful for automated cleanup of old backups. ```bash $ plakar prune -days 30 ``` -------------------------------- ### Remove Old Snapshots Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar.md Remove snapshots that are older than a specified duration. This is useful for managing storage space. ```bash plakar rm -before 30d ``` -------------------------------- ### Remove snapshots older than a duration and with a specific tag Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-rm.md This command combines age and tag filtering to remove snapshots. It deletes snapshots older than the specified duration AND matching the given tag. ```bash $ plakar rm -before 1y -tag daily-backup ``` -------------------------------- ### Remove an Option from a Policy Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-policy.md Removes a specific option (e.g., 'since') from a retention policy identified by its name. ```bash plakar policy unset weekly since ``` -------------------------------- ### Remove a specific snapshot by ID Source: https://github.com/plakarkorp/plakar/blob/main/subcommands/help/docs/plakar-prune.md Use this command to delete a single, precisely identified snapshot from the repository. ```bash $ plakar prune abc123 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.