ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Fix <jakob....@gmail.com>
Subject Re: Backup before deploy
Date Tue, 22 Nov 2005 15:56:12 GMT
Keith,

On 22/11/05, keith wong <ckeiwong@yahoo.com> wrote:
> Hello,
> I need control remote host thru ssh to tar all backup
> file, but I get into problem of "su - " command after
> ant <sshexec> in. I not sure how to keep ssh session
> and process two steps command to archive. Here is
> steps I need to make:
>  1. SSH to remote.
>  2. su to our user.

not sure how to do this ant (haven't looked at the documentation), but
I would probably

ssh -l theRemoteUserName

to the remote site.  Of course, it would be bad practice to ssh as root ...

HTH

>  3. tar all backup and save it to privielge
>  restricted location allowed
>  from that "su"ed user.
>  4. compress the tar to save space.
>
>  Thank you for any input.
>
>  Regards,
>  Keith
>
>
>



--
cheers,
Jakob.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message