SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
rdiff to SMB share?
Author Message
Post rdiff to SMB share? 
I have tried to use rdiff to back up my laptop to an SMB share (on a
Buffalo Linkstation NAS) using this command:

rdiff-backup /home/matt /mnt/linkstation/mnt1

It fails with this error:

File "/usr/lib/python2.4/site-packages/rdiff_backup/fs_abilities.py",
line 245, in supports_unusual_chars
assert not rp.lstat()

I have no problems running rdiff to a plain local directory like this:

rdiff-backup /home/matt/test1 /home/matt/test2

I am using rdiff version 1.0.1 from the FC4 rpm. Does rdiff not work in
this manner?


Thanks,
Matt

Post rdiff to SMB share? 
Matt Ettus wrote:
I am using rdiff version 1.0.1 from the FC4 rpm. Does rdiff not work in
this manner?

I don't think it works in this manner yet - we are working on it.
Can you try the delevelopment version? It does some extra things that
might help SMBFS, CIFS and windows in general

dave

Post rdiff to SMB share? 
David Kempe wrote:
Matt Ettus wrote:

I am using rdiff version 1.0.1 from the FC4 rpm. Does rdiff not work in
this manner?


I don't think it works in this manner yet - we are working on it.
Can you try the delevelopment version? It does some extra things that
might help SMBFS, CIFS and windows in general

dave


Ok. I installed the latest release. Now I get this:


rdiff-backup --exclude /home/matt/.ccache --exclude
/home/matt/.thunderbird --exclude /home/matt/tools /home/matt/
/mnt/linkstation/mnt1/test/
Password:
Warning: hard linking not supported by filesystem at
/mnt/linkstation/mnt1/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.4/site-packages/rdiff_backup/Main.py", line
303, in Main
take_action(rps)
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
272, in take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
314, in Backup
rpout.conn.fs_abilities.backup_set_globals(rpin)
File "/usr/lib/python2.4/site-packages/rdiff_backup/fs_abilities.py",
line 602, in backup_set_globals
dest_fsa = FSAbilities('destination').init_readwrite(Globals.rbdir)
File "/usr/lib/python2.4/site-packages/rdiff_backup/fs_abilities.py",
line 149, in init_readwrite
subdir.delete()
File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line
907, in delete
self.conn.shutil.rmtree(self.path)
File "/usr/lib/python2.4/shutil.py", line 168, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "/usr/lib/python2.4/shutil.py", line 166, in rmtree
os.rmdir(path)
OSError: [Errno 16] Device or resource busy:
'/mnt/linkstation/mnt1/test/rdiff-backup-data/rdiff-backup.tmp.5'
[matt < at > localhost ~]$




Any ideas?

Thanks for your help,
Matt

Post rdiff to SMB share? 
Matt Ettus <matt < at > ettus.com>
wrote the following on Mon, 14 Nov 2005 18:15:33 -0800

Hmm, both of these problems (with v1.0.1 and the devel version) where
raised in the sanity-checking part, where rdiff-backup is examining
the basic properties of your file system.

Ok. I installed the latest release. Now I get this:


rdiff-backup --exclude /home/matt/.ccache --exclude
/home/matt/.thunderbird --exclude /home/matt/tools /home/matt/
/mnt/linkstation/mnt1/test/
...
os.rmdir(path)
OSError: [Errno 16] Device or resource busy:
'/mnt/linkstation/mnt1/test/rdiff-backup-data/rdiff-backup.tmp.5'

Hmm, is anything in that directory? Anyone know what could cause this
error on an SMB filesystem?

If the problem is just that random basic directory delete operations
don't work on your filesystem, then I don't think there is much hope
for rdiff-backup.


--
Ben Escoto

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