From 1a1ed6d01d96d39a5d4741f2e8ddd04247e83588 Mon Sep 17 00:00:00 2001 From: Eric Cheng Date: Sun, 14 Jan 2024 23:43:11 -0500 Subject: [PATCH] kopia: add page (#12068) --- pages/common/kopia.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pages/common/kopia.md diff --git a/pages/common/kopia.md b/pages/common/kopia.md new file mode 100644 index 000000000..6fcb6e3d0 --- /dev/null +++ b/pages/common/kopia.md @@ -0,0 +1,37 @@ +# kopia + +> Fast, secure open-source backup tool. +> Supports encryption, compression, deduplication, and incremental snapshots. +> More information: . + +- Create a repository in the local filesystem: + +`kopia repository create filesystem --path {{path/to/local_repository}}` + +- 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}}` + +- Connect to a repository: + +`kopia repository connect {{repository_type}} --path {{path/to/repository}}` + +- Create a snapshot of a directory: + +`kopia snapshot create {{path/to/directory}}` + +- List snapshots: + +`kopia snapshot list` + +- Restore a snapshot to a specific directory: + +`kopia snapshot restore {{snapshot_id}} {{path/to/target_directory}}` + +- Create a new policy: + +`kopia policy set --global --keep-latest {{number_of_snapshots_to_keep}} --compression {{compression_algorithm}}` + +- Ignore a specific file or folder from backups: + +`kopia policy set --global --add-ignore {{path/to/file_or_folder}}`