Wednesday, August 29, 2007

Linux : setting up rdist

rdist command is very helpful in synchronizing filesystems on two
server. rdist stands for remote distribution. Many useful options are
available with the command.

See `man rdist` for more information about the command.

This is how I set up rdists :-)

My crontab entry
10 * * * * rdist -f $HOME/bin/rdist_file > /dev/null

###rdist_file contains

## these are comments
/path/of/source/file -> target_server1 install
-onochkowner,nochkgroup,nochkmode /path/to/the/target/file;

### file rdist ed to target_server2
/path/of/source/file -> target_server2 install
-onochkowner,nochkgroup,nochkmode /path/to/the/target/file;

No comments: