HiddenStore option may be useful
William Ahern
william at 25thandClement.com
Mon Apr 16 07:59:44 EST 2007
On Mon, Apr 16, 2007 at 07:45:48AM +1000, Darren Tucker wrote:
<snip>
> Do you have control over the clients? If so:
>
> 3. Use sftp to upload the file with a temporary name then rename it when
> it's complete. Something like this (untested):
>
> sftp -b /dev/stdin server.example.com << EOD
> put myfile.txt .myfile.txt
> rename .myfile.txt myfile.txt
> EOD
Maybe this, in case clients could concurrently upload different versions of
the same files:
SUFFIX="$(hexdump -n8 -e '8/1 "%02X"' /dev/urandom)"
sftp -b /dev/stdin server.example.com <<EOD
put myfile.txt .myfile.txt.${SUFFIX}
rename .myfile.txt.${SUFFFIX} myfile.txt
EOD
More information about the openssh-unix-dev
mailing list