← 返回命令列表

Linux command

duplicacy 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Initialize a repository

duplicacy init [snapshot_id] [/path/to/storage]

Initialize with cloud storage

duplicacy init [snapshot_id] [s3://bucket/path]

Create a backup

duplicacy backup

List all snapshots

duplicacy list

Restore files

duplicacy restore

Restore from a specific revision

duplicacy restore -r [revision_number]

Prune old snapshots

duplicacy prune -keep [0:365] -keep [7:30] -keep [1:7]

Check repository integrity

duplicacy check

说明

Duplicacy is a cross-platform backup tool featuring lock-free deduplication. It uses variable-length chunking to split files into chunks that are deduplicated across all backups, significantly reducing storage requirements for similar data. A unique feature is lock-free design: multiple computers can back up to the same storage simultaneously without coordination. Each client operates independently, making Duplicacy suitable for backing up multiple machines to shared cloud storage. The tool supports numerous storage backends including local disk, SFTP, WebDAV, and cloud services (AWS S3, Backblaze B2, Google Cloud, Azure, Wasabi, etc.). Client-side encryption ensures data privacy even with untrusted storage. Duplicacy uses a two-repository model: the working directory (source) and the storage (destination). Multiple working directories can share the same storage, benefiting from cross-machine deduplication. The prune command implements flexible retention policies with tiered keep rules.

参数

init _snapshot_id storage_
Initialize a new repository with the specified snapshot ID and storage location.
backup _-stats_ _-threads n_ _-hash_ _-t tag_
Create a new backup snapshot.
restore _-r revision_ _-overwrite_ _-delete_
Restore files from a snapshot.
list _-all_ _-id snapshot_id_ _-files_
List available snapshots.
prune _-keep spec_ _-id snapshot_id_
Remove old snapshots based on retention policy.
check _-files_ _-stats_
Verify repository integrity.
diff _-r revision_
Show differences between snapshots.
cat _file_ _-r revision_
Print contents of a file from a snapshot.
-encrypt
Enable encryption for the repository.
-threads _n_
Number of concurrent threads.
-stats
Show detailed statistics.
-verbose
Enable verbose output.
-d
Enable debug logging.

FAQ

What is the duplicacy command used for?

Duplicacy is a cross-platform backup tool featuring lock-free deduplication. It uses variable-length chunking to split files into chunks that are deduplicated across all backups, significantly reducing storage requirements for similar data. A unique feature is lock-free design: multiple computers can back up to the same storage simultaneously without coordination. Each client operates independently, making Duplicacy suitable for backing up multiple machines to shared cloud storage. The tool supports numerous storage backends including local disk, SFTP, WebDAV, and cloud services (AWS S3, Backblaze B2, Google Cloud, Azure, Wasabi, etc.). Client-side encryption ensures data privacy even with untrusted storage. Duplicacy uses a two-repository model: the working directory (source) and the storage (destination). Multiple working directories can share the same storage, benefiting from cross-machine deduplication. The prune command implements flexible retention policies with tiered keep rules.

How do I run a basic duplicacy example?

Run `duplicacy init [snapshot_id] [/path/to/storage]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does init _snapshot_id storage_ do in duplicacy?

Initialize a new repository with the specified snapshot ID and storage location.