In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge about "how to use Attic to manage backup data in Linux". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
Attic is a Python deduplication backup program whose main goal is to provide an efficient and secure way to backup data. The use of deduplication technology makes Attic suitable for routine backups because it stores only modified data.
Attic characteristics
space-efficient storage
Variable block size deduplication is used to reduce the number of redundant data storage bytes detected. Each file is divided into variable-length chunks, and only never-before-seen chunks are compressed and added to the repository.
Optional data encryption
All data can be protected using 256-bit AES encryption and data integrity and authenticity verified using HMAC-SHA256.
offsite backup
Attic can store data via SSH on remote hosts where Attic is installed.
Backups can be mounted as file systems
Backup archives can be mounted as user-space file systems for easy verification and recovery of backups.
Install attic to ubuntu 14.10
Open the terminal and run the following command
The code is as follows:
sudo apt-get install attic
Use Attic
Hands-on examples of teaching
Before making a backup, initialize the repository:
The code is as follows:
$ attic init /somewhere/my-repository.attic
Back up the ~/src and ~/Documents directories to an archive named Monday:
The code is as follows:
$ attic create /somwhere/my-repository.attic::Monday ~/src ~/Documents
Create a new archive called Tuesday the next day:
The code is as follows:
$ attic create --stats /somwhere/my-repository.attic::Tuesday ~/src ~/Documents
This backup will be faster and smaller because only new data that has never been seen before will be stored. -- The stats option causes Attic to output statistics about newly created archives, such as the number of unique data (not shared with other archives):
The code is as follows:
Filed to: Tuesday
Archived fingerprint: 387a5e3f9b0e792e91ce87134b0f4bfe17677d9248cb5337f3fbf3a8e157942a
Start Time: Tue Mar 25 12:00:10 2014
End time: Tue Mar 25 12:00:10 2014
Duration: 0.08 seconds
Number of documents: 358
Initial Size Compressed Size Deduplicated Size
This archive: 57.16 MB 46.78 MB 151.67 kB
All Archives: 114.02 MB 93.46 MB 44.81 MB
List all archives in the warehouse:
The code is as follows:
$ attic list /somewhere/my-repository.attic
Monday Mon Mar 24 11:59:35 2014
Tuesday Tue Mar 25 12:00:10 2014
List Monday's archive:
The code is as follows:
$ attic list /somewhere/my-repository.attic::Monday
drwxr-xr-x user group 0 Jan 06 15:22 home/user/Documents
-rw-r--r-- user group 7961 Nov 17 2012 home/user/Documents/Important.doc
Monday Archive Recovery:
The code is as follows:
$ attic extract /somwhere/my-repository.attic::Monday
Recover disk space by manually deleting Monday archives:
The code is as follows:
$ attic delete /somwhere/my-backup.attic::Monday
For details, please refer to Attic documentation.
"How to use Attic to manage backup data in Linux" is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 290
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.