I run RH Linux and here is what I do (you can tell I have lost data in the past). If you only did daily and weekly that would be pretty good. /etc/cron.hourly/zope_cron #!/bin/sh ######################################## # File: /etc/cron.hourly/zope_dat.cron # # Backup Zope Database Hourly ######################################## # # rsync arguments: # -q ::= Quiet operation, for cron logs # -u ::= Update only, don't overwrite newer files # -t ::= Preserve file timestamps # -p ::= Preserve file permissions # -o ::= Preserve file owner # -g ::= Preserve file group # -z ::= Compress during transfer # -e ssh ::= Use the ssh utility to secure the link # ARCHDIR="/mnt/drive2/archive/zope/hourly" # /usr/bin/rsync -q -u -t -p -o -g /usr/local/zope/var/Data.fs ${ARCHDIR} # exit 0 and daily: #!/bin/sh ######################################## # File: /etc/cron.daily/zbackup.cron # # Backup Zope Database Daily ######################################## # # rsync arguments: # -q ::= Quiet operation, for cron logs # -u ::= Update only, don't overwrite newer files # -t ::= Preserve file timestamps # -p ::= Preserve file permissions # -o ::= Preserve file owner # -g ::= Preserve file group # -z ::= Compress during transfer # -e ssh ::= Use the ssh utility to secure the link # ARCHTOP="/mnt/drive2/archive/zope/" DOW=`date +%A` ARCHDIR="${ARCHTOP}${DOW}" # # Insure Our Day-of-Week Directory Exists [ -d ${ARCHDIR} ] || mkdir ${ARCHDIR} || { echo "Could Not Create Day-of-Week Directory: ${ARCHDIR}" ; exit 1 } # /usr/bin/rsync -q -u -t -p -o -g /usr/local/zope/var/Data.fs ${ARCHDIR} # # ln -sf ${ARCHDIR} ${ARCHTOP}Current # exit 0 And Weekly: # # ln -sf ${ARCHDIR} ${ARCHTOP}Current # exit 0 [root@newbaby jatwood]# [root@newbaby jatwood]# [root@newbaby jatwood]# more /etc/cron.weekly/zope_archive.cron #!/bin/sh ######################################## # File: /etc/cron.weekly/zope_archive.cron # # Backup Zope Directory ######################################## # # tar arguments: # -c ::= Create tar # -z ::= Zip it up # -f ::= Files # ARCHDIR="/mnt/drive2/archive/zope/" FILEDATE=`date +%Y%m%d` TARFILE="${FILEDATE}.tar.gz" TARDIR="/usr/local/zope" # /bin/tar cfz ${ARCHDIR}${TARFILE} ${TARDIR} # exit 0 BZ On Wednesday, November 13, 2002, at 04:55 AM, Chinku Simon wrote:
Hi, I am investigating on methods to back up of a Zope CMF site. What could be the best possible method Thanks in advance Chinku ________________________________________ Chinku Simon Software Engineer, Infosys Technologies Limited, Bangalore. T +91 80 4163889 (Direct) +91 80 8520261 X 50889