Probleme with rdiff on smbfs

View: New views
3 Messages — Rating Filter:   Alert me  

Probleme with rdiff on smbfs

by Toscano2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks for adding that to the FAQ Andrew.  I hope my experience helps others :)

+----------------------------------------------------------------------
|This was sent by x@... via Backup Central.
|Forward SPAM to abuse@....
+----------------------------------------------------------------------




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

Probleme with rdiff on smbfs

by Toscano2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Just tonight I realized something ... I still have one 'small' issue.

Currently, when doing backups, it's escaping all capitals, which is annoying :)

Theoretically I should be able to use the --override-chars-to-quote to stop that.

However:

If I try to do that against an already existing backup., it gives an error, that's ok, I expected that.

So, I go and make a new backup with a command such as:
/usr/bin/rdiff-backup -v5 --override-chars-to-quote ';' /home/svn /mounts/drobo/Backups/quiver.svn

It works, and things are uppercase properly/etc.

But then if I run it AGAIN, I get the following error:


sh-3.1# /usr/bin/rdiff-backup -v5 --override-chars-to-quote ';' /home/svn /mounts/drobo/Backups/quiver.svn
Using rdiff-backup version 1.2.1
POSIX ACLs not supported by filesystem at /home/svn
Unable to import win32security module. Windows ACLs
not supported by filesystem at /home/svn
escape_dos_devices not required by filesystem at /home/svn
-----------------------------------------------------------------
Detected abilities for source (read only) file system:
  Access control lists                         Off
  Extended attributes                          On
  Windows access control lists                 Off
  Case sensitivity                             On
  Escape DOS devices                           Off
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Warning: hard linking not supported by filesystem at /mounts/drobo/Backups/quiver.svn/rdiff-backup-data
Directories on file system at /mounts/drobo/Backups/quiver.svn/rdiff-backup-data/rdiff-backup.tmp.0 are not fsyncable.
Assuming it's unnecessary.
Extended attributes not supported by filesystem at /mounts/drobo/Backups/quiver.svn/rdiff-backup-data/rdiff-backup.tmp.0
POSIX ACLs not supported by filesystem at /mounts/drobo/Backups/quiver.svn/rdiff-backup-data/rdiff-backup.tmp.0
Unable to import win32security module. Windows ACLs
not supported by filesystem at /mounts/drobo/Backups/quiver.svn/rdiff-backup-data/rdiff-backup.tmp.0
escape_dos_devices not required by filesystem at /mounts/drobo/Backups/quiver.svn/rdiff-backup-data/rdiff-backup.tmp.0
-----------------------------------------------------------------
Detected abilities for destination (read/write) file system:
  Ownership changing                           On
  Hard linking                                 N/A
  fsync() directories                          Off
  Directory inc permissions                    Off
  High-bit permissions                         On
  Symlink permissions                          Off
  Extended filenames                           On
  Windows reserved filenames                   On
  Access control lists                         Off
  Extended attributes                          Off
  Windows access control lists                 Off
  Case sensitivity                             Off
  Escape DOS devices                           Off
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Exception ''NoneType' object is not iterable' raised of class '<type 'exceptions.TypeError'>':
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 302, in error_check_Main
    try: Main(arglist)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 322, in Main
    take_action(rps)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 278, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 332, in Backup
    rpout.conn.fs_abilities.backup_set_globals(rpin, force)
  File "/var/lib/python-support/python2.5/rdiff_backup/fs_abilities.py", line 799, in backup_set_globals
    update_quoting = bsg.set_chars_to_quote(Globals.rbdir, force)
  File "/var/lib/python-support/python2.5/rdiff_backup/fs_abilities.py", line 624, in set_chars_to_quote
    self.get_ctq_from_fsas(), force)

Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 23, in <module>
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 302, in error_check_Main
    try: Main(arglist)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 322, in Main
    take_action(rps)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 278, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 332, in Backup
    rpout.conn.fs_abilities.backup_set_globals(rpin, force)
  File "/var/lib/python-support/python2.5/rdiff_backup/fs_abilities.py", line 799, in backup_set_globals
    update_quoting = bsg.set_chars_to_quote(Globals.rbdir, force)
  File "/var/lib/python-support/python2.5/rdiff_backup/fs_abilities.py", line 624, in set_chars_to_quote
    self.get_ctq_from_fsas(), force)
TypeError: 'NoneType' object is not iterable


Otherwise, it's working fine if I don't care about the escaping ... but it would be nice to avoid the escaping altogether.[/code]

+----------------------------------------------------------------------
|This was sent by x@... via Backup Central.
|Forward SPAM to abuse@....
+----------------------------------------------------------------------




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

Re: Probleme with rdiff on smbfs

by Andrew Ferguson-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Oct 7, 2008, at 10:12 PM, EliW wrote:
> Just tonight I realized something ... I still have one 'small' issue.
>
> Currently, when doing backups, it's escaping all capitals, which is  
> annoying :)

It's also safer. Your SMB share does not differentiate uppercase from  
lowercase. If you have two files, README and Readme, then one will  
overwrite the other and you *WILL* lose data. That is why rdiff-backup  
escapes uppercase characters on systems which can't distinguish them.

Rdiff-backup tests for this automatically on startup and determines  
the appropriate course of action.

If you do the restore with rdiff-backup, it will automatically handle  
the necessary un-escaping.


> So, I go and make a new backup with a command such as:
> /usr/bin/rdiff-backup -v5 --override-chars-to-quote ';' /home/svn /
> mounts/drobo/Backups/quiver.svn


Use --override-chars-to-quote ''

(don't put anything between the '')



Andrew



_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users@...
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
LightInTheBox - Buy quality products at wholesale price!