Help with Synch 2 drives

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
capun
Posts: 10
Joined: 14 Dec 2010 17:31

Help with Synch 2 drives

Post by capun »

I tried searching first but no luck finding a solution to my problem.
In the past I have been doing drive synch up by dragging and dropping the folders with the Backup option. I was using the Home version before so I am a newbie when it comes to scripting.

Problem: I am trying to synch up 2 drives. The target drive cannot be deleted but new folders are files need to be added and newer/updated files need to be copied over the old files. Eventually I am going to set-up an schedule task to do it weekly.

I wrote this script:

// Sync H:\ to X:\02-Drive_H_Backup
// Try #1 sync "H:\", "X:\02-Drive_H_Backup", , 2, 1;
// Try #2
sync "H:\", "X:\02-Drive_H_Backup", 1, 4, 0;

The first try (#1) the script deleted folder/files before doing the synch. It also got errors due to some files/folders (since deleted)

The second try (#2) XYPlorer crashed and could not see any error logs.

Is my script correct? Or Am I missing something or is it wrong?

On a side note, is there a way to write the script to exclude some of the folders? The hard way is to script folder by folder synch

admin
Site Admin
Posts: 63810
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Help with Synch 2 drives

Post by admin »

Which version of XY are you using?

Post Reply