3 Backup and Restore
Joe Prochazka edytuje tę stronę 2016-10-12 13:01:11 -04:00

To backup / move / restore your data, take copies of the following directories.

Graph Data

/var/lib/collectd/rrd/

XML & SQLite Portal Data

/var/www/html/data/ except for settings.xml.

If using Advanced Settings w/ SQLite

/var/www/html/data/

If using Advanced Settings w/ MySQL

Backup MySQL Database:
mysqldump -uroot -p PORTAL_DATABASE_NAME > PORTAL_DATABASE_NAME.sql

To restore these files simply copy them into the same location once the new receiver is fully set up. Be sure to overwrite any files which already may exist with those you backed up.

Restore MySQL Database:
mysql -uroot -p PORTAL_DATABASE_NAME < PORTAL_DATABASE_NAME.sql