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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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/
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
}

View File

@ -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": [

View File

@ -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 <<EOF | sudo tee /etc/apt/sources.list.d/home-uroni.sources >/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