About backups (PC to NAS)

Hello, everyone.

For security reasons, I’m thinking about setting up automatic backups of my Debian PC to my NAS (running Zima OS).

I’m not quite sure where to start.

First of all: should the backup utility be on the PC or on the NAS?

Next, what should I back up?

Just my data?

Or my entire system?

How do I perform the backup?

What software should I use?

When? At a specific time?

At a specific moment (when the PC shuts down)?

Manually?

What are your opinions/advice?

Thank you.

Respectfully,

Dany.

Translated with DeepL.com (free version)

Based on my personnal experience (and preference), Borg backup is easy to setup and deal with : https://www.borgbackup.org

Both machines need a little install but nothing complicated.

Then, if your prefer having a gui to manage your backups, you can add Borg-ui on your nas : GitHub - karanhudia/borg-ui: Replace complex Borg Backup terminal commands with a beautiful web UI. Create, schedule, and restore backups with just a few clicks. · GitHub

I managed to install BorgBackup on Debian and Zima OS, but I’m having trouble creating an SSH key on Debian (done) and, more importantly, transferring (copying) it to the BorgBackup on Zima OS.

Also, creating a Borg user didn’t go well.

I don’t know where to find my Borg credentials.

Assuming your username is “user” and hostname is “computer”…

Create the key :`
ssh-keygen -t ed25519 -C "BorgBackup user@computer

This key is stored in /home/user/.ssh/id_ed25519.pub

And it is this key that you need to copy inside the Borg container’s " ~/.ssh/authorized_keys" file, you don’t need to create a Borg user on your host.

Like I said, just add Borg-ui to your docker stack, it will probably make it easier to manage this part of the setup :grin:

PS: don’t forget to use a different SSH port than your nas’s

I can create the key, but I can’t copy it to Zima OS, and ChatGPT is giving me bad advice

my pc debian :
alain@sid:~$ ls -lah ~/.ssh
total 52K
drwx------ 2 alain alain 4,0K 3 juin 17:40 .
drwx------ 58 alain alain 12K 3 juin 17:46 ..
-rw------- 1 alain alain 399 3 juin 16:24 borgbackup
-rw-r–r-- 1 alain alain 91 3 juin 16:24 borgbackup.pub
-rw------- 1 alain alain 13K 17 avril 20:04 known_hosts
-rw------- 1 alain alain 12K 17 avril 20:03 known_hosts.old
alain@sid:~$

my nas zima os :
alain@sid:~$ ssh dany@192.168.1.86
dany@192.168.1.86’s password:


(__ )( )( / ) / \ / \ / )
/ / )( / / / \ ( O )_

(
)(__)_)(/_/_/ _/ (___/

─── Welcome to Zima OS, dany ───
Date: Wednesday, June 03, 2026 | Uptime: up 1 hour, 45 minutes

dany@ZimaOS:~ ➜ $ ls -lah ~/.ssh
ls: cannot open directory ‘/DATA/.ssh’: Permission denied
dany@ZimaOS:~ ➜ $ sudo ls -lah ~/.ssh
Password:
total 8.0K
drwx------ 2 root root 4.0K Jun 3 16:33 .
drwxr-xr-x 22 root root 4.0K Jun 3 16:31 ..
-rw------- 1 root root 0 Jun 3 16:33 authorized_keys
dany@ZimaOS:~ ➜ $

I manually entered my key into “authorized_keys,” but Borg still isn’t working.

found .
now all is ok .

Good to know :+1:

Just wanted to add a bit of feedback here because this thread pushed me to test Borg properly on my ZimaCube.

I ended up setting up BorgBackup with borgmatic as the backup engine, and then added Borg UI as the dashboard layer. I have to say, I am really impressed.

What I like about this setup is that it is very clear what is happening:

  • Borg/borgmatic handles the actual encrypted backups
  • Borg UI gives a clean dashboard to view the repositories and archives
  • Repositories can be imported in “Observe Only” mode, so the UI can monitor and browse them without taking over the backup job
  • You can clearly see archive count, storage used, last backup, encryption type, and repository health

In my test I created separate repositories for different backup targets:

zimacube-appdatazimacube-brain

Both are encrypted Borg repositories, and both are visible in Borg UI in Observe Only mode.

The most important part for me was not just creating the backup, but actually testing restore. I created the repo, ran the backup, listed the archive, then restored files into a test folder to confirm the backup was real and usable.

That makes a big difference. A backup is only trusted once a restore has been tested.

I really like this setup. For my use case it feels much stronger and clearer than a basic backup button because I can see exactly:

what is backed upwhere it is storedhow large the archive iswhether the repo is encryptedwhether restore actually works

Borg UI also looks very nice. The dashboard makes it much easier to understand what is going on, especially for users who do not want to manage everything from terminal.

Thanks for pointing this out. I think Borg + borgmatic + Borg UI is a very good option for ZimaOS users who want a more serious backup setup.

2 Likes

What I’m trying to do:

Back up my Debian PC (192.168.1.169 or 192.168.1.83) from the NAS (Borg Backup server) to the Zima OS NAS (HDD) in the following folder:

~/.media/Dany-Main-Storage/Backups-Debian

But I don’t know if that’s possible ? and how ?

For now, I’m using Vorta on my Debian PC, and it works great.

But I don’t know if it’s possible to schedule a backup of the PC to the Zima OS NAS and its hard drives?

here are some photos :





If i understand correctly, you want to make a second copy of your backups (Borg backup server ?) onto your nas… If that’s the case you can simply setup a cron job using rsync.

I’m not sure if I explained myself clearly.

I was able to back up my Debian PC to my NAS—from my Debian PC, that is—using Vorta (also on Debian).

I’d like to do the same thing, but using Borg-Web-UI on a Zima OS Docker container.

The thing is, I don’t think that’s possible.

Yes, you can setup as many backup servers as you want and manage them from a single borg-ui instance… Just not sure it’s worth the effort only to have a copy of your first backup :grin:

I think you are explaining it clearly now.

From the way I understand it, your current working setup is:

Your Debian PC runs Vorta/Borg
Your ZimaOS NAS stores the Borg repository on the HDD
The backup is pushed from the Debian PC to the NAS

That is actually a very good setup.

The important point is that the machine running the backup must be able to see/read the files being backed up. So if Borg is running inside a Docker container on ZimaOS, it can easily back up folders that exist on ZimaOS, but it cannot automatically see the files on your Debian PC unless you first expose/mount those Debian files to the NAS somehow.

So for backing up your Debian PC, I would keep Vorta on the Debian PC and let it push the backup to the ZimaOS NAS. That is the cleaner and simpler direction.

Then Borg UI on ZimaOS can still be useful as a dashboard layer. You can use it to view/monitor the Borg repository stored on the NAS, check archives, size, encryption, and restore testing, but I would not try to make the ZimaOS container “pull” the backup from the Debian PC unless you really want a more advanced setup.

So in simple terms:

Debian PC backup > best done from Debian PC using Vorta/Borg
ZimaOS NAS > best used as the backup storage target
Borg UI on ZimaOS > useful for viewing/managing the repositories

In my opinion, what you already have working with Vorta is probably the right foundation. The next important step is not changing the direction, but confirming that restore works from the NAS repository. A backup is only trusted once a restore has been tested.

Okay.

So I’m scrapping the plan to back up my Debian PC from the NAS.

I’m keeping Vorta on the PC and using it.

But how do you monitor backups on Zima OS using the Docker Borg-Web-UI?

Is that even possible?

Yes, from that Borg UI screen it does look possible.

The “Remote Machines” section is designed for exactly that type of setup. Borg UI can generate or import an SSH key, then use that key to connect to remote machines and manage them.

So there are two possible approaches:

  1. Keep Vorta on the Debian PC and let it push backups to the ZimaOS NAS. Then Borg UI on ZimaOS can inspect the repository if that repository path is mounted into the Borg UI container.
  2. Use Borg UI more directly by adding the Debian PC as a remote machine over SSH. In that case Borg UI needs an SSH key, and the Debian PC must allow that key to log in.

The screenshot below is showing the second method. It is asking you to create or import the SSH key that Borg UI will use for remote connections.

So yes, it appears possible, but the important things to confirm are:

  1. Borg UI can SSH into the Debian PC
  2. The correct folders on the Debian PC are exposed for backup
  3. The Borg repository destination is on the ZimaOS storage
  4. A test backup and test restore both work

Personally, I would still keep Vorta on the Debian PC if that is already working, because it is simpler. But Borg UI does appear to support the more centralised SSH-managed approach too.

Thanks.

I’ll think about it.

For now, I’m using Borg Web UI to check my backups.

For the time being, I’ll leave it at that.

We’ll see about the rest later.

Backup done.

Let me know what you think.

If you’d like me to take it further, we can discuss it.

Like setting up and managing a backup controlled from my NAS to back up my PC (to the NAS)…

Here are a few photos.

PC Debian side :

NAS Zima os side :