Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Script to do incremental backups with rsync [closed]

Tags:

linux

bash

Could someone help me with a bash script in linux to make backups. would have to do a full backup every week and every day an incremental.

like image 696
CrazyHorse Avatar asked Dec 15 '11 16:12

CrazyHorse


People also ask

Can rsync do incremental backups?

Creating incremental backups with rsync An incremental backup stores only the data that has been changed since the previous backup was made. In an incremental backup strategy, only the first backup of the series is a “full backup”; the subsequent ones, will just store the incremental differences.

Does duplicity use rsync?

Duplicity is a network backup program. It can save snapshots of directories and files to a remote GnuPG encrypted tar file, which acts as a backup repository. Connecting with the remote backup repository can take place through any of the following protocols: rsync, ftp, HSI, WebDAV, Tahoe-LAFS, or Amazon S3.


1 Answers

I've been using rsnapshot for over four years to keep a rotation of 7 daily, 4 weekly, and 12 monthly snapshots of my Slackware Box. Because it intelligently uses hardlinks, all 23 of these snapshots only take about 30% more space than the entire size of my filesystem.

like image 88
SiegeX Avatar answered Sep 27 '22 21:09

SiegeX