Backup

Export everything this site stores in your browser, import it later, somewhere else, or bring data in from elsewhere.

What's stored on this site

Bringing data in from Azure Mines Tools

Azure Mines Tools keeps its data in your browser. You can run a command on that site to import your data into Ambrosia Utilities. It only pulls:

  • Inventory ore amounts
  • Custom AV% goals (1/2/3 plus any you added)
  • Finds Tracker entries
  • Your most recent Trade Calculator trade
  • Base station levels

Information not tracked by AMT will appear as unavailable when you import that file.

  1. Open Azure Mines Tools in your browser, any page works.
  2. Open the developer console using F12, or right-click the page and choose Inspect, then open the Console tab.
  3. Copy the command below, paste it into the console, and press Enter.
  4. A file named azure-mines-tools-export-….json will download. Click Import Data at the top of this page and choose that file.
(() => {
  const wanted = /^(inventory|customAVs|tradeData|upgradeProgress|ambrosiaCount|nihiliumCount1|nihiliumCount2)$/;
  const findKey = /^(ambrosia|nihilium)-(date|depth)-[12]-\d+$/;
  const raw = {};
  Object.keys(localStorage).forEach(k => {
    if (wanted.test(k) || findKey.test(k)) raw[k] = localStorage.getItem(k);
  });
  const payload = {
    version: 1,
    source: "azure-mines-tools-raw",
    exportedAt: new Date().toISOString(),
    raw
  };
  const blob = new Blob([JSON.stringify(payload, null, 2)], { type: "application/json" });
  const url = URL.createObjectURL(blob);
  const a = document.createElement("a");
  a.href = url;
  a.download = `azure-mines-tools-export-${new Date().toISOString().slice(0, 10)}.json`;
  document.body.appendChild(a);
  a.click();
  a.remove();
  URL.revokeObjectURL(url);
  console.log(`Collected ${Object.keys(raw).length} keys, downloading ${a.download}. Import it on Ambrosia Utilities' Backup page.`);
})();

This only reads data in AMT's local storage on your own device, and downloads the file to your computer. Nothing is sent anywhere else.

Imports overwrite the categories you select. Export a backup first if you want to be able to undo one. You must refresh any open tabs to see imported changes.