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" [EMAIL PROTECTED] < /dev/null
exit 1
fi

exit 0




_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Reply via email to