LinuxCommandLibrary

kopia

Fast, secure open-source backup tool.

TLDR

Create a repository in the local filesystem

$ kopia repository create filesystem --path [path/to/local_repository]
copy


Create a repository on Amazon S3
$ kopia repository create s3 --bucket [bucket_name] --access-key [AWS_access_key_id] --secret-access-key [AWS_secret_access_key]
copy


Connect to a repository
$ kopia repository connect [repository_type] --path [path/to/repository]
copy


Create a snapshot of a directory
$ kopia snapshot create [path/to/directory]
copy


List snapshots
$ kopia snapshot list
copy


Restore a snapshot to a specific directory
$ kopia snapshot restore [snapshot_id] [path/to/target_directory]
copy


Create a new policy
$ kopia policy set --global --keep-latest [number_of_snapshots_to_keep] --compression [compression_algorithm]
copy


Ignore a specific file or folder from backups
$ kopia policy set --global --add-ignore [path/to/file_or_folder]
copy

Copied to clipboard