I have installed Duplicati 2.0.2.1_beta_2017-08-01 under RHEL 7.4 and am using it to backup one ssd disk with about 270GB on a NAS storage, The full disk backup and restore of directory substructure is working flawless. It was important for me, to have the right timestamps for all restored files and directories and it was the case.
My problem is, I have configured second backup job, to backup only document files (extensions doc, xls, ppt, pdf) to a cloud destination over WebDAV. The backup has worked also without errors. I have tested restore of a subtree with some subdirectories. The restore works also fine and the timestamp of all files was recreated. I got warning at the restore time, that the subdirectories was created, but the timestamp of the restored directories were not the original one, in fact it was the time of the restore action.
I have looked in the backup and found out, that there are no directories stored in the backup set and therefore, there is no metainformation for the directories.
I have tried to change the backup filter, to include the document directory structure too and finded out, that a normal filter with include of some file extensions didn’t backup the directories.
-
The first try was with a simple filter “(.xls) || (.doc) || (.ppt) || (.pdf) || (*/)” (from logfile, and log-level ‘Profiling’). The “(*/)” isn’t coming from my config and I have supposed, it is for the directory backup, but there was no one directory in the backup included.
My filter in the GUI: -
I have tested many different filters (with regular expressions too), but directories would be backed up only if I include in the filter something like “*/”. In this case the filter have two “(*/)” at the end!
Filter (in logfile): (.xls) || (.doc) || (.ppt) || (.pdf) || (*/) || (*/)
Filter in the GUI:
This can be the solution of my problem with the wrong directory timestamps, but with this filter I have other problem - in the backup would be included 6500 directories from the whole ssd disk. The document files are residing in about 50 directories.
Is there some solution for that? I have supposed, when a file is included in a backup, the directory structure for this file will be automatically included too.
Best regards
Frederic