# How to recover deleted Oxide plugin data

[Rust server guides](https://rustsc.com/learn/index.html.md) / [Backups and recovery](https://rustsc.com/learn/recovery/index.html.md)

Find out what the plugin lost before restoring files. A plugin can load normally with fresh data even though its old balances, statistics or shop records are gone.

## Look for the records the plugin writes

Oxide normally keeps plugin settings in `oxide/config` and plugin records in `oxide/data`. The author chooses the data file names, so check the plugin documentation before assuming the data file is named after the plugin. Some plugins use several files or an external database. Preserve the current data even if some of it looks empty.

| What disappeared | What to compare in the backup |
| --- | --- |
| A plugin's welcome message or option | Compare its config. Leave player records in place if they are healthy. |
| A points balance or player statistics | Find the data file, folder or database the plugin documents. Check for newer entries that a restore would remove. |
| A plugin's links to buildings or vending machines | Check that the referenced entities still exist in the current world. Test the data with that world before restoring it. |

## Test the recovered group of files before replacing it

Say an event plugin lost its points file and issued new points before you noticed. Preserve the current file after stopping the server, then extract the older copy into a new folder. Check that it matches the plugin version and includes any companion files the plugin needs. If the plugin supports merging or importing records, use that method on the test copy first. Otherwise, choose which point to keep and tell players which later points it replaces.

Test with live webhooks and external storage disconnected or pointed at test services. If the files use an unsupported format, keep both copies and check which versions the author says can read them.

## Check for new records before applying the fix

If the live plugin has kept running during the test, new points may have appeared since you made your safety copy. Stop the live server and other writers, take a final copy of the current records and verify it before replacing anything. Use the import you tested, or apply the earlier files as a set once you have agreed which points it replaces. Restart with access limited to testers and check both a known balance and whether the plugin can save a controlled new change.

## Sources

- [Oxide documentation on data file locations and format changes](https://docs.oxidemod.com/guides/owners/data-files)
- [Oxide documentation on plugin configuration](https://docs.oxidemod.com/guides/owners/configure-plugins)

## Related resources

- [Which files belong in a Rust server backup?](https://rustsc.com/learn/recovery/what-a-rust-server-backup-needs-to-include/index.html.md)
- [Which SQLite files do you need when copying a Rust database?](https://rustsc.com/learn/recovery/copy-rust-sqlite-database-and-wal/index.html.md)

---

HTML version: https://rustsc.com/learn/recovery/recover-deleted-oxide-plugin-data/
