Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

The supported Uptime Kuma backup is a stopped copy of its complete persistent data directory. For Docker, that means the host folder or named volume mounted at /app/data. For a non-Docker installation, back up the directory set by DATA_DIR (the documented default is ./data/). Stop Uptime Kuma before copying or restoring so SQLite cannot be changed during the operation. In version 2, the old JSON Backup/Restore feature has been removed; backing up the data directory is the supported method.

What an Uptime Kuma backup must contain

Think of the entire persistent data directory as one restore unit, not as a single database file. A complete copy preserves the database, configuration, status-page assets and any database sidecar files that exist while Uptime Kuma is running.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • SQLite deployments: the main database is normally kuma.db.
  • MariaDB deployments: the data directory contains the local configuration needed by the deployment, while the actual monitor data resides in MariaDB.
  • Configuration: files such as db-config.json describe database settings.
  • Status-page assets: uploaded logos and related files are stored with the application data.
  • SQLite sidecars: copy any journal, write-ahead-log or other companion files present in the directory. Selecting only kuma.db can omit transactions that have not yet been merged into the main file.

Because the directory is the supported restore boundary, do not build a routine around exporting individual monitors, copying only kuma.db, or relying on the removed JSON feature.

Find the directory Uptime Kuma is actually using

Docker: locate the /app/data mapping

The official container layout mounts persistent storage at /app/data. The left side of that mount is either a host directory or a Docker named volume; that is the item you back up.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
  1. Open the Docker Compose file or the original docker run command and find the volume mapping whose destination is /app/data.
  2. If the deployment is unfamiliar, inspect the running container and list its mounts. A typical inspection command is:
docker inspect uptime-kuma --format '{{ range .Mounts }}{{ println .Source .Destination }}{{ end }}'

Use the source shown next to /app/data. A bind mount may look like a path such as /srv/uptime-kuma-data; a named volume will show a volume name. Do not back up a newly created empty directory by mistake.

Non-Docker: determine the effective DATA_DIR

Read the service definition, startup arguments or environment used to launch Uptime Kuma. The DATA_DIR variable means “the directory where the data should be stored”; its documented default is ./data/, relative to the process working directory. Resolve that path before stopping the service, because a relative path can differ when the application is launched by a process manager.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Back up a Docker installation

1. Record the deployment details

Write down the Uptime Kuma version, the container image tag, whether storage is a bind mount or named volume, and whether the database backend is SQLite or MariaDB. This information makes a later restore or upgrade rollback safer.

2. Stop Uptime Kuma cleanly

For a standalone container, stop the container:

docker stop uptime-kuma

For a Compose stack, stop the whole stack from the directory containing the Compose file:

docker compose down

Do not copy a live SQLite directory while Uptime Kuma is writing to it. The installation documentation warns that POSIX file-lock support is required to avoid SQLite corruption; a filesystem or share that does not provide reliable locks is unsuitable for the live database.

3. Archive the mapped data

For a bind mount, create an archive from the host path you identified. For example, if the source is /srv/uptime-kuma-data:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter | USB C Dongle with 90W Max Power Delivery, 3×5Gbps USB A Data Ports, for MacBook, Dell, and More (Charger Not Included)
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
tar -czf uptime-kuma-data-2026-10-15.tar.gz -C /srv uptime-kuma-data

The date in this example is only a naming convention. Use a name that records the actual backup date, Uptime Kuma version and backend. If you prefer a file-for-file copy, copy the entire directory, including hidden files and SQLite sidecars, rather than selecting visible files manually.

4. Back up a named volume

A named volume must be copied through Docker or from its Docker-managed source location. One portable pattern is to mount the stopped volume into a temporary container and write an archive to a host directory:

docker run --rm 
  -v uptime-kuma-data:/source:ro 
  -v /srv/uptime-kuma-backups:/backup 
  alpine tar -czf /backup/uptime-kuma-data-2026-10-15.tar.gz -C /source .

Replace uptime-kuma-data with the volume actually mapped to /app/data. Keep the resulting archive outside the live volume. If your Compose file uses a different volume name, use that exact name.

5. Move the archive off the host

A backup stored only beside the live container is not protection against a failed disk, accidental deletion or host loss. Copy the archive to separate storage and retain at least one offline or off-host copy. Encrypt it when the directory contains credentials, notification secrets or other sensitive configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

6. Start and check the installation

Start the container or Compose stack again:

docker start uptime-kuma

Then sign in and check that monitors, notification settings, status pages, logos and historical data are present. If you used Compose, run docker compose up -d instead of docker start. A backup is more trustworthy when the original installation continues to operate normally after the copy.

Back up a non-Docker installation

1. Resolve DATA_DIR

Check the service unit, shell script, environment file or process-manager configuration for DATA_DIR. If it is not set, locate the installation’s documented ./data/ directory relative to the application working directory. Confirm that the directory contains the expected database and configuration before proceeding.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

2. Stop the service

Stop the process manager entry or service that runs Uptime Kuma. For example, if it is managed by PM2, stop that PM2 application using the name configured on your host. Verify that no Uptime Kuma process still has the database open.

3. Archive the complete directory

tar -czf uptime-kuma-data-2026-10-15.tar.gz -C /path/to parent-directory-name

Substitute the real parent directory and directory name. The archive should include every file below DATA_DIR, not only kuma.db. Store a copy on separate media and record the Uptime Kuma version and database backend alongside it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

4. Restart and verify

Restart the service using the same process manager and confirm that the web interface loads, monitors run, notification settings remain available, status pages display correctly and history is intact.

Choose storage that matches the risk

Destination Good use Important limitation
External HDD or SSD Convenient destination for an archived data directory and longer retention. Disconnect or move it off-site after copying when practical; a permanently attached drive can be lost with the server.
NAS or shared storage Centralized retention for several hosts and scheduled copies. Do not place the live SQLite database on a share with unreliable POSIX file-lock behavior. The lock warning applies to the active database, not merely to a destination holding a finished archive.
S3-compatible object storage Off-host retention and geographic separation when an organization already operates object-storage workflows. Use an encryption, access-control and lifecycle policy appropriate to your environment. No universal provider, retention period or schedule is prescribed for Uptime Kuma.
USB flash media Small, manual archives when nothing else is available. Capacity, write endurance and long-term retention vary; keep another copy so the USB device is not the only backup.

Separate the live system from the backup destination. A NAS or object store can hold an archive safely even though the active SQLite database requires a filesystem with dependable locking.

Restore Uptime Kuma from an archive

Restore principles

Restore only while Uptime Kuma is stopped. Replace the complete data directory or volume, not a single database file. Restore into the same deployment type and database backend first; a filesystem archive preserves the backend from which it was made.

Restore a Docker bind mount

  1. Stop the container or bring the Compose stack down.
  2. Move the current data directory out of the way rather than deleting it immediately. Keeping it temporarily gives you a fallback if the archive is the wrong one.
  3. Extract the archive so that the restored files occupy the directory mapped to /app/data. Check the directory level after extraction; an extra nesting level such as /srv/uptime-kuma-data/uptime-kuma-data/ will make the container appear empty.
  4. Start the same image or application version used to create the archive.
  5. Inspect container logs and sign in. Check monitors, notification settings, status pages, logos and history before removing the old directory.

Restore a Docker named volume

  1. Stop the stack and identify the exact volume mapped to /app/data.
  2. Use a temporary container to extract the archive into that volume, or create a replacement volume and update the Compose configuration deliberately.
  3. Start Uptime Kuma and inspect logs for database or migration errors.
  4. Verify the application in the browser before treating the restore as complete.

Restore a non-Docker installation

  1. Stop the service or PM2 process.
  2. Preserve the existing DATA_DIR as a temporary fallback.
  3. Extract the archive into the path used by the service, maintaining the original directory structure.
  4. Start the service with the same backend configuration and review its logs.
  5. Confirm the monitors and status pages before deleting the preserved directory.

Protect upgrades and major-version migrations

Create a pre-upgrade archive and do not discard it until the upgraded installation has been exercised. A major-version migration may transform data; the migration documentation instructs operators not to interrupt that process. If it is interrupted, restore the pre-migration backup and retry rather than repeatedly starting with a partially migrated directory.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray | Data transfer & Fast charging for MacBook, iPhone 17/16/15, iPad, Samsung Galaxy, Apple Watch
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Migration time depends on installation size and storage performance. The documentation gives an example of 20 monitors and 90 days of data taking about seven minutes. Larger installations can take hours, so plan a maintenance window and watch the process rather than assuming the example duration applies to your system.

After the upgrade, check both current monitoring and historical views. Keep the pre-upgrade archive until you have confirmed that authentication, notification channels, status pages, logos and history all behave as expected.

Can a backup move Uptime Kuma from SQLite to MariaDB?

No. A filesystem backup preserves the database backend it came from; copying kuma.db or the whole SQLite data directory does not convert the installation to MariaDB.

The official FAQ states that direct SQLite-to-MariaDB conversion is not supported by the maintainers. A move between those backends requires a separate export/import process using third-party tooling, followed by validation in your environment. Treat that as a migration project, not as an ordinary restore. Keep the original SQLite archive untouched until the new MariaDB deployment has been tested.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Compare backup approaches before standardizing one

Decision axis Stopped directory archive Live snapshot or file copy Export of one database file
Consistency High, because Uptime Kuma is stopped before copying. Depends on storage snapshot semantics and whether all writes are quiesced. Unreliable if SQLite sidecars contain active transactions.
Restore completeness Includes the supported data directory, configuration and status-page assets. Complete only when the snapshot covers the entire persistent volume. May omit configuration, logos and sidecar files.
Storage location Can be placed on local removable, NAS or off-site storage after creation. Usually tied to the snapshot system and its retention policy. Easy to copy, but incomplete as a routine Uptime Kuma backup.
Filesystem-lock concern The live database is stopped; the archive destination need not host the active database. Requires confidence that the live filesystem and snapshot method handle locks correctly. Copying during writes can produce an inconsistent set of files.
Backend preservation Preserves SQLite or MariaDB deployment state; it does not convert between them. Preserves whichever backend was captured. Preserves only the selected file, not a backend conversion.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Retention, verification and operational checks

Uptime Kuma’s official documentation does not prescribe a universal backup frequency, retention period, recovery-point objective or recovery-time objective. Set those values according to how much monitor history and configuration your service can afford to lose.

  • Version every archive: include the date, Uptime Kuma version and database backend in the filename or accompanying record.
  • Keep independent copies: maintain at least one off-host copy, and keep one offline or otherwise protected from routine deletion when possible.
  • Protect secrets: encrypt archives and restrict access because notification credentials and database settings may be present.
  • Test restoration: periodically restore a copy into an isolated instance, then verify login, monitors, notifications, status pages, logos and history.
  • Record the exact source: document the Docker volume or host path, the non-Docker DATA_DIR, and the commands or process used to stop and start the service.

A successful archive command proves only that bytes were copied. A successful test restore proves that the archive contains the complete directory, can be opened by the intended deployment and produces the data your operators need.

Best Value
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Troubleshoot common backup and restore failures

The restored instance shows no monitors

The container or service is probably pointed at an empty or different directory. Recheck the Docker source mounted at /app/data or the effective DATA_DIR, and verify the restored files are at the mount root rather than one directory deeper.

Recent data is missing after a file copy

If the source was copied while Uptime Kuma was running, SQLite sidecar files may have been changing. Repeat the backup with the service stopped and archive the complete directory.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The database reports corruption or lock errors

Restore the last known-good stopped archive. Check that the live database is not located on a filesystem or share without reliable POSIX file-lock support, then start Uptime Kuma only after the restore is complete.

Status-page logos or configuration are absent

The backup likely contained only kuma.db instead of the full data directory. Restore a complete directory archive that includes configuration files, uploaded assets and any SQLite sidecars.

A major-version migration was interrupted

Stop the service, restore the pre-migration directory or volume, and retry the migration without interrupting it. Allow extra time for larger monitor and history sets; the seven-minute example for 20 monitors and 90 days of data is not a guaranteed limit.

Practical checklist

  • Identify the source mapped to Docker /app/data, or resolve non-Docker DATA_DIR.
  • Record the Uptime Kuma version and database backend.
  • Stop Uptime Kuma completely.
  • Archive or copy the entire persistent directory, including sidecars and status-page assets.
  • Store the archive outside the live volume and keep an off-host or offline copy.
  • Restart the service and verify monitors, notifications, status pages and history.
  • Before an upgrade, retain the pre-upgrade archive until migration and post-upgrade checks succeed.
  • For SQLite-to-MariaDB moves, plan a separate export/import migration; do not treat a file copy as conversion.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.