Hi ALL.
Wanted to ask on how to compare a directory from both remote server.
Example:
server0>$ diff -r men@server1:/main/dir1 men@server2:/main/dir1
Many thanks in advance.
Hi ALL.
Wanted to ask on how to compare a directory from both remote server.
Example:
server0>$ diff -r men@server1:/main/dir1 men@server2:/main/dir1
Many thanks in advance.
Hi ALL.
Wanted to ask on how to compare a directory from both remote server.
Example:
server0>$ diff -r men@server1:/main/dir1 men@server2:/main/dir1
Many thanks in advance.
Can nfs provide some help for you ?
You could share the folder with nfs, and then diff the 2 folders
assuming using ssh for remote login...
SVR1=`ssh men@server1 ls -1R /main/dir1`
SVR2=`ssh men@server2 ls -1R /main/dir1`
diff -r $SVR1 $SVR2
Unison supports synchronizing between two remote hosts. Kinda hard to use at first.
It is free and open source.
Unison File Synchronizer