Permalink
Browse files

CGWB regenerated

  • Loading branch information...
djcoin committed Nov 22, 2010
1 parent cfe3fbb commit ec978fa1717d48c45c64b20d0f6b11a35a85ada2
View
@@ -16,5 +16,11 @@ parts+=instance1
instance2
instance3
instance4
-
+ logrotate.conf
+# activate to backup daily pgsql
+# backup_pgsql
+# backup_pgsql_daily
+# backup_pgsqlkeep
+# if you enable some crons, enable this also
+# chmodcron
# vim:set et ts=4 sts=4 ft=cfg:
View
@@ -8,6 +8,7 @@
allow-hosts = ${mirrors:allow-hosts}
extensions = buildout.minitagificator mr.developer buildout.dumppickedversions jarn.setuptoolsfixer
dump-picked-versions-file =${buildout:directory}/etc/project/bv.server-kgs.cfg
+
extends=
# set here your project specific settings
project/bv.server.cfg
View
No changes.
View
No changes.
View
No changes.
View
No changes.
@@ -1,6 +0,0 @@
-[versions]
-ipython = 0.10.1
-
-#Required by:
-#WebError 0.10.3
-Pygments = 1.3.1
View
@@ -3,8 +3,6 @@
########################################################################################################################
[buildout]
-
-dsm=settings_${buildout:mode}
find-links=${settings:find-links}
# extra directories to add to the python path
extra-paths+=
@@ -76,21 +74,7 @@ scripts+=
django-admin.py
interpreter = djangopy
dependent-scripts=true
-paster-initialization=
- import os, sys
- try:
- \timport bv.server.${buildout:dsm}
- except ImportError:
- \tprint "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
- \tprint " "
- \tprint " Your django settings module does not exist !!!"
- \tprint " eg:"
- \tprint ""
- \tprint " cp ${buildout:directory}/src/bv/server/settings-sample.py ${buildout:directory}/etc/django-settings/settings-BOX-${buildout:mode}.py"
- \tprint " $EDITOR ${buildout:directory}/etc/django-settings/settings-BOX-${buildout:mode}.py"
- \tprint " ln -s ${buildout:directory}/etc/django-settings/settings-BOX-${buildout:mode}.py ${buildout:directory}/src/bv/server/${buildout:dsm}.py"
- \tprint "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
- \tsys.exit(256)
+#paster-initialization=
[test]
recipe = zc.recipe.testrunner
View
@@ -1,17 +1,7 @@
-[zopepy]
+[scripts]
# testrunner problem with stdout munging -call to writeline fail)
#hachoir-core-1.3.2-patches=${buildout:directory}/patches/hachoir.i18n.stdout.patch
#hachoir-core-patch-options=-Np1
-
-# make sur the patchs are applied
-[instance]
-#hachoir-core-1.3.2-patches=${zopepy:hachoir-core-1.3.2-patches}
-#hachoir-core-patch-options=${zopepy:hachoir-core-patch-options}
-
-# make sur the patchs are applied
-#hachoir-core-1.3.2-patches=${zopepy:hachoir-core-1.3.2-patches}
-#hachoir-core-patch-options=${zopepy:hachoir-core-patch-options}
-
# vim:set ft=cfg:
View
@@ -3,16 +3,32 @@
#
[chmodcron]
-order=${fssdaily:recipe}
recipe = plone.recipe.command
update-command = ${chmodcron:command}
command =
chmod -v 750 ${buildout:directory}/cron_scripts/*.sh
-
[logrotate.conf]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/templates/logrotate.conf.template
output = ${buildout:directory}/etc/logrotate.conf
+[backup_pgsql]
+recipe = collective.recipe.template
+input =${buildout:directory}/etc/templates/backup_pgsql.sh.in
+output =${buildout:directory}/cron_scripts/backup_pgsql.sh
+
+# keep jkust the last backups
+[backup_pgsqlkeep]
+recipe = collective.recipe.template
+input =${buildout:directory}/etc/templates/keeplastbackups.sh.in
+output =${buildout:directory}/cron_scripts/pgsqlkeeplastbackups.sh
+to_keep=${backup_pgsql:to_keep}
+
+# backup FSS every day
+[backup_pgsql_daily]
+recipe = z3c.recipe.usercrontab
+times = ${crons:pgsql}
+command = ${backup_pgsql:output}
+
# vim:set ft=cfg:
View
@@ -15,7 +15,7 @@ find-links =
[reverse_proxy]
scheme=http
host=localhost.com
-port=80
+port=80
[hosts]
instance= localhost
@@ -26,7 +26,7 @@ instance4=localhost
#may not be used
supervisor=127.0.0.1
balancer=127.0.0.1
-front=${hosts:balancer}
+front=${hosts:balancer}
[ports]
instance=8085
@@ -37,7 +37,7 @@ instance4=8089
#may not be used
supervisor=8090
balancer=8201
-front=${ports:balancer}
+front=${ports:balancer}
[users]
admin=admin
@@ -52,7 +52,22 @@ deliverance-themes=${buildout:directory}/deliverancex
[crons]
# at 3:00am NO WHITESPACE!!!
buildbot-bv.server=0 3 * * *
-
+pgsql = 15 1 * * *
+
+[backup_pgsql]
+# shall we do a full backup (set this to y)
+full=y
+host=localhost
+port=5434
+user=sim
+# space separated list of databases to save on this cluster
+databases=bisonvert
+# how much do we rotate ?
+to_keep=8
+# where to stock dumps
+dumps_path=${buildout:directory}/var/pgsql_dumps
+pgdump_args=-Fc
+pgdumpall_args=
[mirrors]
allow-hosts =
@@ -51,7 +51,7 @@ use=egg:WebError#evalerror
[app:projectapp]
use=egg:dj.paste
-django_settings_module=bv.server.${buildout:dsm}
+django_settings_module=bv.server.settings
[app:mediaapp]
use = egg:Paste#pkg_resources

0 comments on commit ec978fa

Please sign in to comment.