Skip to content

Commit 12e8ca6

Browse files
authored
Refactor: UrBackup Server (#9837)
1 parent b9967cb commit 12e8ca6

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

ct/urbackupserver.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
66
# Source: https://www.urbackup.org/
77

88
APP="UrBackup Server"
9-
var_tags="${var_tags:-web}"
9+
var_tags="${var_tags:-backup}"
1010
var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-1024}"
1212
var_disk="${var_disk:-16}"
@@ -29,7 +29,7 @@ function update_script() {
2929
fi
3030
msg_info "Updating ${APP} LXC"
3131
$STD apt update
32-
$STD apt -y upgrade
32+
$STD apt upgrade -y
3333
msg_ok "Updated successfully!"
3434
exit
3535
}

frontend/public/json/urbackupserver.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"interface_port": 55414,
1212
"documentation": "https://www.urbackup.org/documentation.html",
1313
"website": "https://www.urbackup.org/",
14-
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@master/webp/urbackup.webp",
14+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/urbackup.webp",
1515
"config_path": "",
1616
"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",
1717
"install_methods": [

install/urbackupserver-install.sh

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,21 @@ network_check
1414
update_os
1515

1616
msg_info "Installing Dependencies"
17-
$STD apt install -y \
18-
coreutils \
19-
debconf-utils
17+
$STD apt install -y debconf-utils
2018
msg_ok "Installed Dependencies"
2119

22-
msg_info "Installing UrBackup Server"
23-
curl -fsSL https://download.opensuse.org/repositories/home:uroni/Debian_12/Release.key | gpg --dearmor -o /usr/share/keyrings/home-uroni.gpg
24-
cat <<EOF | sudo tee /etc/apt/sources.list.d/home-uroni.sources >/dev/null
25-
Types: deb
26-
URIs: http://download.opensuse.org/repositories/home:/uroni/Debian_12/
27-
Suites: ./
28-
Components:
29-
Signed-By: /usr/share/keyrings/home-uroni.gpg
30-
EOF
31-
$STD apt update
20+
setup_deb822_repo \
21+
"urbackup" \
22+
"https://download.opensuse.org/repositories/home:uroni/Debian_13/Release.key" \
23+
"http://download.opensuse.org/repositories/home:/uroni/Debian_13/" \
24+
"./" \
25+
""
26+
27+
msg_info "Setting up UrBackup Server"
3228
mkdir -p /opt/urbackup/backups
3329
echo "urbackup-server urbackup/backuppath string /opt/urbackup/backups" | debconf-set-selections
3430
$STD apt install -y urbackup-server
35-
msg_ok "Installed UrBackup Server"
31+
msg_ok "Setup UrBackup Server"
3632

3733
motd_ssh
3834
customize

0 commit comments

Comments
 (0)