My default Windows rsync pull command.

I use this DOS batch file to save a copy of my Unix work onto my work-issued Windows 7 laptop.

set mytime=%TIME::=%
set mytime=%mytime:~0,6%
"c:\program files\cwrsync\bin\rsync.exe" -r -l -t^
 --rsh="c:\'program files'\cwrsync\bin\ssh.exe"^
 somehost:/home/myid .

I have a "system backups" folder. In that folder, I have folders for each hostname. In each hostname subfolder, I have this DOS batch file.

That variable mytime is used to pull the colons from the value of TIME so I can use it in a Windows file name.

No comments:

Post a Comment