SUMMARY - Secure Copy

From: <jhamlin_at_bhe.com>
Date: Mon, 11 Mar 2002 06:39:11 -0500

The original question:

Will cp or scp copy a file that is in the process of being
populated? And if, so is there any way to lock the file during copy?

Thanks to:

John Venier [venier_at_odin.mdacc.tmc.edu]
Jiang Wei [jiang_at_ebu.ch]
Davis, Alan [Davis_at_tessco.com]
Knut Hellebų [Knut.Hellebo_at_nho.hydro.com]

and the Unknown Systems Admin at astro.su.se

The concensus is that cp and scp will happily copy a file in the process of
being populated. The most frequent suggestions to prevent this were to
write some kind of script or routine as part of the original population of
the file to be copied and either touch a control file when the file has
completed being populated and checking for this file prior to copying it
elsewhere. A variation on this theme was to create a "lock" file when the
file was being populated, deleting it when population was complete and
having subsequent copies look for the "lock" file prior to copy. I also had
a suggestion to use rsync http://rsync.samba.org to copy the file, but this
is, unfortunately, not an option in my case.

Thank you,

Jef H. HamLin
Bangor Hydro
Received on Mon Mar 11 2002 - 11:39:32 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT