Child pages
  • Backup and Restore
Skip to end of metadata
Go to start of metadata

You may wish to backup your Open-AudIT data before upgrading or on a regular schedule. There are two main items to backup. The database and the files. 

Database backup on Windows

Database Backup on Linux

File Backup on Windows

You can either stop the MySQL and Apache services and then backup the entire c:\xampplite directory or only backup the c:\xampplite\open-audit directory. You don't really need all of the XAMPPLite directory as you can simply use the reinstall at a later stage. If you backup your open-audit directory you will have the config files as well as any uploaded attachments.

File Backup on Linux

Just copy the folder /usr/local/open-audit and you're done.

On both Windows and Linux you might wish to compress (zip or tar.gz) the resulting database and directory files.

Restoring on Windows

Run the install program to install and setup Open-AudIT. You can then copy your backup file and restore the database with:

Restoring on Linux

Is almost the same as Windows. Copy the database backup to /tmp and import it into MySQL.

Once the database has been restored, you may need to go into the web application and run the Admin -> Upgrade routine (if you have not restored to the same version of the program as the backups version).

You can also just copy the backed up files back to their original location, over writing any existing files.

NOTE - If you have upgraded versions in between backup and restore, ONLY restore the config directory (open-audit/code_igniter/application/config) and the attachments directory (open-audit/code_igniter/application/attachments). If you over write the other (program) files, you will effectively reverse the upgrade you have performed.

 

 

 

  • No labels