Take a incremental backup by RSYNC command
Posted on 2013-11-24
Need a rsync script which take backup modify files only.I've created some folders in /.
ubuntu12:~$ tree /xerox
| `-- user1
| `-- 5.txt
| |-- user2
| | `-- 3.txt
| `-- user3
| |-- 1.txt
| `-- 2.txt
# rsync --force --ignore-errors --delete --backup --backup-dir="date +%d-%m-%y' -av /source /destination
Now when i'm run script first time it's take a full backup.
next time i do some changes in user1 file (5.txt).
Now i've ran again script.that time it first take backup of orignal one in date backup folder & overwrite changes in user1 file.
Now i want to do, rsync take only modified file backup in backup folder.Don't make a backup of original file.
(if you know another utilities which run on terminal please share)
If anybody know about it....please reply