Synchronize 2 folders
-
admin
- Site Admin
- Posts: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Synchronize 2 folders
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...
FAQ | XY News RSS | XY X
Re: Synchronize 2 folders
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
What about using this Backup and synchronize free portable tool for Windows as a source of ideas:
http://titan.fsb.hr/~dzorc/zback.html
http://titan.fsb.hr/~dzorc/zback.html
Win 10 Pro 64bit
-
admin
- Site Admin
- Posts: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Synchronize 2 folders
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
Whatever, the coding is done. Zback can relax. XY will not emulate a full blown backup and synchronize tool.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Synchronize 2 folders
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).
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Synchronize 2 folders
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>.txtFAQ | XY News RSS | XY X
Re: Synchronize 2 folders
I 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
Re: Synchronize 2 folders
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.
...Re: Synchronize 2 folders
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.
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: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Synchronize 2 folders
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.
But what about this idea: instead of a Preview checkbox I add a Preview button!
FAQ | XY News RSS | XY X
Re: Synchronize 2 folders
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
Yep!!Papoulka wrote:I think most people will preview before doing the synch except in simple cases.
Re: Synchronize 2 folders
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?
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: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Synchronize 2 folders
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?
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.)
FAQ | XY News RSS | XY X
Re: Synchronize 2 folders
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.)
Cool, one week ago I hadn't expected to have my full-fledged sync. Thanks a lot, Don.
XYplorer Beta Club