Sync folders questions

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Schuller
Posts: 184
Joined: 02 May 2023 21:08

Sync folders questions

Post 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.

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Sync folders questions

Post by jupe »

Yes, lookup sync scripting cmd in the help file, where it is documented how.

Schuller
Posts: 184
Joined: 02 May 2023 21:08

Re: Sync folders questions

Post 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.

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Sync folders questions

Post 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";

Schuller
Posts: 184
Joined: 02 May 2023 21:08

Re: Sync folders questions

Post 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?

Schuller
Posts: 184
Joined: 02 May 2023 21:08

Re: Sync folders questions

Post by Schuller »

Oh wait, Its working. Just had to ensure it was not on a separate line

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Sync folders questions

Post by highend »

Indentation….
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Sync folders questions

Post 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.

Schuller
Posts: 184
Joined: 02 May 2023 21:08

Re: Sync folders questions

Post 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.

Schuller
Posts: 184
Joined: 02 May 2023 21:08

Re: Sync folders questions

Post by Schuller »

Is it normal for XY to be unusable while a sync is taking place?

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Sync folders questions

Post 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...
One of my scripts helped you out? Please donate via Paypal

Schuller
Posts: 184
Joined: 02 May 2023 21:08

Re: Sync folders questions

Post 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.

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Sync folders questions

Post by highend »

Open a fresh instance, execute your sync commands there, work with the main instance?
One of my scripts helped you out? Please donate via Paypal

Schuller
Posts: 184
Joined: 02 May 2023 21:08

Re: Sync folders questions

Post 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.
Last edited by Schuller on 22 Jan 2024 03:39, edited 1 time in total.

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Sync folders questions

Post 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.

Post Reply