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: dean gaudet
Subject: Re: [rdiff-backup-users] UPDATE: problem with chmod 0 directories
Date: Sat, 4 Nov 2006 17:52:27 -0800 (PST)

this seems reasonable -- but your mailer seems to have damaged the 
patch... could you refresh against cvs head and resend?

thanks
-dean

On Tue, 16 May 2006, The Anarcat wrote:

> 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.
> 
> 




reply via email to

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