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
Perform a regular backup of the Data.fs file and keep a copy of your Zope and Products installation. But the Data.fs is the *most important* part. -aj --On Mittwoch, 13. November 2002 15:25 +0530 Chinku Simon <Chinku_Simon@infosys.com> 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
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
But can we copy the Data.fs file without shutdown Zope? If not, how can we mantain a 24x7 site and do the necessary backups ? ----- Original Message ----- From: "Andreas Jung" <lists@andreas-jung.com> To: "Chinku Simon" <Chinku_Simon@infosys.com>; <zope@zope.org> Sent: Wednesday, November 13, 2002 10:01 AM Subject: Re: [Zope] Regarding ZOPE backup procedure
Perform a regular backup of the Data.fs file and keep a copy of your Zope and Products installation. But the Data.fs is the *most important* part.
-aj
--On Mittwoch, 13. November 2002 15:25 +0530 Chinku Simon <Chinku_Simon@infosys.com> 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
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
--On Mittwoch, 13. November 2002 10:09 +0000 Pedro Beck Gomes da Costa <pbeck@ciberbit.pt> wrote:
But can we copy the Data.fs file without shutdown Zope? If not, how can we mantain a 24x7 site and do the necessary backups ?
Yes, Zope only appends to the file. Some pending transactions might be lost but Zope will recover to the latest commited transaction when you restart ZOpe on the backup site. -aj
----- Original Message ----- From: "Andreas Jung" <lists@andreas-jung.com> To: "Chinku Simon" <Chinku_Simon@infosys.com>; <zope@zope.org> Sent: Wednesday, November 13, 2002 10:01 AM Subject: Re: [Zope] Regarding ZOPE backup procedure
Perform a regular backup of the Data.fs file and keep a copy of your Zope and Products installation. But the Data.fs is the *most important* part.
-aj
--On Mittwoch, 13. November 2002 15:25 +0530 Chinku Simon <Chinku_Simon@infosys.com> 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
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
On Wednesday 13 November 2002 10:09 am, Pedro Beck Gomes da Costa wrote:
But can we copy the Data.fs file without shutdown Zope? If not, how can we mantain a 24x7 site and do the necessary backups ?
As you could probably have guessed (;-) this is a FAQ. Google gives lots of hits, and check out the zodb-dev archives too.
You are right, sorry! I just got a bit lazy when saw the chance to just ask :-) Usually i'm not like that! Thanks! ----- Original Message ----- From: "Toby Dickenson" <tdickenson@geminidataloggers.com> To: "Pedro Beck Gomes da Costa" <pbeck@ciberbit.pt>; <zope@zope.org> Sent: Wednesday, November 13, 2002 10:24 AM Subject: Re: [Zope] Regarding ZOPE backup procedure
On Wednesday 13 November 2002 10:09 am, Pedro Beck Gomes da Costa wrote:
But can we copy the Data.fs file without shutdown Zope? If not, how can we mantain a 24x7 site and do the necessary backups ?
As you could probably have guessed (;-) this is a FAQ. Google gives lots of hits, and check out the zodb-dev archives too.
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
participants (5)
-
Andreas Jung -
BZ -
Chinku Simon -
Pedro Beck Gomes da Costa -
Toby Dickenson