rdiff to SMB share?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

rdiff to SMB share?

Matt Ettus


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



_______________________________________________
rdiff-backup-users mailing list at [hidden email]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: rdiff to SMB share?

Dave Kempe
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


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: rdiff to SMB share?

Matt Ettus
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@localhost ~]$




Any ideas?

Thanks for your help,
Matt


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: rdiff to SMB share?

Ben Escoto
>>>>> Matt Ettus <[hidden email]>
>>>>> 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

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

attachment0 (196 bytes) Download Attachment