From owner-freebsd-questions Tue Nov 13 14:48:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web11801.mail.yahoo.com (web11801.mail.yahoo.com [216.136.172.155]) by hub.freebsd.org (Postfix) with SMTP id 33C8E37B405 for ; Tue, 13 Nov 2001 14:48:23 -0800 (PST) Message-ID: <20011113224823.53372.qmail@web11801.mail.yahoo.com> Received: from [65.168.29.11] by web11801.mail.yahoo.com via HTTP; Tue, 13 Nov 2001 14:48:23 PST Date: Tue, 13 Nov 2001 14:48:23 -0800 (PST) From: Bernie Johnson Subject: Tape Back Up and Cron????? To: freebsd-questions@freebsd.org 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 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