Changes between Version 4 and Version 5 of InstallationGuidelines/Linux/Server/CherokeePostgreSQL
- Timestamp:
- 10/26/11 20:27:51 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/Linux/Server/CherokeePostgreSQL
v4 v5 324 324 cat << EOF > "/usr/local/bin/backup" 325 325 #!/bin/sh 326 NOW= $(date +"%Y-%m-%d")326 NOW=\$(date +"%Y-%m-%d") 327 327 su postgres 328 pg_dump -c sahana > /root/backup- $NOW.sql328 pg_dump -c sahana > /root/backup-\$NOW.sql 329 329 pg_dump -Fc gis > /root/gis.dmp 330 OLD= $(date --date='7 day ago' +"%Y-%m-%d")331 rm -f /root/backup- $OLD.sql330 OLD=\$(date --date='7 day ago' +"%Y-%m-%d") 331 rm -f /root/backup-\$OLD.sql 332 332 EOF 333 333 chmod +x /usr/local/bin/backup