Re: Synchronize 2 folders
Posted: 07 Sep 2017 21:40
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...
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
Uhm, is that a crooked comment on the new function I just published?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
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.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).
Code: Select all
<xydata>\Log\SyncFolders_<date yyyy-mm-dd_hh-nn-ss>.txtI would prefer the set the path(s) myself, so I could save them e. g. along with the backups.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
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.
...I understand, but the architecture does not allow it.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.
Yep!!Papoulka wrote:I think most people will preview before doing the synch except in simple cases.
OK, I will add something.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?
Yes, I do think so.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.)