ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gisbert Amm <>
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 

Not very Ant-ish indeed, but a possibility.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message