Thursday, August 25, 2011

Backup & Bulk Copy(Linux)

The best  Linux utility to synchronize data is rsync.
 rsync allows you to copy recursively inside the machine and even on remote machines.
As the name suggests, the synchronization utility, which means to copy only the changes rather than the entire file, and also maintain a property and file permissions

The operation is quite simple

$ Rsync [options] source target

 example

$ Rsync-arh / home / clubhack / / mnt / backup

Now if you want to use the same rsync to transfer the file on the remote machine would be the best solution
$ Rsync-aH / my_dir / remoteip: / path / to / dir /

In order to preserve permissions, ownership, group and time stamp, you can choose to use switches like-p,-o,-g,-t etc.

You can also choose which files to include or exclude the synchronization settings.





No comments:

Post a Comment