Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 26348 invoked from network); 22 Nov 2005 18:49:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Nov 2005 18:49:51 -0000 Received: (qmail 9811 invoked by uid 500); 22 Nov 2005 18:49:45 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 9745 invoked by uid 500); 22 Nov 2005 18:49:44 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 9732 invoked by uid 99); 22 Nov 2005 18:49:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2005 10:49:44 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [146.197.27.40] (HELO barrierb241.nike.com) (146.197.27.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2005 10:51:15 -0800 X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Backup before deploy Date: Tue, 22 Nov 2005 10:48:21 -0800 Message-ID: <200511221849.jAMInLGZ012808@barrierb241.nike.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Backup before deploy Thread-Index: AcXvi7hgv5eqC4SrTq+2h3FaV9wiBAAAjDfwAAG9tFA= From: "Anderson, Rob (Global Trade)" To: "Bozorgdadeh, Afshin" cc: "Ant Users List" X-OriginalArrivalTime: 22 Nov 2005 18:48:22.0101 (UTC) FILETIME=[4FFC0850:01C5EF95] X-WSS-ID: 6F9DB7A41K81154335-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have no idea what you are trying to say, but I'm glad I could help. You're welcome. -Rob A > -----Original Message----- > From: Bozorgdadeh, Afshin [mailto:AFSHIN.BOZORGZADEH@fmr.com]=20 > Sent: Tuesday, November 22, 2005 9:57 AM > To: Anderson, Rob (Global Trade) > Subject: RE: Backup before deploy >=20 > Rob, > When I grow up, I want to be politically correct "JUST LIKE YOU" 8) >=20 > Best Regards > Afshin Bozorgzadeh > >Fidelity Investments Brokerage Company FBCT ClearCase=20 > Release Engineer >=20 > -----Original Message----- > From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com] > Sent: Tuesday, November 22, 2005 12:39 PM > To: Ant Users List > Subject: RE: Backup before deploy >=20 > You should setup sudo on the remote side to allow you to=20 > execute the commands you need to run as the user you need to=20 > run them as.=20 >=20 > The command in the ant sshexec task would look something like this: > ... > command=3D"cd /path/to/somefiles ; sudo rm=20 > ../archive.tar.gz ; sudo tar zcf ../archive.tar.gz * "/> >=20 > Check out the sudo manual... > http://www.courtesan.com/sudo/ >=20 > -Rob Anderson >=20 >=20 >=20 > > -----Original Message----- > > From: keith wong [mailto:ckeiwong@yahoo.com] > > Sent: Monday, November 21, 2005 4:02 PM > > To: user@ant.apache.org > > Subject: Backup before deploy > >=20 > > Hello, > > I need control remote host thru ssh to tar all backup file,=20 > but I get=20 > > into problem of "su - " command after ant in. I=20 > not sure how=20 > > to keep ssh session and process two steps command to=20 > archive. Here is=20 > > steps I need to make: > > 1. SSH to remote. > > 2. su to our user.=20 > > 3. tar all backup and save it to privielge restricted location=20 > > allowed from that "su"ed user. > > 4. compress the tar to save space. > > =20 > > Thank you for any input. > > =20 > > Regards, > > Keith > >=20 > >=20 > > =09 > > __________________________________ > > Yahoo! FareChase: Search multiple travel sites in one click. > > http://farechase.yahoo.com > >=20 > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 > additional=20 > > commands, e-mail: user-help@ant.apache.org > >=20 > >=20 > >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 > additional commands, e-mail: user-help@ant.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org