ZBackup: A Multi-Function deduplication Backup Tool
Zbackup is a global deduplication Data Backup Tool Based on rsync. After passing in a large tar file, it will store the duplicate part of the file only once, compress the results, and determine whether to encrypt the file based on the parameters. After passing in another tar file, it will reuse duplicate data from the previous backup file. Only new changes will be saved, and as long as the file difference is not great, there is very little storage space required. All the previously backed up files can be completely read at any time.
ZBackup features
- Use parallel LZMA or LZO compression algorithms to compress backup data
- Use the built-in AES encryption algorithm to encrypt backup data
- Old backup data can be deleted.
- Use a 64-bit rolling hash to keep the soft collision count as 0
- The backup database consists of unchangeable files. Only files that do not exist in the Database can be modified.
- It is written in C ++ and only has a proper number of dependent libraries.
- Secure use in the production environment
- Data can be exchanged in different backup databases without re-compression
Install zBackup in Ubuntu
Open the terminal and run the following command:
sudo apt-get install zbackup
Use zBackup
zbackup init
Command will initialize a backup database to store the data to be backed up.
zbackup init [--non-encrypted][--password-file ~/.my_backup_password ] /my/backup/repo
zbackup backup
Command to back uptar c
Command to create the tar filezbackup init
The initialized backup database. (LCTT annotation: similar to this in actual use, tar c files | zbackup ...)
zbackup [--password-file ~/.my_backup_password ] [--threads number_of_threads ] backup /my/backup/repo/backups/backup-`date ‘+%Y-%m-%d'`
zbackup restore
Command to restore a backup file from the backup database to the tar file.
zbackup [--password-file ~/.my_backup_password ] [--cache-size cache_size_in_mb ] restore /my/backup/repo/backups/backup-`date ‘+%Y-%m-%d'`>/my/precious/backup-restored.tar
Available options
- -Non-encrypted -- the backup database is not encrypted.
- -- Password-file ~ /. MyBackupPassword -- use ~ /. MyBackupPassword to encrypt the backup database and files to be backed up, and decrypt the files backed up.
- -- Threads numberOfThreads -- limit the number of threads for parallel LZMA CompressionOfThreads. We recommend that you use it on a 32-bit system platform.
- -- Cache-size cacheSizeInMb -- use cacheSizeInMb to accelerate the file recovery process.
ZBackup files in the preceding command
- ~ /. MyBackupPassword is used to encrypt the backup database and files to be backed up, and decrypt the backup files. For more details, see zbackup.
- /My/backup/repo: directory where the backup database is stored.
- /My/precious/restored-tar is used to restore the tar file of the backup file.
- /My/backup/repo/backups/backup-
date ‘+%Y-%m-%d'
The name of the previously backed up file.
Via: http://www.ubuntugeek.com/zbackup-a-versatile-deduplicating-backup-tool.html
Author: ruchi Translator: goreliu Proofreader: wxy
This article was originally translated by LCTT and launched with the Linux honor in China
Source: https://linux.cn/article-5523-1.html
This article permanently updates the link address: