Add docs note about database backups

This commit is contained in:
Oliver Gorwits
2014-08-08 21:13:13 +01:00
parent d604659716
commit 0f2fadcede
2 changed files with 14 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
* Process tree updated to show daemon worker status/activity * Process tree updated to show daemon worker status/activity
* Handle management IP of one device being in use on another device * Handle management IP of one device being in use on another device
* Log at debug the vlan reindexing in macsuck * Log at debug the vlan reindexing in macsuck
* Add docs note about database backups
[BUG FIXES] [BUG FIXES]

View File

@@ -164,6 +164,19 @@ Then run the web daemon with the environment variable to enable the feature:
DANCER_DEBUG=1 ~/bin/netdisco-web restart DANCER_DEBUG=1 ~/bin/netdisco-web restart
=head2 Database Backups
We recommend you backup the Netdisco database regularly. You could put the
following commands into a shell script and call it nightly from C<cron>:
DATE=`date +%Y%m%d`
/usr/bin/pg_dump -F p --create -f /path/to/backups/netdisco-pgsql-$DATE.dump netdisco
gzip -9f /path/to/backups/netdisco-pgsql-$DATE.dump
/usr/bin/find /path/to/backups/ -type f -ctime +30 -exec rm {} \;
This will keep 30 days of backups. You don't need to stop Netdisco during the
backup.
=head1 Further Reading... =head1 Further Reading...
Other ways to run and host the web application can be found in the Other ways to run and host the web application can be found in the