SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
problems backing up to smbmounted dir
Author Message
Post problems backing up to smbmounted dir 
hello all,

please, i need some help, maybe someone can point me to the right solution:

i have no success in backing up to a windows machine using a mounted share.

first i tried using rdiff-backup V0.12.7 in --windows-mode which works but
quotes all Capital-letters which leads to a working but unuseable backup
because many filenames are in Capital letters.

with V0.12.8 the same problem exists

with V0.13.6 option --windows-mode is no more availiable, and
when i try to do a backup i just get following error message:

[root < at > server src]# rdiff-backup --force -b /backups/Dir/ /mnt/backup/test
-----------------------------------------------------------------
Detected abilities for source (read only) file system:
Access control lists Off
Extended attributes Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
-----------------------------------------------------------------
Warning: ownership cannot be changed on filesystem
at /mnt/backup/test/rdiff-backup-data
Warning: hard linking not supported by filesystem
at /mnt/backup/test/rdiff-backup-data
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 280, in
Main
take_action(rps)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line 250, in
take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line 291, in
Backup
backup_set_fs_globals(rpin, rpout)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line 411, in
backup_set_fs_globals
dest_fsa = rpout.conn.fs_abilities.get_fsabilities_readwrite(
File "/usr/lib/python2.3/site-packages/rdiff_backup/fs_abilities.py", line
393, in get_fsabilities_readwrite
return FSAbilities(desc_string).init_readwrite(
File "/usr/lib/python2.3/site-packages/rdiff_backup/fs_abilities.py", line
155, in init_readwrite
subdir.delete()
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line 851, in
delete
if Globals.fsync_directories: self.fsync()
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line 1034, in
fsync
if not fp: self.conn.rpath.RPath.fsync_local(self)
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line 1041, in
fsync_local
os.fsync(fd)
OSError: [Errno 22] Invalid argument


tia,
robert

--
_________________________________________
/ Why use Windows, since there is a door? \
| |
| -- fachat < at > galileo.rhein-neckar.de, |
\ Andre Fachat /
-----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||

Post problems backing up to smbmounted dir 
robert breithuber wrote:
hello all,

please, i need some help, maybe someone can point me to the right solution:

i have no success in backing up to a windows machine using a mounted share.

I don't think its going to work.
we need to do some serious patching to the detection code to make this work.
probably even change the date format of the files.
you can probably rdiff-backup to a tmp directory, tar up the repository,
then dump it on a windows share...


dave

Post problems backing up to smbmounted dir 
On Thu, 21 Jul 2005, robert breithuber wrote:

os.fsync(fd)
OSError: [Errno 22] Invalid argument

i wonder what it's trying to fsync... i suppose we could ignore an error
there, but you'd probably run into more problems.

you could try this completely untested patch.

-dean

Index: rdiff_backup/rpath.py
===================================================================
RCS file: /cvsroot/rdiff-backup/rdiff-backup/rdiff_backup/rpath.py,v
retrieving revision 1.79
diff -p -u -u -r1.79 rpath.py
--- rdiff_backup/rpath.py 30 Jun 2005 22:26:22 -0000 1.79
+++ rdiff_backup/rpath.py 22 Jul 2005 03:15:07 -0000
< at > < at > -1045,7 +1045,9 < at > < at > class RPath(RORPath):
"""fsync current file, run locally"""
assert self.conn is Globals.local_connection
fd = os.open(self.path, os.O_RDONLY)
- os.fsync(fd)
+ try: os.fsync(fd)
+ except OSError, e:
+ if e.errno == errno.EINVAL: pass
os.close(fd)

def fsync_with_dir(self, fp = None):

Post problems backing up to smbmounted dir 
dean gaudet wrote:
i wonder what it's trying to fsync... i suppose we could ignore an error
there, but you'd probably run into more problems.

I thought fsync didn't work on windows file systems at all. - this means
smbfs, cifs and cygwin.
I think your patch might help, but I would like to eventually see
rdiff-backup have full support for writing to windows filesystem. I am
not sure what is involved fully, but one day I will get one of my guys
to take a look.

dave

Post problems backing up to smbmounted dir 
hello,

thanks alot for your help!

because the backup is not "the thing to play with" we decided to setup another
linux machine to backup on it.
there are just too many advantages: efficency, ext3, no quoting etc.etc.

i never had problems using rdiff-backup between linux boxes so far as they
used the rdiff-backup version Smile it usually works just great !

ng,
robert

--
________________________________________
/ printk("autofs: trying to recover, but \
| prepare for Armageddon\n"); |
| |
\ -- linux-2.1.92/fs/autofs/root.c: /
----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB