Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Copy / Delete instead of overwrite when updating?

 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
Guest
Guest





PostPosted: Mon Jul 06, 2015 9:32 pm    Post subject: Copy / Delete instead of overwrite when updating? Reply with quote

We are trying to copy updated files using Replication / Update method.
The destination does not allow overwrites, but it allows deletes. Is there a way to update the destination without doing overwrites? When using a command like rsync, we use "-u -r --delete-before" options. This copies the file to a temporary name, deletes the old file in the target and then renames the freshly copied file in the destination.
Thanks for any tips.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Tue Jul 07, 2015 12:56 am    Post subject: Reply with quote

Hi , what type of destination is the target folder on? thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Guest
Guest





PostPosted: Tue Jul 07, 2015 2:24 pm    Post subject: Copy / Delete instead of overwrite when updating? Reply with quote

It is a Crossroads StrongBox. It appears like a CIFS NAS device, but files are archived to LTFS tape. In some situations files can't be overwritten or modified, but they can be deleted. Rsync can handle this scenario, but wondering if ViceVersa can. Thanks.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Tue Jul 07, 2015 11:45 pm    Post subject: Reply with quote

By default ViceVersa copies the file to a temp file and then deletes the original target file and renames the temp file into the original file. So that should work? thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Guest
Guest





PostPosted: Thu Jul 09, 2015 6:45 pm    Post subject: Copy / Delete instead of overwrite when updating? Reply with quote

Ah, I see you are indeed.
In a WireShark trace I see that during the update process you open the old file in R/W mode. This step is rejected. I am not sure that it is necessary to open in R/W mode. Maybe that could go away. Thanks.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Fri Jul 10, 2015 1:13 am    Post subject: Reply with quote

Hi, yes, that's done to :
1) verify that the target file can be replaced
2) block the target file while the temp copy is created
I can look at the code and see if it would be easy to change....
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: