Backup and restore
Mega Not has no built-in automatic backup. You take backups from your hosting panel or with server tools.
What should you back up?
| What | Why |
|---|---|
| Database | Members, notes, packages, payments and settings |
.env |
Database details and the application key |
public/uploads |
Uploaded images and logos |
public/favicons |
Site icon |
storage/installed.lock |
Installation state |
Important: If you lose the application key in
.env, encrypted data cannot be read. Keep this file somewhere safe and do not share it.
Taking a backup
- Download the database with your hosting panel's backup tool or phpMyAdmin Export.
- Compress and download the files and folders above.
- Store the backup off the server.
Restoring
-
Put the application files back using the same version.
-
Import the database.
-
Put back
.env,public/uploads,public/faviconsandstorage/installed.lock. -
Clear the caches:
php artisan optimize:clear
If it went right: you can sign in with your old account and see your notes.
Tip: Restore to a test environment from time to time to make sure your backup works.