Skip to content

Commit b8ed5e3

Browse files
kris701michelroegl-brunnerMickLesk
authored
New Script: UrBackup Server (#1569)
* Added UrBackup script * Fixed icon * Update urbackupserver-install.sh * Update install/urbackupserver-install.sh Co-authored-by: Michel Roegl-Brunner <[email protected]> * Update install/urbackupserver-install.sh Co-authored-by: Michel Roegl-Brunner <[email protected]> * Update json/urbackupserver.json Co-authored-by: Michel Roegl-Brunner <[email protected]> * Changed from ubuntu to debian * Update urbackupserver.json --------- Co-authored-by: Michel Roegl-Brunner <[email protected]> Co-authored-by: CanbiZ <[email protected]>
1 parent 723b8e8 commit b8ed5e3

File tree

3 files changed

+125
-0
lines changed

3 files changed

+125
-0
lines changed

ct/urbackupserver.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env bash
2+
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/refs/heads/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: Kristian Skov
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://www.urbackup.org/
7+
8+
# App Default Values
9+
APP="UrBackup Server"
10+
var_tags="web"
11+
var_cpu="1"
12+
var_ram="1024"
13+
var_disk="16"
14+
var_os="debian"
15+
var_version="12"
16+
var_unprivileged="0"
17+
18+
# App Output & Base Settings
19+
header_info "$APP"
20+
base_settings
21+
22+
# Core
23+
variables
24+
color
25+
catch_errors
26+
27+
function update_script() {
28+
header_info
29+
check_container_storage
30+
check_container_resources
31+
if [[ ! -d /var/urbackup ]]; then
32+
msg_error "No ${APP} Installation Found!"
33+
exit
34+
fi
35+
msg_info "Updating ${APP} LXC"
36+
apt-get update &>/dev/null
37+
apt-get -y upgrade &>/dev/null
38+
msg_ok "Updated Successfully"
39+
exit
40+
}
41+
42+
start
43+
build_container
44+
description
45+
46+
msg_ok "Completed Successfully!\n"
47+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
48+
echo -e "${INFO}${YW} Access it using the following IP:${CL}"
49+
echo -e "${TAB}${GATEWAY}${BGN}${IP}:55414${CL}"

install/urbackupserver-install.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: Kristian Skov
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
7+
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
8+
color
9+
verb_ip6
10+
catch_errors
11+
setting_up_container
12+
network_check
13+
update_os
14+
15+
msg_info "Installing Dependencies"
16+
$STD apt-get install -y \
17+
curl \
18+
sudo \
19+
mc \
20+
gnupg \
21+
coreutils
22+
msg_ok "Installed Dependencies"
23+
24+
msg_info "Installing UrBackup Server"
25+
curl -fsSL https://download.opensuse.org/repositories/home:uroni/Debian_12/Release.key | gpg --dearmor >/etc/apt/trusted.gpg.d/home_uroni.gpg
26+
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/home_uroni.gpg] http://download.opensuse.org/repositories/home:/uroni/Debian_12/ /' >/etc/apt/sources.list.d/home:uroni.list
27+
$STD apt-get update -y
28+
apt-get install -y -qq urbackup-server
29+
msg_ok "Installed UrBackup Server"
30+
31+
motd_ssh
32+
customize
33+
34+
msg_info "Cleaning up"
35+
$STD apt-get -y autoremove
36+
$STD apt-get -y autoclean
37+
msg_ok "Cleaned"

json/urbackupserver.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name":"UrBackup Server",
3+
"slug":"urbackupserver",
4+
"categories":[
5+
7
6+
],
7+
"date_created":"2025-01-18",
8+
"type":"ct",
9+
"updateable":true,
10+
"privileged":true,
11+
"interface_port":55414,
12+
"documentation":"https://www.urbackup.org/documentation.html",
13+
"website":"https://www.urbackup.org/",
14+
"logo":"https://forums.urbackup.org/uploads/default/original/2X/1/1051fd74d1dcbc3ad4220b43007fcab5287272b0.png",
15+
"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",
16+
"install_methods":[
17+
{
18+
"type":"default",
19+
"script":"ct/urbackupserver.sh",
20+
"resources":{
21+
"cpu":1,
22+
"ram":1024,
23+
"hdd":16,
24+
"os":"Debian",
25+
"version":"12"
26+
}
27+
}
28+
],
29+
"default_credentials":{
30+
"username":null,
31+
"password":null
32+
},
33+
"notes":[
34+
{
35+
"text":"You probably want to drastically extend the storage space to fit whatever clients you want to back up",
36+
"type":"info"
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)