Re: [BackupPC-users] BUG? Using --omit-dir-times in rsync backup sets all dir dates to beginning of Epoch

2020-05-24 Thread Michael Stowe
On 2020-05-23 23:47, backu...@kosowsky.org wrote: Regarding your comment: However, I don't think it makes sense to "fix" it, since a backup shouldn't add metadata that changes each time you backup some data that hasn't changed. Actually, the whole point of --ignore-dir-times is that the

Re: [BackupPC-users] BUG? Using --omit-dir-times in rsync backup sets all dir dates to beginning of Epoch

2020-05-24 Thread backuppc
Regarding your comment: > However, I don't think it makes sense to > "fix" it, since a backup shouldn't add metadata that changes each time you > backup some data that hasn't changed. Actually, the whole point of --ignore-dir-times is that the dir mod time is not changed each time you rsync.

Re: [BackupPC-users] BUG? Using --omit-dir-times in rsync backup sets all dir dates to beginning of Epoch

2020-05-23 Thread Craig Barratt via BackupPC-users
I wasn't previously familiar with the --omit-dir-times option. As you discovered, the low-level parts of rsync_bpc don't 100% faithfully mimic the native linux system calls. In particular, the mkdir() in rsync_bpc doesn't set the mtime, since rsync updates it later (assuming --omit-dir-times is

Re: [BackupPC-users] BUG? Using --omit-dir-times in rsync backup sets all dir dates to beginning of Epoch

2020-05-22 Thread Michael Stowe
On 2020-05-22 16:52, backu...@kosowsky.org wrote: Michael Stowe wrote at about 23:46:54 + on Friday, May 22, 2020: > On 2020-05-22 16:19, backu...@kosowsky.org wrote: > > Michael Stowe wrote at about 22:24:13 + on Friday, May 22, 2020: > > > On 2020-05-22 09:15,

Re: [BackupPC-users] BUG? Using --omit-dir-times in rsync backup sets all dir dates to beginning of Epoch

2020-05-22 Thread backuppc
Michael Stowe wrote at about 23:46:54 + on Friday, May 22, 2020: > On 2020-05-22 16:19, backu...@kosowsky.org wrote: > > Michael Stowe wrote at about 22:24:13 + on Friday, May 22, 2020: > > > On 2020-05-22 09:15, backu...@kosowsky.org wrote: > > > What it does is omit directories

Re: [BackupPC-users] BUG? Using --omit-dir-times in rsync backup sets all dir dates to beginning of Epoch

2020-05-22 Thread Michael Stowe
On 2020-05-22 16:19, backu...@kosowsky.org wrote: Michael Stowe wrote at about 22:24:13 + on Friday, May 22, 2020: > On 2020-05-22 09:15, backu...@kosowsky.org wrote: > What it does is omit directories from the modification times that it > sets. In other words, you're telling it not to

Re: [BackupPC-users] BUG? Using --omit-dir-times in rsync backup sets all dir dates to beginning of Epoch

2020-05-22 Thread backuppc
Michael Stowe wrote at about 22:24:13 + on Friday, May 22, 2020: > On 2020-05-22 09:15, backu...@kosowsky.org wrote: > > If I add '--omit-dir-times' to $Conf{RsyncArgsExtra}, then the backups > > set all the directory dates to the beginning of the Epoch. > > > > For example > >

Re: [BackupPC-users] BUG? Using --omit-dir-times in rsync backup sets all dir dates to beginning of Epoch

2020-05-22 Thread Michael Stowe
On 2020-05-22 09:15, backu...@kosowsky.org wrote: If I add '--omit-dir-times' to $Conf{RsyncArgsExtra}, then the backups set all the directory dates to the beginning of the Epoch. For example drwxr-xr-x 3 backuppc www-data 1024 Dec 31 1969 pc/ (note this is 1/1/70 00:00:00 GMT) This is

[BackupPC-users] BUG? Using --omit-dir-times in rsync backup sets all dir dates to beginning of Epoch

2020-05-22 Thread
If I add '--omit-dir-times' to $Conf{RsyncArgsExtra}, then the backups set all the directory dates to the beginning of the Epoch. For example drwxr-xr-x 3 backuppc www-data 1024 Dec 31 1969 pc/ (note this is 1/1/70 00:00:00 GMT) This is inconsistent with normal rsync wich just uses