Page 1 of 3

Sync folders questions

Posted: 19 Jan 2024 19:14
by Schuller
1. Can the sync folders feature be setup to sync/backup(mirror source to target) multiples source and target folders in different locations simultaneously in one run/execution of scripted a user button, and without the need for the dual pane?
2. Would it be possible to exclude certain files from sources and targets when syncing.

Right now I currently use a different program but I'd be more than happy to ditch that if I could achieve this within XY.

Re: Sync folders questions

Posted: 19 Jan 2024 19:21
by jupe
Yes, lookup sync scripting cmd in the help file, where it is documented how.

Re: Sync folders questions

Posted: 19 Jan 2024 21:15
by Schuller
Okay, I got the single source and target working in a script on the user button but what is the separator to include another source and target in the same script. I tried (|) but get an overflow message and tried a few other ways too but error messages.

This works
sync "C:\My Documents", "D:\My Documents", 5:="c"; //show config

Now how to add another source (C:\My Music) to target (D:\My Music) to the above in the same script.

Re: Sync folders questions

Posted: 19 Jan 2024 21:22
by jupe
You just use multiple sync cmds, on different lines or same line separated by ; (sans // cmts) eg

Code: Select all

 sync "C:\My Documents", "D:\My Documents", 5:="c";
 sync "C:\My Music", "D:\My Music", 5:="c";

Re: Sync folders questions

Posted: 19 Jan 2024 21:36
by Schuller
When I do this the button then gives me the two backup options to select but I want them both run with one button click?

Re: Sync folders questions

Posted: 19 Jan 2024 21:39
by Schuller
Oh wait, Its working. Just had to ensure it was not on a separate line

Re: Sync folders questions

Posted: 19 Jan 2024 21:59
by highend
Indentation….

Re: Sync folders questions

Posted: 19 Jan 2024 22:00
by jupe
The example you copied from the help used the "c" flag, which is requesting the config dialog to show, so remove that flag if that isn't what you want to happen for each line.

Re: Sync folders questions

Posted: 19 Jan 2024 22:56
by Schuller
Yes, this works and dialogue box is gone now. This is a valuable option to have right within XY and the getting basics was actually pretty easy.
I'm hoping to achieve something similar to what my current software is doing but need to get my head wrapped around that help menu first and experiment with my limited knowledge on this.
Basically four profiles - Annually, Quarterly, Bi-Weekly and Real Time upon file change detection or optionally executed automatically on a schedule or on exit/startup.

Once again, thanks for the assistance on this.

Re: Sync folders questions

Posted: 22 Jan 2024 00:04
by Schuller
Is it normal for XY to be unusable while a sync is taking place?

Re: Sync folders questions

Posted: 22 Jan 2024 00:30
by highend
That window is the active one, so yes
Normally this shouldn't pose any real problems, only the first sync can take a lot of time, subsequent ones should be way faster...

Re: Sync folders questions

Posted: 22 Jan 2024 00:53
by Schuller
Unfortunately time remaining of almost 5 hours to complete is not gonna work for me and had to hit cancel.
I'm still able to work with files in XY, even open documents, with ViceVersa running in the background and even with full backups.
I do like some of XY's options too but for now I will just use to it compliment my current backup/sync software until I become more familiar with it.

Re: Sync folders questions

Posted: 22 Jan 2024 01:03
by highend
Open a fresh instance, execute your sync commands there, work with the main instance?

Re: Sync folders questions

Posted: 22 Jan 2024 01:11
by Schuller
Possibility, but will try another time. Time constraints at the moment and had to default to what is working for me right now.
Thanks for getting back.

Re: Sync folders questions

Posted: 22 Jan 2024 02:35
by jupe
If you aren't up to scripting it to run in the BG yourself, you can just launch

File | Open Throw Away Clone

and run it from there, where your existing button will be available.