Refactor: UrBackup Server (#9837)

This commit is contained in:
Slaviša Arežina
2025-12-10 18:40:26 +01:00
committed by GitHub
parent b9967cb56a
commit 12e8ca6a95
3 changed files with 13 additions and 17 deletions

View File

@ -6,7 +6,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
# Source: https://www.urbackup.org/ # Source: https://www.urbackup.org/
APP="UrBackup Server" APP="UrBackup Server"
var_tags="${var_tags:-web}" var_tags="${var_tags:-backup}"
var_cpu="${var_cpu:-1}" var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}" var_ram="${var_ram:-1024}"
var_disk="${var_disk:-16}" var_disk="${var_disk:-16}"
@ -29,7 +29,7 @@ function update_script() {
fi fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
$STD apt update $STD apt update
$STD apt -y upgrade $STD apt upgrade -y
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
exit exit
} }

View File

@ -11,7 +11,7 @@
"interface_port": 55414, "interface_port": 55414,
"documentation": "https://www.urbackup.org/documentation.html", "documentation": "https://www.urbackup.org/documentation.html",
"website": "https://www.urbackup.org/", "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": "", "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", "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": [ "install_methods": [

View File

@ -14,25 +14,21 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt install -y \ $STD apt install -y debconf-utils
coreutils \
debconf-utils
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing UrBackup Server" setup_deb822_repo \
curl -fsSL https://download.opensuse.org/repositories/home:uroni/Debian_12/Release.key | gpg --dearmor -o /usr/share/keyrings/home-uroni.gpg "urbackup" \
cat <<EOF | sudo tee /etc/apt/sources.list.d/home-uroni.sources >/dev/null "https://download.opensuse.org/repositories/home:uroni/Debian_13/Release.key" \
Types: deb "http://download.opensuse.org/repositories/home:/uroni/Debian_13/" \
URIs: http://download.opensuse.org/repositories/home:/uroni/Debian_12/ "./" \
Suites: ./ ""
Components:
Signed-By: /usr/share/keyrings/home-uroni.gpg msg_info "Setting up UrBackup Server"
EOF
$STD apt update
mkdir -p /opt/urbackup/backups mkdir -p /opt/urbackup/backups
echo "urbackup-server urbackup/backuppath string /opt/urbackup/backups" | debconf-set-selections echo "urbackup-server urbackup/backuppath string /opt/urbackup/backups" | debconf-set-selections
$STD apt install -y urbackup-server $STD apt install -y urbackup-server
msg_ok "Installed UrBackup Server" msg_ok "Setup UrBackup Server"
motd_ssh motd_ssh
customize customize