Quote:
Originally Posted by gerben12
Yes you can:
You wil need a list of your pc's, or hostnames of your pc's like so:
windowshosts="pc1 pc2 pc3 etc etc"
Then try:
for host in $windowshosts
do
rsync $host:/this_and_that_directory
done
Where of course the rsync command would be you own rsync command, or however you make the connection.
This will rsync the files on your windowshost to linux, in the order specified in the windowshost variable, for every host defined there.
Gerben12
|
Dear Mr. Gerben,
Thank you for your reply.
I could understand your reply but i do not know how to implement in dos batch file. The following is the dos batch file used to backup:
@cls
@echo off
rem Rsync job control file
c:\cygwin\bin\rsync -vrtz --password-file=c:\cygwin\secret --delete /cygdrive/c/pfimp tsaravan@192.168.0.1::modulename
In the above scenario how will i implement your solution.
regards,
T. Saravana.