I am trying to backup a home folder and I would like to exclude a sub folder and all files inside of it except one file.
I have been trying various combinations of --exclude and --filter + and - but I can't see to get it right.
Is this possible? Could someone please help me with this syntax?
Ideally I would not like to specify the direct file path but just the file name:
This way I ensure I always get this file regardless of the path.
Here is an example:
I want to sync on /home, exclude 'folder' and all files but include file 1 specifically.