Date: Tue, 13 Nov 2001 15:30:50 -0800 (PST) From: Philip Hallstrom <philip@adhesivemedia.com> To: Bernie Johnson <ralph6412@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Tape Back Up and Cron????? Message-ID: <20011113153007.F81546-100000@teak.adhesivemedia.com> In-Reply-To: <20011113224823.53372.qmail@web11801.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Create a shell script named something like "do-backup.sh" and then put all of your logic in there (the stopping, tarring, starting, etc..) Then just reference "do-backup.sh" in your crontab... -philip On Tue, 13 Nov 2001, 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011113153007.F81546-100000>