Linux command
tarsnap 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Create backup
tarsnap -c -f [backup-name] [/path/to/backup]
List archives
tarsnap --list-archives
List contents of archive
tarsnap -t -f [backup-name]
Extract archive
tarsnap -x -f [backup-name]
Delete archive
tarsnap -d -f [backup-name]
Show statistics
tarsnap --print-stats
Dry run
tarsnap -c --dry-run -f [test] [/path/to/backup]
说明
tarsnap provides secure, deduplicated online backup. Data is encrypted before leaving your computer and stored in the cloud. Deduplication stores identical blocks only once. Incremental backups are efficient, transferring only new or changed data. Client-side encryption ensures only you can read your data. Keys are generated locally and never shared with the server. Archive names are arbitrary strings. Common patterns include hostnames, dates, or descriptive names. Statistics show storage usage and deduplication efficiency. Billing is based on stored and transferred bytes. The tool is command-line only, designed for scripting and automation. Cron jobs commonly run scheduled backups.
参数
- -c
- Create archive.
- -x
- Extract archive.
- -t
- List archive contents.
- -d
- Delete archive.
- -f _ARCHIVE_
- Archive name.
- --list-archives
- List all archives.
- --print-stats
- Show usage statistics.
- --dry-run
- Simulation mode.
- -v
- Verbose.
- --keyfile _FILE_
- Key file location.
- --cachedir _DIR_
- Cache directory.
- -C _DIR_
- Change to directory.
- --include _PATTERN_
- Include files matching.
- --exclude _PATTERN_
- Exclude files matching.
FAQ
What is the tarsnap command used for?
tarsnap provides secure, deduplicated online backup. Data is encrypted before leaving your computer and stored in the cloud. Deduplication stores identical blocks only once. Incremental backups are efficient, transferring only new or changed data. Client-side encryption ensures only you can read your data. Keys are generated locally and never shared with the server. Archive names are arbitrary strings. Common patterns include hostnames, dates, or descriptive names. Statistics show storage usage and deduplication efficiency. Billing is based on stored and transferred bytes. The tool is command-line only, designed for scripting and automation. Cron jobs commonly run scheduled backups.
How do I run a basic tarsnap example?
Run `tarsnap -c -f [backup-name] [/path/to/backup]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c do in tarsnap?
Create archive.