From: jhamlin () bhe ! com
To: tru64-unix-managers
Subject: SUMMARY - Secure Copy
Date: Mon, 11 Mar 2002 11:39:11 +0000 [thread overview]
Message-ID: <102653731622643.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~2002-03-11 11:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox