Knowledgebase
Knowledgebase: PaperCut > Backups
Restoring from backup
Last modified on 10 August 2016 10:05 AM

How do I restore a PaperCut database file?

PaperCut (Internal Database):

The PaperCut NG data (stored in the internal database) can be restored either by restoring the contents of the directory:

[app-path]/server/data

from your latest off-disk backup. Remember to stop the PaperCut Application Server service before restoring (so the files are not in use at the time of restoration).

Or, alternatively it is possible to restore a point-in-time backup file as created by PaperCut's own backup procedure. These are stored in the directory:

[app-path]/server/data/backups

Again, you may need to restore your latest point-in-time backup file from your system's off-disk backup system. The files all end in a zip extension and are named with the date and time allowing you to select the most recent backup. Point-in-time backups can be imported into the system using the db-tools program as detailed in the user guide here:

and

PaperCut (External Database):

All data is stored in the external database with the exception of:

  • The Print Archive data (see below)
  • The admin password (for security reasons)
  • The database connection details

Instead, these settings are stored in the ~/server/server.properties file. If the Application Server fails, all data is still safe in the external database. Simply re-installing PaperCut, complete the configuration wizard, then pointing it to the existing external database will restore all settings and data.

If your database crashes, follow your database’s recommended restore procedure. Again, PaperCut does maintain it’s own point-in-time database exports (see above) in the directory:

[app-path]/server/data/backups

How do I restore a PaperCut Print Archives?

PaperCut by default stores the Print Archive data in:

[app-path]/server/data/backups

This location can be backed up using your existing backup processes and due to designed resilience can be restored fully or in-part allowing for partial backups of these files e.g. one or two months worth. The README.txt in the archive directory that explains more about partial backups and the directory structure layout.