duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] Archive files permissions, extra logging


From: edgar . soldin
Subject: Re: [Duplicity-talk] Archive files permissions, extra logging
Date: Tue, 10 Nov 2020 11:15:18 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1

On 11/10/2020 9:14, Adam Pribyl via Duplicity-talk wrote:
> Is there a way to change the permissions for the archive files created by 
> duplicity? It looks to me like this is hardcoded into the duplicity as there 
> is
> 
> def do_backup(action)
>   ...
>   os.umask(0o77)
>   ...
> 
> so it always creates the files with 600 (only user read/write),

sounds reasonable as we do not want temporary/cache files created which 
potentially contain private data that are readable to anybody else. why would 
anybody else then the duplicity user who created them need access to these 
files?

> 
> Extra logging in the
> 
> def list_current(col_stats):
>        ...
>             user_info = u"%s %s %s" % (dup_time.timetopretty(path.getmtime()),
>                                     path.type,
>                                     util.ufn(path.get_relative_path()))
>             log_info = "%s %s %s" % (dup_time.timetostring(path.getmtime()),
>                                     util.escape(path.get_relative_path()),
>                                      path.type)
>             log.Log(user_info, log.INFO, log.InfoCode.file_list,
>                     log_info, True)
> 
> 
> but I did not found how to achieve the log_info to be printed. I can not make 
> sens out of log.Log function "extra" argument...
> 

did you try raising verbosity to 'info' as described on 
http://duplicity.nongnu.org/vers8/duplicity.1.html ?

"
--verbosity level, -vlevel
Specify output verbosity level (log level). Named levels and corresponding 
values are 0 Error, 2 Warning, 4 Notice (default), 8 Info, 9 Debug (noisiest).
level may also be
a character: e, w, n, i, d
a word: error, warning, notice, info, debug
The options -v4, -vn and -vnotice are functionally equivalent, as are the 
mixed/upper-case versions -vN, -vNotice and -vNOTICE.
"

..ede/duply.net

reply via email to

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