Backup & Restore
Last updated
Last updated
FixedAsset Pro comes with GUI-based and command line based backup and restore utilities. You can generate or download a backup in Admin > Backups
through the web interface:
... or you can use the command line tool:
Shell
The FixedAsset Pro Backup utility will create a SQL dump of your database along with any images or file attachments you have uploaded, and zip them up with a timestamp.
For information on automating these backups to run periodically, see the documentation on configuring alerts and backups.
The restore utility will take an existing backup that was generated through FixedAsset Pro and will restore it to that point in time. This can be helpful if you made a mistake in importing and need to roll back to a previous known-good state, and can also be helpful if you're migrating FixedAsset Pro from one server to another.
🚧NOTE:The restore utility will NOT modify an existing
.env
file. If there are settings in your old system that you need applied to the restored version, you will need to manually apply those changes in the.env
.
❗️Important!As mentioned in the Backup & Restore screen, restoring will log you and everyone else out of the system.
If for some reason you can't get the FixedAsset Pro-generated backup to work (and for example have to do a manual database dump, etc), the file structure FixedAsset Pro is expecting in the .zip file you can assemble it yourself:
SQL file should be at the top level. It can be named anything, but must end in .sql
and there must only be one.
You should have a public/uploads
directory (with subdirectories) and a storage/private_uploads
directory (with subdirectories).
Anything else in the zip file will be skipped.
Then you should be able to upload the newly created backup file and use the web-based GUI restore tool.