Before posting, and to avoid disappointment, please read the following:

  • This forum is not for 2BrightSparks to provide technical support. It's primarily for users to help other users. Do not expect 2BrightSparks to answer any question posted to this forum.
  • If you find a bug in any of our software, please submit a support ticket. It does not matter if you are using our freeware, a beta version or you haven't yet purchased the software. We want to know about any and all bugs so we can fix them as soon as possible. We usually need more information and details from you to reproduce bugs and that is better done via a support ticket and not this forum.

Conditional file pre-processing from syncBack list ?

SyncBackFree is the freeware version of SyncBack. It is *not* an evaluation version of SyncBackPro/SE.
Post Reply
alec.tron
Newbie
Newbie
Posts: 3
Joined: Sun Mar 22, 2015 1:55 am

Conditional file pre-processing from syncBack list ?

Post by alec.tron »

Heya,
I've been using syncBack for a while, but would love to extend the feature-set a bit for my use cases.
I sync my personal files and a large music library to external volumes on a regular basis. Now, for the music files, in some situations I would like to:
- on all files being mirrored from one volume to the other IF they are .flac/.mp3 files
- run a commandline program (vuPlayers' AudioTester) on all files that match the above condition
Is that possible ?
I found the pre/post program injection, but that does not seem to allow inserting conditionals nor commandline actions ?

Alternatively, is there a way to export the file (path) list from syncBacks' pre-action report which I then could iterate over before I let syncBack do its' job after I confirmed the files are all as intended ?

Cheers.
c.
Conrad Chung
2BrightSparks Staff
2BrightSparks Staff
Posts: 152
Joined: Thu Dec 05, 2013 3:01 pm

Re: Conditional file pre-processing from syncBack list ?

Post by Conrad Chung »

by this condition "on all files being mirrored from one volume to the other IF they are .flac/.mp3 files", are you trying to say that you want only .flac & .mp3 files to be copied across to Destination? In other words, Filtering?

If so, check out:

Modify > Simple > Change Filter

and press F1 (with Filter settings page opened) to read the Help page on Filters on how they work. There are also several Filtering examples near the bottom of the Filters Help page.
Conrad Chung
2BrightSparks Staff
2BrightSparks Staff
Posts: 152
Joined: Thu Dec 05, 2013 3:01 pm

Re: Conditional file pre-processing from syncBack list ?

Post by Conrad Chung »

alec.tron wrote:Alternatively, is there a way to export the file (path) list from syncBacks' pre-action report which I then could iterate over before I let syncBack do its' job after I confirmed the files are all as intended ?
By pre-action report, are you referring to the Differences dialog window? If so, there is an Export menu within this window where you can export the proposed entries in the Differences window to a .CSV spreadsheet.
alec.tron
Newbie
Newbie
Posts: 3
Joined: Sun Mar 22, 2015 1:55 am

Re: Conditional file pre-processing from syncBack list ?

Post by alec.tron »

Hi Conrad!
Re.
Conrad Chung wrote:by this condition "on all files being mirrored from one volume to the other IF they are .flac/.mp3 files", are you trying to say that you want only .flac & .mp3 files to be copied across to Destination? In other words, Filtering?
No, slightly different, the music library also contains other files (cover art, playlists, etc), but I'd only want to run a command (commandline) on each file that fulfills the condition (i.e. only pass the flac/mp3 files to audioTester, and only if it passes the commandline test, syncBack is allowed to process/sync it).
Conrad Chung wrote:By pre-action report, are you referring to the Differences dialog window? If so, there is an Export menu within this window where you can export the proposed entries in the Differences window to a .CSV spreadsheet.
Yes, the Differences dialog I meant I guess. :D
The csv would help, I could export that and use that to run my code on that.... I'll look into that. There is no python script-ability in any of the syncBack versions (yet), right ?
Thanks a ton for the feedback!
c.
Conrad Chung
2BrightSparks Staff
2BrightSparks Staff
Posts: 152
Joined: Thu Dec 05, 2013 3:01 pm

Re: Conditional file pre-processing from syncBack list ?

Post by Conrad Chung »

You may be able to write an install-able script in Pro to include a command-line call for files of a certain extension, and then set it to Skip that file (or not) based on the return value from the call. This is assuming that you want to Skip the file, and not to Abort the run...

I'm not sure whether you can write such a script in Python or not as this is something I'm not familiar with. It may probably require installing Python in Windows Scripting Host (I think).

http://www.aspfree.com/c/a/windows-scri ... languages/

The link above suggests it can be done, although it doesn't provide much detail (suggest refer to Python documentation which may shed more light on this?).

It would need to be called via cscript (for example, Programs-Before settings in the SB profile), but I'm not sure if it could be 'installed' so that Pro would know how to call it (or what you would set SBLang to in the script).

Please note that we don't provide bespoke services/assistance to write/support custom scripts as this is beyond the scope of our support.

Thank you for your understanding.
alec.tron
Newbie
Newbie
Posts: 3
Joined: Sun Mar 22, 2015 1:55 am

Re: Conditional file pre-processing from syncBack list ?

Post by alec.tron »

Heya,
3 years later and I'm still looking for a convenient solution for this.
Did Syncback by chance did get an API in the meantime so one can query the source/destination file list and run (before/after) programs on all and/or a selection of files ?
Or automate an internal, pre-sync 'Export All...' to then do the file-parsing on...?

Cheers.
c.
Post Reply