Copy Files with arbitrary paths

General Discussion in English
Post Reply
mdiez
Posts: 3
Joined: Fri Oct 29, 2021 4:42 pm

Copy Files with arbitrary paths

Post by mdiez »

Hi
I am using Syncovery 9.18d running on some amd64 unix based NAS.

For reasons beyond my control, I need to copy a huge list of files following arbitrary patterns like:

# /volume2/Share02/SpecificInputs/*/*/*Specific*/*.ext1
# /volume2/Share02/SpecificInputs/*/*/*Specific*/*.ext2

# /volume2/Share02/SpecificOutputs/*/*/*Specific*/*.ext1
# /volume2/Share02/SpecificOutputs/*/*/*Specific*/*ext2

What is the least complicated way to do that ?

I considered writing a PascalScript, but I could not find a "ShouldThisFileBeCopied" boolean function.

I considered writing a script to parse all files in my disk and putting all of them in an XML and then importing as a task, but the file will be too large it may cause issues *and* new folders may be created from time to time.

The "masks" section look promising but I could not find documentation on the exact syntax and/or behavour.

Suggestions are welcome.
Thank you

mdiez
Posts: 3
Joined: Fri Oct 29, 2021 4:42 pm

Re: Copy Files with arbitrary paths

Post by mdiez »

I guess what I need is here:

OnIncludeItem

I'll try that.

tobias
Posts: 1603
Joined: Tue Mar 31, 2020 7:37 pm

Re: Copy Files with arbitrary paths

Post by tobias »

Hello,
yes, OnIncludeItem can be used.

Alternatively, if your profile's base folder is /volume2/Share02/SpecificInputs on the source side, you can use Inclusion Masks like this:
/*/*/*Specific*/*.ext1
/*/*/*Specific*/*.ext2

If the list is too long, you can put it in a text file and reference it in the Inclusion Masks field like this:
:/home/tobias/filelist.txt

The colon in an inclusion mask means that it's actually a file with a list of inclusions.

If you need more assistance, please let me know.

mdiez
Posts: 3
Joined: Fri Oct 29, 2021 4:42 pm

Re: Copy Files with arbitrary paths

Post by mdiez »

Your way worked, much easier than I thought.

Danke, Tobias!

Post Reply