I’m trying (for the first time only now, shame on me) to use Filters just got a big upgrade: @import files.
In .duplicacy/filters
i have a single line:
@/duplicacy-utils/filters/filters_general_usage
which is a relative path to my general filters file.
When I run backup
PS C:\duplicacy-repositories\tbp-fusion> .\.duplicacy\z.exe -d -log backup
2020-01-10 09:03:39.759 INFO STORAGE_SET Storage set to G:\My Drive\backups\duplicacy
[...]
2020-01-10 09:03:41.225 INFO BACKUP_INDEXING Indexing C:\duplicacy-repositories\tbp-fusion
2020-01-10 09:03:41.226 INFO SNAPSHOT_FILTER Parsing filter file \\?\C:\duplicacy-repositories\tbp-fusion\.duplicacy\filters
2020-01-10 09:03:41.226 INFO SNAPSHOT_FILTER Parsing filter file \\?\UNC\?\C:\duplicacy-repositories\tbp-fusion\.duplicacy\duplicacy-utils\filters\filters_general_usage <- This path is correct, except for the "\\?\UNC\?\" part
2020-01-10 09:03:41.228 DEBUG REGEX_DEBUG There are 0 compiled regular expressions stored
2020-01-10 09:03:41.228 INFO SNAPSHOT_FILTER Loaded 0 include/exclude pattern(s)
2020-01-10 09:03:41.228 DEBUG LIST_ENTRIES Listing
it loads 0 patterns, even though the imported path is resolved correctly. It does have a weird header though: \\?\UNC\?\
.
If I set the full path instead of relative in the filters file, so the content becomes
@C:/duplicacy-repositories/tbp-fusion/.duplicacy/duplicacy-utils/filters/filters_general_usage
Then everything works ok:
PS C:\duplicacy-repositories\tbp-fusion> .\.duplicacy\z.exe -d -log backup
2020-01-10 09:26:06.327 INFO STORAGE_SET Storage set to G:\My Drive\backups\duplicacy
[...]
2020-01-10 09:26:07.763 INFO BACKUP_START Last backup at revision 4 found
2020-01-10 09:26:07.763 INFO BACKUP_INDEXING Indexing C:\duplicacy-repositories\tbp-fusion
2020-01-10 09:26:07.765 INFO SNAPSHOT_FILTER Parsing filter file \\?\C:\duplicacy-repositories\tbp-fusion\.duplicacy\filters
2020-01-10 09:26:07.771 INFO SNAPSHOT_FILTER Parsing filter file C:/duplicacy-repositories/tbp-fusion/.duplicacy/duplicacy-utils/filters/filters_general_usage <- this is correct, and without the weird header
2020-01-10 09:26:07.773 DEBUG REGEX_STORED Saved compiled regex for pattern "(?i)(^|/)\.git/", regex=®exp.Regexp{expr:"(?i)(^|/)\\.git/", prog:(*syntax.Prog)(0xc006075a40), onepass:(*regexp.onePassProg)(nil), numSubexp:1, maxBitStateLen:21845, subexpNames:[]string{"", ""}, prefix:"", prefixBytes:[]uint8(nil), prefixRune:0, prefixEnd:0x0, mpool:0, matchcap:4, prefixComplete:false, cond:0x0, longest:false}
[...]
2020-01-10 09:26:08.132 INFO SNAPSHOT_FILTER Loaded 198 include/exclude pattern(s)
it loads all the patterns, and it does NOT have that weird header: \\?\UNC\?\
.