Page 7 of 12

Re: Synchronize 2 folders

Posted: 07 Sep 2017 21:40
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...

Re: Synchronize 2 folders

Posted: 07 Sep 2017 22:17
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).

Re: Synchronize 2 folders

Posted: 07 Sep 2017 23:31
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

Re: Synchronize 2 folders

Posted: 08 Sep 2017 00:21
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:

Re: Synchronize 2 folders

Posted: 08 Sep 2017 00:22
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.

Re: Synchronize 2 folders

Posted: 08 Sep 2017 00:54
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

Re: Synchronize 2 folders

Posted: 08 Sep 2017 06:35
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.

Re: Synchronize 2 folders

Posted: 08 Sep 2017 12:53
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. :)

Re: Synchronize 2 folders

Posted: 08 Sep 2017 17:01
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.

Re: Synchronize 2 folders

Posted: 08 Sep 2017 19:31
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!

Re: Synchronize 2 folders

Posted: 08 Sep 2017 20:16
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.

Re: Synchronize 2 folders

Posted: 08 Sep 2017 23:15
by xyplorerköln
Papoulka wrote:I think most people will preview before doing the synch except in simple cases.
Yep!!

Re: Synchronize 2 folders

Posted: 09 Sep 2017 10:48
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?

Re: Synchronize 2 folders

Posted: 09 Sep 2017 10:58
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.)

Re: Synchronize 2 folders

Posted: 09 Sep 2017 13:09
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