02-05-2015, 08:01 AM
(02-05-2015, 06:30 AM)xoft Wrote: If you can help me set it up, no problem.
I'm currently using a script containing the following line, that is run from cron on the Gallery server:
I suppose it's possible to add another command that would copy the packed file over the latest.7z file.Code:ssh -i $remoteKeyFile -p $remotePort $remoteUser@$remoteHost "mkdir -p $remotePath/$targetFolderFormat" && scp -rp -i $remoteKeyFile -P $remotePort $packedFileName $remoteUser@$remoteHost:$remotePath/$targetFolderFormat
You should only have to copy it one more time.
What is the $remotePath value?
Code:
ssh -i $remoteKeyFile -p $remotePort $remoteUser@$remoteHost "mkdir -p $remotePath/$targetFolderFormat"
&&
scp -rp -i $remoteKeyFile -P $remotePort $packedFileName $remoteUser@$remoteHost:$remotePath/$targetFolderFormat
&&
scp -rp -i $remoteKeyFile -P $remotePort $packedFileName $remoteUser@$remoteHost:$remotePath/latest.7z