Nov 20, 2012

Direct rsync from DeltaCopy on Windows 7 to Ubuntu

I'd been meaning to set up rsync from my music server, a Windows 7 computer, to my ubuntu backup server for quite some time. I'm more familiar (though not very) with rsync in ubuntu than the DeltaCopy Server for Windows.
So, today I finally got rsync.exe going under DeltaCopy.
Here's the process in a nutshell.
First Install DeltaCopy
        * Set up the service
        * Set up the client with no authentication

Go to a terminal/Command Line in Windows
Run rsync.exe directly from DeltaCopy installation
        cd d:\DeltaCopy   (where rsync.exe is installed)
        use the following form of the command
        rsync.exe -n -arvz /cygdrive/d/music/iTunes/Purchased/ username@192.168.0.nnn:/music/iTunes/Purchased     [Note: -n = dry run, remove to run it for real!]
where /cygdrive/d/music/iTunes/Purchased/                       =====>  source
      username@192.168.0.nnn:/music/iTunes/Purchased     =====>  target
The trailing slash after /cygdrive/d/music/iTunes/Purchased/ <==  is VERY important when you already have a directory structure set up on the target. It means DON'T create a new folder/directory.
Conversely, it you leave the trailing slash OFF, a new folder/directory WILL be created.





No comments:

Post a Comment