Includes not using macros / environment vars

Get help for specific problems
Posts: 21
Joined: 2 Aug 2016

CaptainStarbuck

I've set environment variables with setx, so they're available to processes run after they are set.

I'm using vars like the following:
BackupSet1=a*\*|b*\*|c*\*|d*\*|e*\*|f*\*|g*\*|h*\*
BackupExcludes=desktop.ini|thumbs.db|*.tmp|*.bak|\.svn\|\.git\|\Ignore\
BackupSource=C:\Users\me\Documents\
BackupTarget=E:\Data\me\Tarantula\Documents\
With the left side %BackupSource% and the right %BackupTarget%, the source and target folders are recognized.
It looks like %BackupExcludes% is recognized, I'm not positive on that yet.
But setting the Includes to %BackupSet1% results in no files being compared.
Hard-coding to that value works.

Might there be some issue with escaping of the slashes?
Is a macro in Includes not yet supported?
Any ideas?

Thanks!
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Macros are currently only supported for the directory input fields.
Posts: 21
Joined: 2 Aug 2016

CaptainStarbuck

OK, please consider this an enhancement request. With %env_vars% we can change one var to completely change how a sync profile works. Right now I have to create lots of profiles that do similar things. My next step for this might be to write code that gets run before opening FFS, dynamically replacing the include/exclude fields with values from env vars.