How to Back Up Your Omarchy Home Folder with Kopia

Published on by

Kopia is a free, open source backup app. It encrypts your files on your own computer before anything is uploaded, so the cloud storage holds only encrypted data. After the first backup, Kopia sends only what changed, so later runs take a few seconds. KopiaUI is its desktop app, and it runs well on Omarchy: it tiles like any other window and puts a cloud icon in the tray.

This guide installs KopiaUI 0.23.1 on Omarchy 4.5 and backs up the home folder to IDrive e2 every hour. Then it gets a single file back, looks through a whole folder in a mounted snapshot, and restores that folder. Every name and setting we typed is below, so you can copy them. The last section shows the same jobs with the kopia command.

We recommend IDrive e2 and link to it with our affiliate link, so signing up through it helps support Starry Hope. See our FTC Disclosure.

What you need

You need Omarchy with your normal user account and its password, which the AUR install asks for. We used Omarchy 4.5.0 on a mini PC.

You also need cloud storage that works like Amazon S3. We use IDrive e2. Sign up for IDrive e2 to start with 10 GB free, which is enough to try everything here. Before you open KopiaUI, do three things in the e2 console. IDrive’s dashboard help page has the details for each:

  1. On the Dashboard, pick a region from the Region list and click Enable. The Enabled regions section then shows the endpoint address for that region.
  2. Click Create Bucket, give the bucket a name, and keep access set to Private. A bucket is a storage container in your account.
  3. On the Access Key tab, click Create Access Key, pick the same region, and give the key access to your bucket. Copy the Access Key ID and the Secret Access Key into your password manager.

KopiaUI uses three terms throughout. A repository is the encrypted store Kopia keeps inside your bucket. A snapshot is one backup: a copy of a folder as it was at one moment. A policy holds the rules for a folder, such as when to back up, what to skip, and how long to keep old snapshots.

Install KopiaUI from the AUR

KopiaUI is not in Omarchy’s own package repository. It comes from the AUR, the Arch User Repository, where community members package apps for Arch Linux. Install two of them: kopia-ui-bin is the desktop app, and kopia-bin adds a kopia command for the terminal. The -bin ending means the package repacks a ready-built release from the Kopia project, so nothing has to compile. KopiaUI carries its own copy of the Kopia engine, so you need kopia-bin only if you want the command.

AUR packages come from community members, so read the recipe before you install one. We asked Claude Code to read the kopia-ui-bin PKGBUILD (the build script). The package downloads the official KopiaUI release from Kopia’s GitHub releases page, and makepkg checks each download against a SHA-256 checksum before it installs anything. Those checksums were written in by the AUR maintainers, and the PKGBUILD checks no GPG signature. For more certainty, compare the checksum with the one Kopia publishes on its GitHub releases page.

To install from the Omarchy menu, press super space , type aur, and press enter on AUR / Install. A package picker opens. Type kopia, move up to kopia-ui-bin, and press tab twice: that marks kopia-ui-bin and kopia-bin, and the counter shows (2). Press enter and type your password. Both packages installed in about 30 seconds with no more questions.

Omarchy's AUR package picker with kopia typed in the search line, kopia-ui-bin and kopia-bin marked with orange bars, and the counter showing 2 selected

From a terminal, the same install is one line:

yay -S kopia-ui-bin kopia-bin

Open KopiaUI

Press super alt space for the Apps grid, type kopia, and press enter on KopiaUI. The window tiles like any other app, with a dark theme by default. If the text looks small on your screen, the Preferences tab has an Appearance list with small, medium, and large; we used large.

KopiaUI also adds a cloud icon to the tray, next to the small arrow at the right of the bar. A left click on the icon shows only its name. A right click opens the Kopia menu, which you need for one setting later.

Connect KopiaUI to IDrive e2

The first screen, Select Storage Type, asks where the repository lives. The tiles cover a local drive or NAS, SFTP, WebDAV, Rclone, and cloud storage such as Backblaze B2, Google Cloud, and Azure. IDrive e2 uses the Amazon S3 interface, so click Amazon S3 or Compatible Storage.

KopiaUI's empty Storage Configuration form with the fields Bucket, Server Endpoint, Override Region, Access Key ID, Secret Access Key, Session Token and Object Name Prefix, and Back and Next buttons

Fill in the Storage Configuration form:

  • Bucket: the bucket name from the e2 console.
  • Server Endpoint: the endpoint shown next to your region on the e2 Dashboard, as a bare host name with no https://. Ours was s3.us-midwest-1.idrivee2.com.
  • Override Region: leave it empty. Our e2 endpoint needed no region.
  • Access Key ID and Secret Access Key: the key pair you created.
  • Session Token: leave it empty.
  • Object Name Prefix: a folder name inside the bucket, such as kopia-omarchy/. With one prefix per computer, one bucket can hold several backups. Kopia’s docs say to end the prefix with a slash if you want it to act as a folder.

The Access Key ID shows in plain text in this form, so keep it out of screenshots you share. The secret shows only as dots.

Click Next. KopiaUI checks the details with e2, which took about three seconds for us. Since nothing is stored under that prefix yet, it offers to create a new repository. If the prefix already holds a Kopia repository, you see Connect To Repository instead.

Set the repository password

The Create New Repository page asks for the repository password twice. This password encrypts everything Kopia stores in the bucket. Lose it, and nobody can read the backup, you included: there is no reset. Save it in your password manager now, next to the e2 keys.

Click Show Advanced Options to see how the repository is built. The encryption is AES256-GCM-HMAC-SHA256, marked recommended, with BLAKE2B-256-128 as the hash and DYNAMIC-4M-BUZHASH as the splitter. Leave the defaults as they are.

KopiaUI's Create New Repository page with both password fields filled with dots and the advanced options open, showing Encryption AES256-GCM-HMAC-SHA256, Hash Algorithm BLAKE2B-256-128 and Splitter DYNAMIC-4M-BUZHASH

Click Create Repository. A few seconds later the Snapshots page opens with an empty list. KopiaUI remembers the password on this computer, in ~/.config/kopia/repository.config.kopia-password, a file only your user can read. That is what lets scheduled backups run without asking you.

Back up the home folder

Click New Snapshot and type the path of your home folder, such as /home/yourname (ours was /home/demo). Below the path is the policy for that folder, in sections that open one at a time. Set three of them before the first backup.

Files. Open the section, click in the Defined box next to Ignore Files, and type one folder per line. We used two:

.cache
.local/share/mise

.cache is where apps keep data they can rebuild. .local/share/mise holds programming tools that mise installed and can install again. Together, those two folders held about 10 GB on our machine that did not need to go to the cloud. The Effective column shows the rules that apply. Kopia also skips any cache folder marked with a CACHEDIR.TAG file by default.

KopiaUI's New Snapshot page for /home/demo with the Files section open, showing .cache and .local/share/mise in the Defined ignore box and both in the Effective column

Compression. Compression is off unless a policy turns it on. In the Defined list, pick zstd-fastest. It is the quickest of the zstd settings, and it shrinks documents and text before they go up. Photos and videos are already compressed, so they shrink little. The list still has lz4, marked “NOT RECOMMENDED”; skip it.

Scheduling. Snapshot Frequency runs from every 10 minutes to every 12 hours. Pick every hour. Its help text says it has “no effect outside of the server mode”, which means the schedule runs only while KopiaUI (or kopia server) is running.

Click Estimate to count what the snapshot will hold, with the ignored folders left out. Our home folder came to 659.6 MB in 10,568 files.

Click Snapshot Now. The first snapshot takes the longest, because Kopia uploads everything. How long it takes depends on your upload speed; our 660 MB took between about 15 seconds and a minute and a half on different runs. When it finishes, the row shows the size, the time of the last snapshot, and Next Snapshot. Hourly snapshots run on the hour, so ours said “in 12 minutes”.

KopiaUI's Snapshots list with one row for /home/demo, Size 660.5 MB, Last Snapshot a few seconds ago, and Next Snapshot in 12 minutes

Start KopiaUI when you log in

To keep it running, have it start at login. Point at the arrow at the right of the bar if the cloud icon is not showing, then right-click the cloud icon. A click on the arrow opens the Tray icons panel instead, where Pin keeps the Kopia icon in view. If the first right click shows only the name, right-click again. Click Launch At Startup. Open the menu again, and a check mark sits next to the item.

The Kopia tray menu open under the cloud icon in Omarchy's bar, with My Repository, Connect To Another Repo, Check For Updates Now, a check mark next to Launch At Startup, Notifications, and Quit

The setting writes ~/.config/autostart/kopia-ui.desktop, and Omarchy’s Hyprland session starts that entry at each login. We rebooted to test it: KopiaUI and its background server came back by themselves, so the hourly schedule kept running. The tray icon did not come back after the reboot on our Omarchy machine, although the backups ran.

To close KopiaUI, use Quit in this tray menu. Closing the window leaves it running in the tray, which is what you want for the schedule.

Run a second backup

To see what a second backup sends, we added three garden photos to ~/Pictures/Garden and a line to a note. Snapshot Now ran again, and this time Kopia uploaded only the new photos and the edited note. The second snapshot finished in about three seconds, and the size went from 660.5 MB to 661.4 MB.

Kopia splits files into chunks and stores each chunk once, so a changed file costs only its new chunks, and a file it has seen before costs nothing. That is why the hourly runs stay quick after the first one.

Read the snapshot history and retention

Click the home folder path in the list to see every snapshot of it. The colored tags in the Retention column show which rule keeps each snapshot: latest, hourly, daily, weekly, monthly, and annual. A new snapshot carries every tag at first, since it is the newest of its hour, day, week, month, and year.

KopiaUI showing 2 snapshots of demo@omarchy:/home/demo; the newer one at 9:50:37 PM has the tags latest-1, hourly-1, daily-1, weekly-1, monthly-1 and annual-1, and the older one at 9:48:08 PM has latest-2

By default, Kopia keeps the 10 latest snapshots, 48 hourly, 7 daily, 4 weekly, 24 monthly, and 3 annual ones. A snapshot stays as long as any rule still wants it, and Kopia deletes the rest. To change the counts, open Snapshot Retention in the folder’s policy (the Policy button on its row).

Get one file back

In the history, click a snapshot’s Start time. The folders inside work like a file browser: click a folder to open it, and use the path at the top to go back. Our newest snapshot held the garden photos we had just added.

Click a file name to download that one file. A save dialog opens in ~/Downloads with the name filled in, and Save writes it there. KopiaUI shows no message after the save. To check it, press super shift f for the Files app, open Downloads, and double-click the photo to open it in the image viewer.

Look through a whole folder

Open the folder you want in the snapshot (we used Pictures/Lakes-and-Waterfalls) and click Mount as Local Filesystem. Kopia shows the snapshot as a normal folder at /tmp/kopia-mount followed by a number. Click Browse, and Files opens that folder beside KopiaUI, with thumbnails. You can look through the photos before you restore anything. Mounting needs FUSE 3, which Omarchy installs by default.

KopiaUI on the left with Unmount, Browse and the mount path /tmp/kopia-mount4265173313 for Pictures/Lakes-and-Waterfalls, and Files on the right showing thumbnails of the lake and autumn photos inside the mounted snapshot

When you are done, close Files first, then click Unmount. With Files still open on the mount, the folder is busy and the unmount fails.

Restore a folder

Click Restore Files & Directories. The Destination field asks where the folder goes. Type a new folder inside your home folder, such as /home/yourname/Restored/Lakes-and-Waterfalls, so nothing that exists is touched. Kopia creates the folder. A name that ends in .zip or .tar restores into an archive file instead.

Uncheck Restore File Permissions. With it checked, our restored folder came back read-only and Files drew a lock badge on it. With it unchecked, the folder is a normal one you can edit. The Overwrite Files, Overwrite Directories, and Overwrite Symbolic Links boxes start unchecked, so Kopia does not replace a file that is already there.

KopiaUI's Restore page with the destination /home/demo/Restored/Lakes-and-Waterfalls, Restore File Permissions unchecked, Restore File Ownership and Modification Time checked, and the Overwrite Files and Overwrite Directories boxes unchecked

Scroll down and click Begin Restore, then Go To Restore Task. Ours listed 34 files and 31.5 MB restored. In Files, the new folder held the lake and waterfall photos again, thumbnails and all.

KopiaUI's restore task on the left reporting Task succeeded, Restored Bytes 31.5 MB, Restored Directories 1 and Restored Files 34, and Files on the right showing the restored lake and autumn photos in Home, Restored, Lakes-and-Waterfalls

The same jobs with the kopia command

The kopia command from kopia-bin uses the repository connection that KopiaUI set up, so it works as soon as KopiaUI has connected. These are the command forms from Kopia’s command reference:

# Back up the home folder now, with its policy
kopia snapshot create ~

# List its snapshots; the k... value in each row is the snapshot's root ID
kopia snapshot list ~

# Restore one folder from a snapshot to a new folder
kopia restore <root-id>/Pictures/Lakes-and-Waterfalls ~/Restored/Lakes-and-Waterfalls \
  --skip-permissions --no-overwrite-files --no-overwrite-directories

# Mount a snapshot as a folder; press Ctrl+C to unmount
mkdir -p ~/kopia-mnt
kopia mount <root-id> ~/kopia-mnt

kopia restore overwrites existing files by default, so keep the --no-overwrite flags when you restore next to files you want to keep. The command has no scheduler of its own: hourly snapshots need KopiaUI or kopia server running. If you use only the command, run kopia snapshot create --all from a systemd timer or cron job instead.

Troubleshooting

Next fails with “The Access Key Id you provided does not exist in our records”. The Access Key ID field holds the wrong text. Clear it, paste the ID again from your password manager, and check that the key was made for the same region as the endpoint.

The wizard says Connect To Repository instead of Create New Repository. The prefix already holds a Kopia repository. Type a new prefix to start fresh, or connect with that repository’s password.

The tray menu does not open. A left click shows only the name. Right-click the cloud icon, and right-click again if the first one shows only the tooltip.

Scheduled snapshots did not run. KopiaUI was not running. Check for a check mark next to Launch At Startup in the tray menu, and look for ~/.config/autostart/kopia-ui.desktop. If the tray icon is missing after a reboot, KopiaUI can still be running in the background; the Last Snapshot column shows whether the hourly runs happened.

The restored folder is read-only. Restore File Permissions was checked. Restore again with it unchecked, or make the folder yours to edit with chmod -R u+w ~/Restored.

KopiaUI will not quit. Use Quit in the tray menu. A forced kill -9 left an Omarchy “Process crashed” notification on our screen until we dismissed it.

Test your restores

Test a restore once in a while, so you know the password and the keys still work before you need them.

Kopia backs up your files, not the system. To roll Omarchy itself back after a bad update, see our guide to Omarchy snapshots and Limine rollback. For other backup tools and services on Linux, see our online backup guide.