![]() |
![]()
| ![]() |
![]()
NAMEkopia SYNOPSISDESCRIPTIONKopia - Fast And Secure Open-Source Backup OPTIONS
COMMANDShelp [<command>...]Show help. blob delete <blobIDs>...Delete blobs by ID blob gc [<flags>]Garbage-collect unused blobs
blob list [<flags>]List BLOBs
blob show [<flags>] <blobID>...Show contents of BLOBs
blob stats [<flags>]Blob statistics
benchmark compression --data-file=DATA-FILE [<flags>]Run compression benchmarks
benchmark crypto [<flags>]Run combined hash and encryption benchmarks
benchmark splitter [<flags>]Run splitter benchmarks
benchmark hashing [<flags>]Run hashing function benchmarks
benchmark encryption [<flags>]Run encryption benchmarks
benchmark ecc [<flags>]Run ECC benchmarks
cache clear [<flags>]Clears the cache
cache info [<flags>]Displays cache information and statistics
cache prefetch [<flags>] <object>...Prefetches the provided objects into cache
cache set [<flags>]Sets parameters local caching of repository data
cache sync [<flags>]Synchronizes the metadata cache with blobs in storage
content delete <id>...Remove content content list [<flags>]List contents
content rewrite [<flags>] [<contentID>...]Rewrite content using most recent format
content show [<flags>] <id>...Show contents by ID.
content stats [<flags>]Content statistics
content verify [<flags>]Verify that each content is backed by a valid blob
diff [<flags>] <object-path1> <object-path2>Displays differences between two repository objects (files or directories)
index epoch listList the status of epochs. index inspect [<flags>] [<blobs>...]Inspect index blob
index list [<flags>]List content indexes
index optimize [<flags>]Optimize indexes blobs.
index recover [<flags>]Recover indexes from pack blobs
list [<flags>] <object-path>List a directory stored in repository object.
logs cleanup [<flags>]Clean up logs
logs list [<flags>]List logs.
logs show [<flags>] [<session-id>...]Show contents of the log. When no flags or arguments are specified, only the last log is shown.
notification profile configure email --profile-name=PROFILE-NAME [<flags>]E-mail notification.
notification profile configure pushover --profile-name=PROFILE-NAME [<flags>]Pushover notification.
notification profile configure webhook --profile-name=PROFILE-NAME [<flags>]Webhook notification.
notification profile delete --profile-name=PROFILE-NAMEDelete notification profile
notification profile test --profile-name=PROFILE-NAMESend test notification
notification profile list [<flags>]List notification profiles notification profile show --profile-name=PROFILE-NAME [<flags>]Show notification profile
notification template list [<flags>]List templates
notification template set [<flags>] <template>Set the notification template
notification template show [<flags>] <template>Show template
notification template remove <template>Remove the notification template server start [<flags>]Start Kopia server
server acl add --user=USER --target=TARGET --access=ACCESS [<flags>]Add ACL entry
server acl delete [<flags>] [<id>...]Delete ACL entry server acl enable [<flags>]Enable ACLs and install default entries
server acl list [<flags>]List ACL entries
server users add [<flags>] <username>Add new repository user
server users set [<flags>] <username>Set password for a repository user.
server users delete <username>Delete user server users hash-password [<flags>]Hash a user password that can be passed to the 'server user add/set' command
server users info <username>Info about particular user server users list [<flags>]List users
server status [<flags>]Status of Kopia server
server refresh [<flags>]Refresh the cache in Kopia server to observe new sources, etc.
server flush [<flags>]Flush the state of Kopia server to persistent storage, etc.
server shutdown [<flags>]Gracefully shutdown the server
server snapshot [<flags>] [<source>]Trigger upload for one or more existing sources
server cancel [<flags>] [<source>]Cancels in-progress uploads for one or more sources
server pause [<flags>] [<source>]Pause the scheduled snapshots for one or more sources
server resume [<flags>] [<source>]Resume the scheduled snapshots for one or more sources
server throttle get [<flags>]Get throttling parameters for a running server
server throttle set [<flags>]Set throttling parameters for a running server
session listList sessions restore [<flags>] <sources>...Restore a directory or a file. Restore can operate in two modes: * from a snapshot: restoring (possibly shallowly) a specified file or directory from a snapshot into a target path. By default, the target path will be created by the restore command if it does not exist. * by expanding a shallow placeholder in situ where the placeholder was created by a previous restore. In the from-snapshot mode: The source to be restored is specified in the form of a directory or file ID and optionally a sub-directory path. For example, the following source and target arguments will restore the contents of the 'kffbb7c28ea6c34d6cbe555d1cf80faa9' directory into a new, local directory named 'd1' Similarly, the following command will restore the contents of a subdirectory directory named 'sd2' When restoring to a target path that already has existing data, by default the restore will attempt to overwrite, unless one or more of the following flags has been set (to prevent overwrite of each type): --no-overwrite-files --no-overwrite-directories --no-overwrite-symlinks If the '--shallow' option is provided, files and directories this depth and below in the directory hierarchy will be represented by compact placeholder files of the form 'entry.kopia-entry' instead of being restored. (I.e. setting '--shallow' to 0 will only shallow restore.) Snapshots created of directory contents represented by placeholder files will be identical to snapshots of the equivalent fully expanded tree. In the expanding-a-placeholder mode: The source to be restored is a pre-existing placeholder entry of the form of the expansion and defaults to 0. For example: will remove the d3.kopiadir placeholder and restore the referenced repository contents into path d3 where the contents of the newly created path d3 will themselves be placeholder files.
show <object-path>Displays the contents of a repository object. snapshot copy-history [<flags>] <source> [<destination>]Performs a copy of the history of snapshots from another user or host. This command will copy snapshot manifests of the specified source to the respective destination. This is typically used when renaming a host, switching username or moving directory around to maintain snapshot history. Both source and destination can be specified using user@host, @host or user@host:/path where destination values override the corresponding parts of the source, so both targeted and mass copy is supported. Source: Destination Behavior --------------------------------------------------- @host1 @host2 copy snapshots from all users of host1 @host1 user2@host2 (disallowed as it would potentially collapse users) @host1 user2@host2:/path2 (disallowed as it would potentially collapse paths) user1@host1 @host2 copy all snapshots to user1@host2 user1@host1 user2@host2 copy all snapshots to user2@host2 user1@host1 user2@host2:/path2 (disallowed as it would potentially collapse paths) user1@host1:/path1 @host2 copy to user1@host2:/path1 user1@host1:/path1 user2@host2 copy to user2@host2:/path1 user1@host1:/path1 user2@host2:/path2 copy snapshots from single path.
snapshot move-history [<flags>] <source> [<destination>]Performs a move of the history of snapshots from another user or host. This command will move snapshot manifests of the specified source to the respective destination. This is typically used when renaming a host, switching username or moving directory around to maintain snapshot history. Both source and destination can be specified using user@host, @host or user@host:/path where destination values override the corresponding parts of the source, so both targeted and mass move is supported. Source: Destination Behavior --------------------------------------------------- @host1 @host2 move snapshots from all users of host1 @host1 user2@host2 (disallowed as it would potentially collapse users) @host1 user2@host2:/path2 (disallowed as it would potentially collapse paths) user1@host1 @host2 move all snapshots to user1@host2 user1@host1 user2@host2 move all snapshots to user2@host2 user1@host1 user2@host2:/path2 (disallowed as it would potentially collapse paths) user1@host1:/path1 @host2 move to user1@host2:/path1 user1@host1:/path1 user2@host2 move to user2@host2:/path1 user1@host1:/path1 user2@host2:/path2 move snapshots from single path.
snapshot create [<flags>] [<source>...]Creates a snapshot of local directory or file.
snapshot delete [<flags>] <id>...Explicitly delete a snapshot by providing a snapshot ID.
snapshot estimate [<flags>] <source>Estimate the snapshot size and upload time.
snapshot expire [<flags>] [<path>...]Remove old snapshots according to defined expiration policies. snapshot fix invalid-files [<flags>]Remove references to any invalid (unreadable) files from snapshots.
snapshot fix remove-files [<flags>]Remove references to the specified files from snapshots.
snapshot list [<flags>] [<source>]List snapshots of files and directories.
snapshot migrate --source-config=SOURCE-CONFIG [<flags>]Migrate snapshots from another repository
snapshot pin [<flags>] <id>...Add or remove pins preventing snapshot deletion
snapshot restore [<flags>] <sources>...Restore a directory or a file. Restore can operate in two modes: * from a snapshot: restoring (possibly shallowly) a specified file or directory from a snapshot into a target path. By default, the target path will be created by the restore command if it does not exist. * by expanding a shallow placeholder in situ where the placeholder was created by a previous restore. In the from-snapshot mode: The source to be restored is specified in the form of a directory or file ID and optionally a sub-directory path. For example, the following source and target arguments will restore the contents of the 'kffbb7c28ea6c34d6cbe555d1cf80faa9' directory into a new, local directory named 'd1' Similarly, the following command will restore the contents of a subdirectory directory named 'sd2' When restoring to a target path that already has existing data, by default the restore will attempt to overwrite, unless one or more of the following flags has been set (to prevent overwrite of each type): --no-overwrite-files --no-overwrite-directories --no-overwrite-symlinks If the '--shallow' option is provided, files and directories this depth and below in the directory hierarchy will be represented by compact placeholder files of the form 'entry.kopia-entry' instead of being restored. (I.e. setting '--shallow' to 0 will only shallow restore.) Snapshots created of directory contents represented by placeholder files will be identical to snapshots of the equivalent fully expanded tree. In the expanding-a-placeholder mode: The source to be restored is a pre-existing placeholder entry of the form of the expansion and defaults to 0. For example: will remove the d3.kopiadir placeholder and restore the referenced repository contents into path d3 where the contents of the newly created path d3 will themselves be placeholder files.
snapshot verify [<flags>] [<snapshot-ids>...]Verify the contents of stored snapshot
manifest delete <item>...Remove manifest items manifest list [<flags>]List manifest items
manifest show <item>...Show manifest items policy edit [<flags>] [<target>...]Edit policy.
policy list [<flags>]List policies.
policy delete [<flags>] [<target>...]Remove policy.
policy set [<flags>] [<target>...]Set policy.
policy show [<flags>] [<target>...]Show snapshot policy. policy export [<flags>] [<target>...]Exports the policies to the specified file, or to stdout if none is specified.
policy import [<flags>] [<target>...]Imports policies from a specified file, or stdin if no file is specified.
mount [<flags>] [<path>] [<mountPoint>]Mount repository object as a local filesystem.
maintenance info [<flags>]Display maintenance information
maintenance run [<flags>]Run repository maintenance
maintenance set [<flags>]Set maintenance parameters
repository connect server --url=URL [<flags>]Connect to a repository API Server.
repository connect from-config [<flags>]Connect to repository in the provided configuration file
repository connect azure --container=CONTAINER --storage-account=STORAGE-ACCOUNT [<flags>]Connect to repository in an Azure blob storage
repository connect b2 --bucket=BUCKET --key-id=KEY-ID --key=KEY [<flags>]Connect to repository in a B2 bucket
repository connect filesystem --path=PATH [<flags>]Connect to repository in a filesystem
repository connect gcs --bucket=BUCKET [<flags>]Connect to repository in a Google Cloud Storage bucket
repository connect gdrive --folder-id=FOLDER-ID [<flags>]Connect to repository in a Google Drive folder
repository connect rclone --remote-path=REMOTE-PATH [<flags>]Connect to repository in a rclone-based provided
repository connect s3 --bucket=BUCKET --access-key=ACCESS-KEY --secret-access-key=SECRET-ACCESS-KEY [<flags>]Connect to repository in an S3 bucket
repository connect sftp --path=PATH --host=HOST --username=USERNAME [<flags>]Connect to repository in an SFTP storage
repository connect webdav --url=URL [<flags>]Connect to repository in a WebDAV storage
repository create from-config [<flags>]Create repository in the provided configuration file
repository create azure --container=CONTAINER --storage-account=STORAGE-ACCOUNT [<flags>]Create repository in an Azure blob storage
repository create b2 --bucket=BUCKET --key-id=KEY-ID --key=KEY [<flags>]Create repository in a B2 bucket
repository create filesystem --path=PATH [<flags>]Create repository in a filesystem
repository create gcs --bucket=BUCKET [<flags>]Create repository in a Google Cloud Storage bucket
repository create gdrive --folder-id=FOLDER-ID [<flags>]Create repository in a Google Drive folder
repository create rclone --remote-path=REMOTE-PATH [<flags>]Create repository in a rclone-based provided
repository create s3 --bucket=BUCKET --access-key=ACCESS-KEY --secret-access-key=SECRET-ACCESS-KEY [<flags>]Create repository in an S3 bucket
repository create sftp --path=PATH --host=HOST --username=USERNAME [<flags>]Create repository in an SFTP storage
repository create webdav --url=URL [<flags>]Create repository in a WebDAV storage
repository disconnectDisconnect from a repository. repository repair from-config [<flags>]Repair repository in the provided configuration file
repository repair azure --container=CONTAINER --storage-account=STORAGE-ACCOUNT [<flags>]Repair repository in an Azure blob storage
repository repair b2 --bucket=BUCKET --key-id=KEY-ID --key=KEY [<flags>]Repair repository in a B2 bucket
repository repair filesystem --path=PATH [<flags>]Repair repository in a filesystem
repository repair gcs --bucket=BUCKET [<flags>]Repair repository in a Google Cloud Storage bucket
repository repair gdrive --folder-id=FOLDER-ID [<flags>]Repair repository in a Google Drive folder
repository repair rclone --remote-path=REMOTE-PATH [<flags>]Repair repository in a rclone-based provided
repository repair s3 --bucket=BUCKET --access-key=ACCESS-KEY --secret-access-key=SECRET-ACCESS-KEY [<flags>]Repair repository in an S3 bucket
repository repair sftp --path=PATH --host=HOST --username=USERNAME [<flags>]Repair repository in an SFTP storage
repository repair webdav --url=URL [<flags>]Repair repository in a WebDAV storage
repository set-client [<flags>]Set repository client options.
repository set-parameters [<flags>]Set repository parameters.
repository status [<flags>]Display the status of connected repository.
repository sync-to from-config [<flags>]Synchronize repository data to another repository in the provided configuration file
repository sync-to azure --container=CONTAINER --storage-account=STORAGE-ACCOUNT [<flags>]Synchronize repository data to another repository in an Azure blob storage
repository sync-to b2 --bucket=BUCKET --key-id=KEY-ID --key=KEY [<flags>]Synchronize repository data to another repository in a B2 bucket
repository sync-to filesystem --path=PATH [<flags>]Synchronize repository data to another repository in a filesystem
repository sync-to gcs --bucket=BUCKET [<flags>]Synchronize repository data to another repository in a Google Cloud Storage bucket
repository sync-to gdrive --folder-id=FOLDER-ID [<flags>]Synchronize repository data to another repository in a Google Drive folder
repository sync-to rclone --remote-path=REMOTE-PATH [<flags>]Synchronize repository data to another repository in a rclone-based provided
repository sync-to s3 --bucket=BUCKET --access-key=ACCESS-KEY --secret-access-key=SECRET-ACCESS-KEY [<flags>]Synchronize repository data to another repository in an S3 bucket
repository sync-to sftp --path=PATH --host=HOST --username=USERNAME [<flags>]Synchronize repository data to another repository in an SFTP storage
repository sync-to webdav --url=URL [<flags>]Synchronize repository data to another repository in a WebDAV storage
repository throttle get [<flags>]Get throttling parameters for a repository
repository throttle set [<flags>]Set throttling parameters for a repository
repository change-password [<flags>]Change repository password
repository validate-provider [<flags>]Validates that a repository provider is compatible with Kopia
repository upgrade begin [<flags>]Begin upgrade.
repository upgrade rollback [<flags>]Rollback the repository upgrade.
repository upgrade validateValidate the upgraded indexes.
|