* SUMMARY - Secure Copy
@ 2002-03-11 11:39 jhamlin
0 siblings, 0 replies; only message in thread
From: jhamlin @ 2002-03-11 11:39 UTC (permalink / raw)
To: tru64-unix-managers
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@odin.mdacc.tmc.edu]
Jiang Wei [jiang@ebu.ch]
Davis, Alan [Davis@tessco.com]
Knut Helleb=F8 [Knut.Hellebo@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-03-11 11:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-11 11:39 SUMMARY - Secure Copy jhamlin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox