![]() Once the import has completed, restart the Application Server (See Stop and start the Application Server). Applications/PaperCut\ MF/server/bin/mac/db-tools import-db -f /Applications/PaperCut\ MF/backup-file-name.zip Run the import-db command as detailed above. Move the file into the PaperCut MF or PaperCut NG root directory: sudo mv /path/to/backup/backup-file-name.zip /Applications/PaperCut\ MFĬ. Ensure the proper permissions are applied for access to the file: chown papercut:admin \path\to\backup\backup-file-name.zipī. On macOS and Linux, you need to ensure that the proper permissions are applied to the backup file, and that the backup file is relocated into the PaperCut MF or PaperCut NG directory (so that the papercut user account can access the backup zip file):Ī. See Database tool (db-tools) for more information on using db-tools)įor macOS/Linux platforms, there are some extra steps listed below: db-tools import-db -f ""įor instance, if the backup directory and file is c:\program files\PaperCut\backup\backup.zip, the command will be: db-tools import-db -f "c:\program files\papercut\backup\backup.zip" Be sure to replace the example backup path between the " " with your specific backup path. Run the import process by executing the following. Re-initialize the database back to an empty state by typing the following: db-tools init-db -f In the Windows Start menu, right-click Command Prompt then select Run as administrator. TIP You must run the command prompt as an Administrator. On a Windows system the directory location is \server\bin\win\. On Windows systems, this might need to be specifically elevated to run with administrator privileges, even if you are already logged in with an administrator account. The database cannot be in-use when performing the restore, so the Application Server needs to be stopped first. Shutdown the Application Server (See Stop and start the Application Server). To import data into an external RDBMS (See Deployment on an external database (RDBMS)). Hardware or system failure requires you to rebuild the server and reinstall PaperCut NG/MF.Ī new print server was purchased and PaperCut NG/MF is being moved to a new server. There are a number of situations when it might be necessary to restore a database, including: A window is displayed showing the export progress and the location where the export file is saved. The Backups page is displayed.Ĭlick Export Now. This might be useful to back up the system database before performing an upgrade. In addition to the automated weekly exports, it is also possible to manually initiate a database export. More information on server-command is available in Server commands (server-command). Schedule the script to run at the desired intervals. Simply write a script (for example, batch file) to execute server-command perform-online-backup. Use the server-command tool to execute the export task at other times. On larger networks, you might want to perform export backups more frequently than the in-built once-a-week period. It can help administrators automate the process of maintaining an off-disk copy. ![]() You can find an example backup script called copy-backups-to-remote-server.bat at /server/examples/scripting/batch/. This allows the data to be restored in the case the server hard drive is corrupted. In accordance with backup best practice, back up the above directory regularly to offline media (for example, tape, CD or remote server). ![]() See Using the Advanced Config Editor to find out how to change config keys.) The weekly exports are performed at 20 minutes past midnight on Sunday morning (or as otherwise defined by the schedule.weekly config key. Export backup files are placed in the following directory: ![]() PaperCut NG/MF makes the process of managing export backups simple by automatically performing a weekly export. Secondary print servers and Site Servers do not require a database backup. The use of these open standards ensures that your data is always available and accessible.Īs PaperCut NG/MF is centrally managed, the only database that requires backup is on the Application Server. The export is stored in the industry standard XML format and compressed using the standard ZIP format to reduce disk-space on the server and your backup medium. This functionality is designed to complement (not replace) a good system-wide backup process. PaperCut NG/MF includes a built-in database export that saves the state of the database to a file. As with any application, it is important to ensure that backups are performed regularly.
0 Comments
Leave a Reply. |