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

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

Re: [rdiff-backup-users] UPDATE: problem with chmod 0 directories


From: The Anarcat
Subject: Re: [rdiff-backup-users] UPDATE: problem with chmod 0 directories
Date: Tue, 16 May 2006 13:48:33 -0400
User-agent: Thunderbird 1.5.0.2 (X11/20060501)

address@hidden wrote:
> 
> Maybe we should check fail/success when looking in that directory and if
> it fails, just give an error.  If something is chmod 000, obviously
> somebody wants to keep everything out.

I've done this:

--- /tmp/backup.py      Tue May 16 03:44:30 2006
+++ backup.py   Tue May 16 12:52:49 2006
@@ -472,10 +472,14 @@
                while self.cache_indicies: self.shorten_cache()
                while self.dir_perms_list:
                        dir_rp, perms = self.dir_perms_list.pop()
-                       dir_rp.chmod(perms)
+                       try:
+                               dir_rp.chmod(perms)
+                       except OSError:
+                               statmsg = "could not change permissions
of " + dir_rp.path + " to " + str(perms) + "\n"
+                               log.Log.log_to_file(statmsg)
+
Globals.client_conn.sys.stdout.write(statmsg)
                self.metawriter.close()
                metadata.ManagerObj.ConvertMetaToDiff()
-
                if Globals.print_statistics: statistics.print_active_stats()
                if Globals.file_statistics: statistics.FileStats.close()
                statistics.write_active_statfileobj()


See http://wiki.koumbit.net/RdiffBackup

Still waiting for the results of another sync run.

A.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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