3 # Run once a week via cron, out of troup's crontab.
6 export SCRIPTVARS=/org/non-us.debian.org/katie/vars-non-US
9 ################################################################################
11 echo "Creating pre-weekly-cron-job backup of projectb database..."
12 pg_dump projectb > /org/non-us.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
14 ################################################################################
16 # temporary hack to work around the lack of an apt-utils & python-apt package
17 export PYTHONPATH=$PYTHONPATH:/org/non-us.debian.org/scripts/apt/build/bin/
18 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/org/non-us.debian.org/scripts/apt/build/bin/
19 export PATH=$PATH:/org/non-us.debian.org/scripts/apt/build/bin/
20 export PATH=$PATH:/org/non-us.debian.org/scripts/apt/build/bin/
24 shania -v -m -i $incoming
26 # TODO: weekly postins to d-c (?), backup of report (?), backup of changes.tgz (?)
28 ################################################################################
30 echo "Creating post-weekly-cron-job backup of projectb database..."
31 pg_dump projectb > /org/non-us.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
33 ################################################################################