Can't get an exclusion to work

Get help for specific problems
Posts: 3
Joined: 20 Jan 2017

dleigh

I'm using Real Time Sync with a batch file to sync my user directory over to another computer. I've done a lot of exclusions to whittle down what's actually being saved.

My exclusions look like this:
\System Volume Information\
\$Recycle.Bin\
\RECYCLER\
\RECYCLED\
*\desktop.ini
*\thumbs.db
\NTUSER.DAT
\ntuser.dat.LOG1
\ntuser.dat.LOG2
\AppData\Local\
\OneDrive\.*
*\parent.lock
\Roaming\IObit\
\caches\
\cache\
\https+++*
*.part
But I'm still getting messages like this:
Cannot copy file
"C:\Users\David\AppData\Roaming\8pecxstudios\Cyberfox\Profiles\90ftypsz.default\storage\default\https+++twitter.com\cache\caches.sqlite-shm" to
"\\DAVID-VOSTRO\Vostro-E\Backups\LenovoLaptop\AppData\Roaming\8pecxstudios\Cyberfox\Profiles\90ftypsz.default\storage\default\https+++twitter.com\cache\caches.sqlite-shm.ffs_tmp".

Error Code 2: The system cannot find the file specified. [CopyFileEx]
I would have thought that,

\cache\
\https+++*

at least one of those would have prevented this file from being copied. Is my exclusion wrong or does it not work the way I think it should?

Thanks
User avatar
Posts: 2523
Joined: 22 Aug 2012

Plerry

You do not mention what you have defined for your left, respectively right location.
If you tell what you have defined for your left, resp. right location, I might be able to provide more specific help.

In general:
Note that all include and exclude definitions are relative to the root of the respective left and right locations.
E.g. excluding \cache\ probably does not make sense, as likely the folder "cache" is not in the root of the left and right location. Excluding *\cache\ will probably help, but will exclude all folders named "cache" (if any), instead of just the specifically intended folder "cache".
If your left location would be "C:\Users\David\" and your right location "\\DAVID-VOSTRO\Vostro-E\Backups\LenovoLaptop\", you would need to exclude
\AppData\ to exclude everything in AppData or
\AppData\Roaming\ to exclude everything in AppData\Roaming, but include everything else in AppData
etc.
Posts: 3
Joined: 20 Jan 2017

dleigh

Sorry about that.
Left: C:\Users\David
Right: \\DAVID-VOSTRO\Vostro-E\Backups\LenovoLaptop
Comparison type: File time and size
Sync type: Update with versioning

Yes, I'm trying to exclude any folder (and below) which is named cache. So I'll try *\cache\ and see what that does. Thanks.
User avatar
Posts: 2523
Joined: 22 Aug 2012

Plerry

If you have multiple folders named "cache" in the folder-trees below C:\Users\David and/or \\DAVID-VOSTRO\Vostro-E\Backups\LenovoLaptop that you all want to exclude from your sync, you can exclude *\cache\
If you only want to exclude everything in
C:\Users\David\AppData\Roaming\8pecxstudios\Cyberfox\Profiles\90ftypsz.default\storage\default\https+++twitter.com\cache\
and/or
\\DAVID-VOSTRO\Vostro-E\Backups\LenovoLaptop\AppData\Roaming\8pecxstudios\Cyberfox\Profiles\90ftypsz.default\storage\default\https+++twitter.com\cache\
you should exclude
\AppData\Roaming\8pecxstudios\Cyberfox\Profiles\90ftypsz.default\storage\default\https+++twitter.com\cache\
Posts: 3
Joined: 20 Jan 2017

dleigh

Great. Thanks!