# Server

# Restoring Nginx Proxy Manager from Backup

#   


This guide walks you through restoring your **Nginx Proxy Manager (NPM)** Docker container from a backup on an OpenMediaVault system.

<div id="bkmrk--1">---

</div>## 🔧 Prerequisites

- OpenMediaVault system with Docker and Docker Compose installed
- Backups of the following folders:
    
    
    - `/srv/dev-disk-by-uuid-2cae64a3-155c-4238-8a9d-99515c6f200f/Muninn/2025backup/nginx-proxy-manager-data`
    - `/srv/dev-disk-by-uuid-2cae64a3-155c-4238-8a9d-99515c6f200f/Muninn/2025backup/nginx-proxy-manager-letsencrypt`
- Target restore directory:
    
    
    - `/srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/nginx/`

<div id="bkmrk--2">---

</div>## 📁 Folder Structure

Ensure the target directory structure looks like this:

```
/srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/
└── nginx/
    ├── nginx-proxy-manager-data/
    └── nginx-proxy-manager-letsencrypt/
```

<div id="bkmrk--3">---

</div>## 📦 Working Docker Compose File

Place the following `docker-compose.yml` in the `/srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/nginx/` folder:

```
version: '3'
services:
  nginx-proxy-manager:
    image: jc21/nginx-proxy-manager:latest
    container_name: nginx-proxy-manager
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - ./nginx-proxy-manager-data:/data
      - ./nginx-proxy-manager-letsencrypt:/etc/letsencrypt
```

<div id="bkmrk--4">---

</div>## 📂 Restore Backups

Use the following commands to copy your backup data into the live configuration folder:

```
# letsencrypt
sudo cp -a /srv/dev-disk-by-uuid-2cae64a3-155c-4238-8a9d-99515c6f200f/Muninn/2025backup/nginx-proxy-manager-letsencrypt/. \
  /srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/nginx/nginx-proxy-manager-letsencrypt/

# data
sudo cp -a /srv/dev-disk-by-uuid-2cae64a3-155c-4238-8a9d-99515c6f200f/Muninn/2025backup/nginx-proxy-manager-data/. \
  /srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/nginx/nginx-proxy-manager-data/
```

Ensure trailing `/.` is used to copy **contents** only.

<div id="bkmrk--5">---

</div>## 🚀 Start Container

Once restored:

```
cd /srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/nginx/
sudo docker compose up -d
```

<div id="bkmrk--6">---

</div>## 🧪 Troubleshooting

### ❌ Can't create network

```
Error: could not find an available, non-overlapping IPv4 address pool
```

**Fix:**

```
sudo docker network prune
```

### ❌ Container fails with alias error

```
Error: network-scoped alias is supported only for user-defined networks
```

**Fix:** Define and use a custom bridge network:

```
sudo docker network create nginx_network
```

Then add to `docker-compose.yml`:

```
networks:
  default:
    external:
      name: nginx_network
```

### ❌ Can't access web interface

- Check container logs:

```
sudo docker logs nginx-proxy-manager
```

- Ensure ports are published correctly (`80`, `81`, `443`)
- Check firewall / router rules

### ❌ SSL Renewal Errors

```
expected .../cert.pem to be a symlink
```

These indicate broken or partial LetsEncrypt data. Copy the backup of the letsencrypt folder and ensure correct permissions.

<div id="bkmrk--7">---

</div>## ✅ Login Defaults

Once online, access via:

```
http://[host-IP]:81
```

Default credentials:

```
Email:    admin@example.com
Password: changeme
```

<div id="bkmrk--8">---

</div>## 📌 Notes

- Always stop the container before copying data
- Use `docker compose down` if needed before restoring
- Check `database.sqlite` timestamp to confirm restoration

<div id="bkmrk--9">---

</div>## 🔁 Optional: Full Refresh

If issues persist, delete the container and volumes, then redeploy and restore the backups fresh:

```
sudo docker compose down
sudo rm -rf nginx-proxy-manager-data nginx-proxy-manager-letsencrypt
# Then restore backups and re-up
```

<div id="bkmrk--10">---

</div>For any further help, ensure Docker is up-to-date and Portainer (if used) is refreshed to reflect changes.

# Backup Guide - Homarr -  (OpenMediaVault/Docker)

#   


This guide documents how to safely back up your **Homarr** instance running as a Docker container on OpenMediaVault.

<div id="bkmrk-">---

</div>## 🔧 Purpose

Backing up your Homarr configuration ensures that all your dashboard settings and app tiles can be restored after a system wipe, migration, or rebuild.

<div id="bkmrk--1">---

</div>## 🔢 Assumptions

- Homarr container is deployed via Docker Compose
- Docker is installed and running
- Your Homarr folder resides in:
    
    ```
    ```

/srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/homarr

```
- You want to store the backup in:
```

/srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/

```

---

## 🚀 Backup Process

### ✅ Step 1: Stop the Container
To ensure a consistent backup, stop the running Homarr container first:
```bash
sudo docker stop homarr
```

<div id="bkmrk--2">---

</div>### ✅ Step 2: Install Zip (if needed)

If you haven't used the `zip` command before, you might need to install it:

```
sudo apt update
sudo apt install zip -y
```

<div id="bkmrk--3">---

</div>### ✅ Step 3: Create the Backup

Run this command to zip the entire Homarr folder:

```
sudo zip -r /srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/homarr-full-backup.zip \
  /srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/homarr
```

> ⚠️ Ensure you're zipping the **entire folder**, not just the `appdata` directory.

<div id="bkmrk--4">---

</div>### ✅ Step 4: Start Homarr Again

Once the backup is complete, start your container again:

```
sudo docker start homarr
```

<div id="bkmrk--5">---

</div>## 📁 Result

You will now have a backup file:

```
homarr-full-backup.zip
```

Located in:

```
/srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/
```

This file contains everything inside your Homarr directory.

<div id="bkmrk--6">---

</div>## ✉️ Notes

- The same process can be used to back up other containers by replacing the folder and container name.
- You can also schedule this with `cron` for automatic backups.

<div id="bkmrk--7">---

</div>## 🔄 To Restore

To restore a backup:

```
sudo unzip homarr-full-backup.zip -d /srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG/
```

Then bring the container up with Docker Compose as usual.

# 1. ------------ To Do -----------

Zip/back up - Radarr, sonarr, sabnzbd, qbittorrent.  
  
Re up - Mesh central

Tidy up Google drive and make room for config backups.

# General info to sort.

[![image.png](https://bookstack.thecartwrights.nz/uploads/images/gallery/2025-05/scaled-1680-/0Gsimage.png)](https://bookstack.thecartwrights.nz/uploads/images/gallery/2025-05/0Gsimage.png)

[![image.png](https://bookstack.thecartwrights.nz/uploads/images/gallery/2025-05/scaled-1680-/ejwimage.png)](https://bookstack.thecartwrights.nz/uploads/images/gallery/2025-05/ejwimage.png)

HELconfig -&gt; /srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/HELCONFIG  
HoopHearth -&gt; /srv/dev-disk-by-uuid-43b1e164-58ce-4f60-9735-1288c124a570  
Media -&gt; /srv/dev-disk-by-uuid-2f363d7e-9e95-45d3-a00c-165a703258c6/6TBSMB/MEDIA  
Media\_02 -&gt; /srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/MEDIA\_02/tv  
Muninn -&gt; /srv/dev-disk-by-uuid-2cae64a3-155c-4238-a89d-99515c6f200f/Muninn  
NetherWright -&gt; /srv/dev-disk-by-uuid-0338f847-2c4f-4ead-936c-9a1060048a55  
YTTV -&gt; /srv/dev-disk-by-uuid-07338165-b4e5-4c61-8664-dec841070d43/YTTV  
mov -&gt; /srv/dev-disk-by-uuid-b588f7eb-f98f-4e15-b964-25574b92227e/MEDIA\_02/mov  
mov2 -&gt; /srv/dev-disk-by-uuid-ca8224dc-cd97-4f1f-9f1b-04db9c09eb18/newMEDIA/mov2  
movies3 -&gt; /srv/dev-disk-by-uuid-1aef8932-0720-43f9-a493-c4f00007ea54/movies3  
ncdata -&gt; /srv/dev-disk-by-uuid-2f363d7e-9e95-45d3-a00c-165a703258c6/6TBSMB/DATA  
outgoing -&gt; /srv/dev-disk-by-uuid-43b1e164-58ce-4f60-9735-1288c124a570/outgoing  
tv3 -&gt; /srv/dev-disk-by-uuid-3a9e3ba8-6cd0-458b-a676-51848b0dab9e/tv3  
tv4 -&gt; /srv/dev-disk-by-uuid-07338165-b4e5-4c61-8664-dec841070d43/tv4

[![image.png](https://bookstack.thecartwrights.nz/uploads/images/gallery/2025-05/scaled-1680-/maWimage.png)](https://bookstack.thecartwrights.nz/uploads/images/gallery/2025-05/maWimage.png)