rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] Problem with rdiff-backup under cygwin and Win


From: David Kempe
Subject: Re: [rdiff-backup-users] Problem with rdiff-backup under cygwin and Win XP
Date: Wed, 23 Jun 2004 07:19:47 +1000
User-agent: Mozilla Thunderbird 0.7 (Windows/20040616)

address@hidden wrote:
Hi,

I want to backup some windows-directories to a samba-share on a remote machine. The samba share is mounted as X: under Windows XP.

are you using the packages I stuck together? Or stuff you compiled yourself?


If I issue the following backup command:

        $ rdiff-backup --windows-mode dir_to_be_backuped /cygdrive/X/

I get an error message:

what rdiff-backup version is that?


Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 23, in ?
    rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line 254, in Main
    take_action(rps)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line 226, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line 266, in Backup
    rpout.conn.Main.backup_touch_curmirror_local(rpin, rpout)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line 366, in backup_touch_curmirror_local
    mirrorrp.fsync_with_dir()
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line 919, in fsync_with_dir
    self.fsync(fp)
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line 907, in fsync
    if not fp: self.conn.rpath.RPath.fsync_local(self)
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line 914, in fsync_local
    os.fsync(fd)
OSError: [Errno 13] Permission denied
Exception exceptions.TypeError: "'NoneType' object is not callable" in <bound method GzipFile.__del__ of <gzip open file '/cygdrive/X/rdiff-backup-data/error_log.2004-06-22;08415;05855;05837;04301;05800.data.gz', mode 'wb' at 0xa148860 0xa21ba8c>> ignored


The python version is 2.3.4, so it is probably not the broken fsync command under windows. However, since I get this error message even when I execute rdiff-backup under the windows administrator account, I am quite sure, that there is no permission problem either. The same error happens, if we use a local (windows) cygwin directory as a rdiff-target, so it is probably also not a samba issue.

it can still be a permissions issue.
I have found that using a samba server as the domain controller (samba 2 that is), it doesn't map the domain admins and other groups correctly, so cygwin doesn't have the correct permissions on files. you can test it by starting up cygwin bash and doing an ls -al on the target dir. If your permissions have something about mkpasswd or nogroup in them, then its possible that cygwin hasn't mapped your windows users to cygwin users correctly. I think with samba 3 that gets fixed a fair bit - if you set it up right. If you search for mkpasswd in the Cygwin FAQ it has some other explanations - in particular, NT ACLs and EAs and something about disabling them with an environment variable.

Using the rdiff-backup server does also not work, as we get an even more obscure dll-relocation error.

what error was that?

Any suggestions?


Aside from my suggestions, I can't actually get it to work as the time format is wrong and windows can't ever find the mirror metadata.
I don't know if thats going to get fixed - Ben would know.

dave





reply via email to

[Prev in Thread] Current Thread [Next in Thread]