How to exclued a specific path in backup

Hi,

I’m trying to exclude c:\TOBK\PICS subfolder. But it seems there is a pattern matching. How can I specify to start matching from beginning o path? IT seems I have to match against the absolute path, i.e I have to match against c:\TOBK\PICS, but I cannot do it against the relative path after c:\TOBK). IS that right? Any way of making it work? Would the future –strip-prefix fix it?

c:\TOBK>cd c:\TOBK & restic -r d:\BKRETIC\REPO6 backup . --exclude “/PICS”
enter password for repository:
repository b0745d64 opened (version 2, compression level auto)
found 7 old cache directories in C:\Users\jalcaide\AppData\Local\restic, run restic cache --cleanup to remove them
using parent snapshot 45293376
[0:00] 100.00% 4 / 4 index files loaded

Files: 0 new, 0 changed, 6 unmodified
Dirs: 0 new, 0 changed, 5 unmodified
Added to the repository: 0 B (0 B stored)

processed 6 files, 91.313 MiB in 0:02
snapshot 44c9fb9f saved

c:\TOBK> restic -r d:\BKRETIC\REPO6 ls latest
enter password for repository:
repository b0745d64 opened (version 2, compression level auto)
found 7 old cache directories in C:\Users\jalcaide\AppData\Local\restic, run restic cache --cleanup to remove them
[0:00] 100.00% 4 / 4 index files loaded
snapshot 44c9fb9f of [c:\TOBK] at 2026-01-11 01:22:25.5873046 +0100 CET by CISCO\jalcaide@CSCO-W-PW0JCGJ7 filtered by :
/20240908_011833.mp4
/PICS
/PICS/20240908_021559.jpg
/SUBFOLDER
/SUBFOLDER/x1.txt
/c
/c/TOBK
/c/TOBK/PICS
/c/TOBK/PICS/not_a_pic.txt
/x1.txt
/x2.txt

c:\TOBK>cd c:\TOBK & restic -r d:\BKRETIC\REPO6 backup . --exclude “PICS”
enter password for repository:
repository b0745d64 opened (version 2, compression level auto)
found 7 old cache directories in C:\Users\jalcaide\AppData\Local\restic, run restic cache --cleanup to remove them
using parent snapshot 44c9fb9f
[0:00] 100.00% 4 / 4 index files loaded

Files: 0 new, 0 changed, 4 unmodified
Dirs: 0 new, 2 changed, 1 unmodified
Added to the repository: 0 B (0 B stored)

processed 4 files, 84.843 MiB in 0:02
snapshot 1d7b4bf2 saved

c:\TOBK> restic -r d:\BKRETIC\REPO6 ls latest
enter password for repository:
repository b0745d64 opened (version 2, compression level auto)
found 7 old cache directories in C:\Users\jalcaide\AppData\Local\restic, run restic cache --cleanup to remove them
[0:00] 100.00% 4 / 4 index files loaded
snapshot 1d7b4bf2 of [c:\TOBK] at 2026-01-11 01:22:45.318445 +0100 CET by CISCO\jalcaide@CSCO-W-PW0JCGJ7 filtered by :
/20240908_011833.mp4
/SUBFOLDER
/SUBFOLDER/x1.txt
/c
/c/TOBK
/x1.txt
/x2.txt

c:\TOBK> restic -r d:\BKRETIC\REPO6 ls latest
enter password for repository:
repository b0745d64 opened (version 2, compression level auto)
found 7 old cache directories in C:\Users\jalcaide\AppData\Local\restic, run restic cache --cleanup to remove them
[0:00] 100.00% 5 / 5 index files loaded
snapshot 41c7a1eb of [c:\TOBK] at 2026-01-11 01:37:37.6936906 +0100 CET by CISCO\jalcaide@CSCO-W-PW0JCGJ7 filtered by :
/20240908_011833.mp4
/SUBFOLDER
/SUBFOLDER/x1.txt
/c
/c/TOBK
/c/TOBK/PICS
/c/TOBK/PICS/not_a_pic.txt
/x1.txt
/x2.txt

c:\TOBK>cd c:\TOBK & restic -r d:\BKRETIC\REPO6 backup . --exclude “\PICS”
enter password for repository:
repository b0745d64 opened (version 2, compression level auto)
found 7 old cache directories in C:\Users\jalcaide\AppData\Local\restic, run restic cache --cleanup to remove them
using parent snapshot 41c7a1eb
[0:00] 100.00% 5 / 5 index files loaded

Files: 1 new, 0 changed, 5 unmodified
Dirs: 1 new, 0 changed, 4 unmodified
Added to the repository: 0 B (0 B stored)

processed 6 files, 91.313 MiB in 0:02
snapshot 49fcfcb8 saved

c:\TOBK> restic -r d:\BKRETIC\REPO6 ls latest
enter password for repository:
repository b0745d64 opened (version 2, compression level auto)
found 7 old cache directories in C:\Users\jalcaide\AppData\Local\restic, run restic cache --cleanup to remove them
[0:00] 100.00% 5 / 5 index files loaded
snapshot 49fcfcb8 of [c:\TOBK] at 2026-01-11 01:38:13.8128904 +0100 CET by CISCO\jalcaide@CSCO-W-PW0JCGJ7 filtered by :
/20240908_011833.mp4
/PICS
/PICS/20240908_021559.jpg
/SUBFOLDER
/SUBFOLDER/x1.txt
/c
/c/TOBK
/c/TOBK/PICS
/c/TOBK/PICS/not_a_pic.txt
/x1.txt
/x2.txt

c:\TOBK>