November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

INCREMENTAL BACKUP USING rsync COMMAND

SIMPLE INCREMENTAL BACKUP USING rsync COMMAND

Backups can be classified to two types.They are

1)Full backup
The entire data will be backup will be taken every time

2)Incremental backup

Incremental backup take the full backup at the first time ,from the second time it will compare the files in first backup and the files in the directory which backup to be taken and only copy the modified files .

rsync

The rsync utility allows you to copyfrom local sysstem to a remote system or copy between two local directories .If the files exist in the destination directory ,rsync only copy the differences in the file,this property of rsync make it ideal for incremental backup

here is the syntax for rsync

rsync [options] [source folder] [Destination]

Example

rsync -azv /etc/sysconfig /backup/

In the above example the entire sysconfig directory will be copied to /backup folder when firsttime we run this command ,from second time onwards rsync checks the files in folder /backup with /etc/sysconfig and only copy the differnce in sysconfig file to /backup folder…

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>