Author |
Message |
Guest Guest
|
Posted: Mon Jul 06, 2015 9:32 pm Post subject: Copy / Delete instead of overwrite when updating? |
|
|
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: 8763
|
|
Back to top |
|
|
Guest Guest
|
Posted: Tue Jul 07, 2015 2:24 pm Post subject: Copy / Delete instead of overwrite when updating? |
|
|
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: 8763
|
Posted: Tue Jul 07, 2015 11:45 pm Post subject: |
|
|
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
|
Posted: Thu Jul 09, 2015 6:45 pm Post subject: Copy / Delete instead of overwrite when updating? |
|
|
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: 8763
|
Posted: Fri Jul 10, 2015 1:13 am Post subject: |
|
|
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 |
|
|
|