info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Backing Up CVS


From: Gianni Mariani
Subject: Re: Backing Up CVS
Date: Thu, 06 Feb 2003 08:46:19 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910

David Gagnon wrote:

Hello,

If I need to automate the backup (during the night for example), what I need to do? Can I use AppleScript? Do I need to use unix batch file? What is the best way to do that?


Here us my backup script....

crontab entry
#
30 5    * * *   /root/cvsbackup_1perday
------------------------
/root/cvsbackup_1perday
------------------------
#! /bin/sh
#
# copy cvs backup to saturn
#

BACKUP_NAME=cvstree_`date +%Y-%m-%d+%H-%M-%S`.tgz

BACKUP_FILE=/home3/cvsbackups/$BACKUP_NAME
cd /cvssrc/main
if tar czf $BACKUP_FILE . ; then
       true
else
Mail -s "Error creating backup of CVS tree - $0\n" address@hidden < /dev/null
       exit 1
fi

exit 0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]