Synchronize 2 folders

Features wanted...
Post Reply
admin
Site Admin
Posts: 65177
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Synchronize 2 folders

Post by admin »

It needs a little more thinking because these full reports can take a while with huge jobs (and lots of memory). So I would not do them just like that by default. Maybe a flag or so...

Filehero
Posts: 2720
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Synchronize 2 folders

Post by Filehero »

What about passing a log file path where the report just gets appended at the end of every SC sync run? I would simply create a date-stamped file (or pass an existing for that day).

Borut
Posts: 1466
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Synchronize 2 folders

Post by Borut »

What about using this Backup and synchronize free portable tool for Windows as a source of ideas:

http://titan.fsb.hr/~dzorc/zback.html
Win 10 Pro 64bit

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

Re: Synchronize 2 folders

Post by admin »

Borut wrote:What about using this Backup and synchronize free portable tool for Windows as a source of ideas:

http://titan.fsb.hr/~dzorc/zback.html
Uhm, is that a crooked comment on the new function I just published? :wink:

Whatever, the coding is done. Zback can relax. XY will not emulate a full blown backup and synchronize tool. :cup:

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

Re: Synchronize 2 folders

Post by admin »

Filehero wrote:What about passing a log file path where the report just gets appended at the end of every SC sync run? I would simply create a date-stamped file (or pass an existing for that day).
Yes, that's a good idea. As you know Custom Copy already supports writing a report to file. I will expose this to Sync Folders. Cool.

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

Re: Synchronize 2 folders

Post by admin »

PS: Would it work for you if the logs would be written to this path/name:

Code: Select all

<xydata>\Log\SyncFolders_<date yyyy-mm-dd_hh-nn-ss>.txt

Filehero
Posts: 2720
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Synchronize 2 folders

Post by Filehero »

admin wrote:PS: Would it work for you if the logs would be written to this path/name:

Code: Select all

<xydata>\Log\SyncFolders_<date yyyy-mm-dd_hh-nn-ss>.txt
I would prefer the set the path(s) myself, so I could save them e. g. along with the backups.

Filehero
Posts: 2720
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Synchronize 2 folders

Post by Filehero »

Code: Select all

v18.30.0003 - 2017-09-08 12:47
    ...
        logfile:
          Optionally pass the name (full path/file, native and environment
          variables allowed) of a logfile to which the full report of the
          operation will be written when it's completed. If the file already
          exists then the report is appended to it.
          No logfile is written in Preview Mode.
      ...
Thanks. :)

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Synchronize 2 folders

Post by Papoulka »

I'd like a "Do It" button on the Preview results window. So if things look OK I can immediately perform the synch.

As it is, after a preview, I have to close that window, start a new Synch, uncheck the "Preview" box, and then perform the Synch. Then next time, remember to re-check the "Preview" box.

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

Re: Synchronize 2 folders

Post by admin »

Papoulka wrote:I'd like a "Do It" button on the Preview results window. So if things look OK I can immediately perform the synch.

As it is, after a preview, I have to close that window, start a new Synch, uncheck the "Preview" box, and then perform the Synch. Then next time, remember to re-check the "Preview" box.
I understand, but the architecture does not allow it.

But what about this idea: instead of a Preview checkbox I add a Preview button!

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Synchronize 2 folders

Post by Papoulka »

Yes, it seems like a button would smooth the typical workflow. I think most people will preview before doing the synch except in simple cases.

xyplorerköln
Posts: 177
Joined: 01 Jan 2016 18:59

Re: Synchronize 2 folders

Post by xyplorerköln »

Papoulka wrote:I think most people will preview before doing the synch except in simple cases.
Yep!!

Filehero
Posts: 2720
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Synchronize 2 folders

Post by Filehero »

I set up a quick loop-sync SC sync script. It works nicely, the log file option (and its content) is really helpful. :)

One "issue" though: the progress dialog causes the loop to be paused after each sync run which defeats the goal of batch processing. Or did I just overlook an option/flag somewhere?

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

Re: Synchronize 2 folders

Post by admin »

Filehero wrote:One "issue" though: the progress dialog causes the loop to be paused after each sync run which defeats the goal of batch processing. Or did I just overlook an option/flag somewhere?
OK, I will add something.

Do you think the default for SC sync should be to NOT keep the dialog open? (In that case I would add a flag to keep it open.)

Filehero
Posts: 2720
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Synchronize 2 folders

Post by Filehero »

admin wrote:Do you think the default for SC sync should be to NOT keep the dialog open? (In that case I would add a flag to keep it open.)
Yes, I do think so.

Cool, one week ago I hadn't expected to have my full-fledged sync. Thanks a lot, Don. :D

Post Reply