Difference between revisions of "Cedeus DB backups"

From stgo
Jump to: navigation, search
(copy of the geonode DB)
(dump of the geonode DB)
Line 8: Line 8:
 
=> see http://klenwell.com/press/2009/03/ubuntu-email-with-nail/
 
=> see http://klenwell.com/press/2009/03/ubuntu-email-with-nail/
  
=== dump of the geonode DB ===
+
=== dump of the GeoNode DB - on CedeusDB ===
 
* create a shell script that contains the pgdump instructions - see /home/ssteinig/pgdbbackup.sh on CedeusDB
 
* create a shell script that contains the pgdump instructions - see /home/ssteinig/pgdbbackup.sh on CedeusDB
 
* test if script or script execution actually works. A simple script for testing may perhaps be this (/home/ssteinig/touchy.sh)
 
* test if script or script execution actually works. A simple script for testing may perhaps be this (/home/ssteinig/touchy.sh)
Line 21: Line 21:
 
* check also if the cron is running: "<code>sudo service cron status</code>" otherwise start it...
 
* check also if the cron is running: "<code>sudo service cron status</code>" otherwise start it...
 
* to see what the cron tab contains use "<code>crontab -l</code>"
 
* to see what the cron tab contains use "<code>crontab -l</code>"
 +
 +
=> ToDo: check how to open an ftp connection and place the file there... or retrieve it using "wget"?
 +
 +
=== dump of the GeoNode user db - on CedeusGeonode ===
 +
 +
=== dump of the (uploaded) GeoNode file data and docs - on CedeusGeonode ===

Revision as of 18:25, 2 December 2014

>> return to Cedeus_IDE


How to set up Backups

notifications

To get notified about the backups via email, a/the shell script may send emails via "mailx" - i.e Nail. => see http://klenwell.com/press/2009/03/ubuntu-email-with-nail/

dump of the GeoNode DB - on CedeusDB

  • create a shell script that contains the pgdump instructions - see /home/ssteinig/pgdbbackup.sh on CedeusDB
  • test if script or script execution actually works. A simple script for testing may perhaps be this (/home/ssteinig/touchy.sh)
#!/bin/bash 
touch /home/ssteinig/ftw.text

=> ToDo: check how to open an ftp connection and place the file there... or retrieve it using "wget"?

dump of the GeoNode user db - on CedeusGeonode

dump of the (uploaded) GeoNode file data and docs - on CedeusGeonode