From owner-freebsd-questions Tue Nov 13 16:54:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sage-american.com (sage-american.com [216.122.141.44]) by hub.freebsd.org (Postfix) with ESMTP id C765337B416 for ; Tue, 13 Nov 2001 16:54:47 -0800 (PST) Received: from SAGEONE (ppp-208-191-234-110.dialup.crchtx.swbell.net [208.191.234.110]) by sage-american.com (8.9.3/8.9.3) with SMTP id SAA01047; Tue, 13 Nov 2001 18:54:42 -0600 (CST) Message-Id: <3.0.5.32.20011113185443.00fc7db8@mail.sage-american.com> X-Sender: jacks@mail.sage-american.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Tue, 13 Nov 2001 18:54:43 -0600 To: Bernie Johnson , freebsd-questions@FreeBSD.ORG From: jacks@sage-american.com Subject: Re: Tape Back Up and Cron????? In-Reply-To: <20011113224823.53372.qmail@web11801.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ...put the commands into script and run the script from cron... what, did I miss here? At 02:48 PM 11.13.2001 -0800, Bernie Johnson wrote: >I have a small dilema, I have got tostart backing up a >few directories every night to a DDS3 tape drive. > >There is a CPanel PSA (PLESK)interface running on this >server, and the programmers are telling me I have to >stop the CPanel before doing the tape backup. > >The directories I need to back up are as follows: > >First Stop PSA by issuing the following command: > >Further, use the following commands to start and stop >the system: > /usr/local/psa/rc.d/psa start and > /usr/local/psa/rc.d/psa stop respectively. > > > > >Do copies of the following files and directories (you >may use TAR): > NOTE: All file attributes should be preserved. > /etc > /var > /tmp > /usr > If you can't backup whole /usr, you should backup the >following files and directories > /usr/sbin/sendmail > /usr/lib/sendmail > /usr/local/frontpage > /usr/local/psa > /usr/local/etc/rc.d/ > > >My questions are as follows, how do I set up a cron >job to do this and compress it in one swoop with out >havign to do it manualy. I have looked at the >handbook but dont see how to do intricate cron jobs. > >This corn job would have to stop the PSA that is >running, then back upp all of thsoe files to the DDS3 >Tape Drive, and then start the PSA interface again >when completed. > >Please help really new to cron jobs and backing up. > >Bernie-- > >__________________________________________________ >Do You Yahoo!? >Find the one for you at Yahoo! Personals >http://personals.yahoo.com > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > Best regards, Jack L. Stone, Server Admin Sage-American http://www.sage-american.com jacks@sage-american.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message