From 12e8ca6a95245eb6dbfa9dffaaa4a960645a2013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Wed, 10 Dec 2025 18:40:26 +0100 Subject: [PATCH] Refactor: UrBackup Server (#9837) --- ct/urbackupserver.sh | 4 ++-- frontend/public/json/urbackupserver.json | 2 +- install/urbackupserver-install.sh | 24 ++++++++++-------------- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/ct/urbackupserver.sh b/ct/urbackupserver.sh index 023d13fa1..866fa5647 100644 --- a/ct/urbackupserver.sh +++ b/ct/urbackupserver.sh @@ -6,7 +6,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV # Source: https://www.urbackup.org/ APP="UrBackup Server" -var_tags="${var_tags:-web}" +var_tags="${var_tags:-backup}" var_cpu="${var_cpu:-1}" var_ram="${var_ram:-1024}" var_disk="${var_disk:-16}" @@ -29,7 +29,7 @@ function update_script() { fi msg_info "Updating ${APP} LXC" $STD apt update - $STD apt -y upgrade + $STD apt upgrade -y msg_ok "Updated successfully!" exit } diff --git a/frontend/public/json/urbackupserver.json b/frontend/public/json/urbackupserver.json index 419dbcfad..0d0751394 100644 --- a/frontend/public/json/urbackupserver.json +++ b/frontend/public/json/urbackupserver.json @@ -11,7 +11,7 @@ "interface_port": 55414, "documentation": "https://www.urbackup.org/documentation.html", "website": "https://www.urbackup.org/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@master/webp/urbackup.webp", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/urbackup.webp", "config_path": "", "description": "URBackup is an open-source backup software designed for creating reliable and efficient backups of both files and system images. It supports client-server architecture, allowing you to back up multiple computers to a central server. It offers features such as incremental backups, real-time file backup, and scheduling, ensuring minimal data loss and quick recovery", "install_methods": [ diff --git a/install/urbackupserver-install.sh b/install/urbackupserver-install.sh index a62b263a2..1d687f6d4 100644 --- a/install/urbackupserver-install.sh +++ b/install/urbackupserver-install.sh @@ -14,25 +14,21 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt install -y \ - coreutils \ - debconf-utils +$STD apt install -y debconf-utils msg_ok "Installed Dependencies" -msg_info "Installing UrBackup Server" -curl -fsSL https://download.opensuse.org/repositories/home:uroni/Debian_12/Release.key | gpg --dearmor -o /usr/share/keyrings/home-uroni.gpg -cat </dev/null -Types: deb -URIs: http://download.opensuse.org/repositories/home:/uroni/Debian_12/ -Suites: ./ -Components: -Signed-By: /usr/share/keyrings/home-uroni.gpg -EOF -$STD apt update +setup_deb822_repo \ + "urbackup" \ + "https://download.opensuse.org/repositories/home:uroni/Debian_13/Release.key" \ + "http://download.opensuse.org/repositories/home:/uroni/Debian_13/" \ + "./" \ + "" + +msg_info "Setting up UrBackup Server" mkdir -p /opt/urbackup/backups echo "urbackup-server urbackup/backuppath string /opt/urbackup/backups" | debconf-set-selections $STD apt install -y urbackup-server -msg_ok "Installed UrBackup Server" +msg_ok "Setup UrBackup Server" motd_ssh customize