Script to create incremental backups using rsync

Can someone help me with a bash script on linux to create backups. You will need to make a full backup every week and every day step by step.

+6
source share
4 answers

Feel free to use or borrow ideas from Backup.rsync here .

I actually used rsync backups through Backup.rsync, but since then I switched to my backshift program because it deduplicates better (no more than O (length ^ 2) to store large, slowly growing files) and compresses chunks using xz . If you look at this, you will probably see that it inspired rsync -link-dest.

+2
source

I have been using rsnapshot for over four years to maintain a rotation of 7 daily, 4 weekly and 12 monthly snapshots of my Slackware Box. Since it makes good use of hard links, all 23 of these snapshots take up about 30% more space than the entire size of my file system.

+3
source

I would recommend rdiff-backup , available on popular distributions, and very capable .

It also has a windows build!

+2
source

You can use the -link-dest rsync switch to create an increment. Just do one full rsync and increment with -link-dest = <path_to_full>.

0
source

Source: https://habr.com/ru/post/903854/


All Articles