ZTree.com  | ZEN  | About...  

 Index   Back

[ZEP] Esc while Alt-Mirror NOT delete all target files   [ZEP]

By: Laurent Duchastel     Montréal, Québec  
Date: Jun 21,2018 at 13:49
In Response to: [ZEP] Esc while Alt-Mirror NOT delete all target files (Peter Shute)

> I've never used the sync options before, and I'm a bit horrified at
> how easy it would be to make disastrous mistakes with it.

It's a powerful feature... and I love it! But it can be dangerous... as many other ZTree features are (Prune, macros, tagged operations, etc.)

> If you use a two way sync with the wrong destination, I assume that
> could make a mess by merging the source and destination files/folders? No
> deletions, but a mess that might be very hard to clean up.

Yep.
You better know what you do.

> Perhaps both sync options need to display a summary of what they're
> going to do. Eg:
> "4926 files and 200 directories will be deleted from the destination
> branch because they don't exist in the source. Do you wish to proceed?
> Yes/No/List"
> or
> "597 files and 22 directories will be copied from the destination to
> the source because they don't exist there. Etc"

That would be interesting as an additional warning to the existing one. I am not sure it would however help to undo disaster.

What would be useful in time of disaster is a history log of all file and directory operations done by ZTree. It would however be a gigantic ever-growing text file and slow down operations, so I do not ZEP this idea.


Laurent Duchastel

1,055 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 61 users online (0 registered, 61 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 3:39 pm UTC  |  Hits:62,371,753  (24,150 Today )
RSS Feed