I am using deltacopy (uses rsync) to backup up a drive in windows vista to a freenas server. Before moving to vista, had the system working fine (on a windows xp machine). The command used for the backup is: rsync.exe -v -rlt -z --delete "/cygdrive/F/TXT/" "nas::160d/_Acer_F/TXT/" As a result of this command, rsync should create a dir (not on nas) and then copy some files into it. The directory is created with the wrong permissions: subsequently, files can not be copied into it. If I create a directory with full permissions, the files are copied but: 1. they are read only, and can not be read by the windows vista user logged on (or the administrator). If I use a commander type program to copy files to the nas machine, there are no problems. I would appreciate any suggestions on how to get this permissions problems sorted out. Thanks very much, Eli -------------- next part -------------- HTML attachment scrubbed and removed
We have hit the same problem and what we found out was that Vista changed something and either rsync or cygwin can't determine the permissions and so nothing (or null) is sent across and this seems to cause the directory to be created this way. We have only seen this on Vista and have since backed off our deployment on Vista On Jan 30, 2008 12:40 PM, U. Haile <uhaile@gmail.com> wrote:> I am using deltacopy (uses rsync) to backup up a drive in windows vista to a > freenas server. Before moving to vista, had the system working fine (on a > windows xp machine). > > The command used for the backup is: > rsync.exe -v -rlt -z --delete "/cygdrive/F/TXT/" "nas::160d/_Acer_F/TXT/" > > As a result of this command, rsync should create a dir (not on nas) and then > copy some files into it. > The directory is created with the wrong permissions: subsequently, files can > not be copied into it. > If I create a directory with full permissions, the files are copied but: 1. > they are read only, and can not be read by the windows vista user logged on > (or the administrator). > > If I use a commander type program to copy files to the nas machine, there > are no problems. > > I would appreciate any suggestions on how to get this permissions problems > sorted out. > > Thanks very much, > > Eli > > > -- > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >-- What profits a man if he gains the whole world yet loses his soul?
Please keep this on the list. On Wed, 2008-02-06 at 14:39 +0000, U. Haile wrote:> Thanks very much for your suggestion about the problme with the > permissions in rsync and vista. > > I tried your suggestion, but it did not work. Here is what I got, in > the cmd window from windows vista: > > c:\Temp>test_rsync.bat > testing rsync backup to nas drive > COMMAND USED: "C:\Program Files\Synametrics Technologies\DeltaCopy > \rsync.exe" --chmod=a=rw,Da+x -v -rlt -z --delete "/cygdrive/F/temp/" > "nas::160d/_Acer_F/temp/" > > rsync: --chmod=a=rw,Da+x: unknown option > rsync error: syntax or usage error (code 1) > at /home/lapo/packaging/tmp/rsync-2.6.6/main.c(1108) > Press any key to continue . . .You need rsync 2.6.7 or newer to use the --chmod option. If DeltaCopy is not being updated with newer versions of rsync, you could replace the rsync.exe that comes with DeltaCopy with one you compile yourself from the source ( http://rsync.samba.org/ftp/rsync/ ) or take from a recent version of cwRsync ( http://itefix.no/cwrsync/ ). Matt
Eli, Please keep this on the list, i.e., CC rsync@lists.samba.org in your replies. On Thu, 2008-02-14 at 15:41 +0000, U. Haile wrote:> One problem: > - rsync does not backup open files. If outlook.pst is open, then the > backup fails. > Is there any way of backing up open files, or of issuing a command to > run a program that will close these files?Use Windows's feature to create a "shadow copy" (i.e., a read-only snapshot) of the source drive and then have rsync copy the shadow copy's files (which aren't open). The following cwRsync FAQ entry explains how to do it: http://www.itefix.no/phpws/index.php?module=faq&FAQ_op=view&FAQ_id=81 For more information, search the Web for "rsync shadow copy". Matt