ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gisbert Amm <...@webde.de>
Subject Re: Backup before deploy
Date Tue, 22 Nov 2005 08:59:24 GMT
keith wong wrote:
> Here is steps I need to make:
>  1. SSH to remote.
>  2. su to our user. 
>  3. tar all backup and save it to privielge
>  restricted location allowed 
>  from that "su"ed user.
>  4. compress the tar to save space.

You could pass your tar command to su with the -c option (-c, 
--commmand=COMMAND pass a single COMMAND to the shell with -c). Since 
tar itself got a zip option (z) you could do the 3rd and 4th step 
simultaniously.

Not very Ant-ish indeed, but a possibility.

Regards,
Gisbert

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


Mime
View raw message