From 8521c86293860b8671d8f5b987940cc46cf0ad95 Mon Sep 17 00:00:00 2001 From: Kristian Skov Date: Sat, 18 Jan 2025 12:42:26 +0100 Subject: [PATCH 1/6] Added UrBackup script --- ct/urbackupserver.sh | 49 +++++++++++++++++++++++++++++++ install/urbackupserver-install.sh | 36 +++++++++++++++++++++++ json/urbackupserver.json | 39 ++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 ct/urbackupserver.sh create mode 100644 install/urbackupserver-install.sh create mode 100644 json/urbackupserver.json diff --git a/ct/urbackupserver.sh b/ct/urbackupserver.sh new file mode 100644 index 00000000..616dc6f7 --- /dev/null +++ b/ct/urbackupserver.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash +source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/refs/heads/main/misc/build.func) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: Kristian Skov +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://www.urbackup.org/ + +# App Default Values +APP="UrBackup Server" +var_tags="web" +var_cpu="1" +var_ram="1024" +var_disk="16" +var_os="ubuntu" +var_version="24.04" +var_unprivileged="0" + +# App Output & Base Settings +header_info "$APP" +base_settings + +# Core +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if [[ ! -d /var/urbackup ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Updating ${APP} LXC" + apt-get update &>/dev/null + apt-get -y upgrade &>/dev/null + msg_ok "Updated Successfully" + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW} Access it using the following IP:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}${IP}:55414${CL}" diff --git a/install/urbackupserver-install.sh b/install/urbackupserver-install.sh new file mode 100644 index 00000000..99f722c6 --- /dev/null +++ b/install/urbackupserver-install.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2025 community-scripts ORG +# Author: Kristian Skov +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE + +source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt update -y +$STD apt-get install -y \ + curl \ + gnupg \ + coreutils +msg_ok "Installed Dependencies" + +msg_info "Installing UrBackup Server" +$STD echo 'deb http://download.opensuse.org/repositories/home:/uroni/xUbuntu_24.04/ /' | $STD tee /etc/apt/sources.list.d/home:uroni.list +curl -fsSL https://download.opensuse.org/repositories/home:uroni/xUbuntu_24.04/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/home_uroni.gpg > /dev/null +$STD apt update -y +$STD apt install -y urbackup-server +msg_ok "UrBackup Server Installed" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned" diff --git a/json/urbackupserver.json b/json/urbackupserver.json new file mode 100644 index 00000000..a6665d2b --- /dev/null +++ b/json/urbackupserver.json @@ -0,0 +1,39 @@ +{ + "name":"UrBackup Server", + "slug":"urbackupserver", + "categories":[ + 16 + ], + "date_created":"2025-01-18", + "type":"ct", + "updateable":true, + "privileged":true, + "interface_port":55414, + "documentation":"https://www.urbackup.org/documentation.html", + "website":"https://www.urbackup.org/", + "logo":"https://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Microsoft_.NET_logo.svg/456px-Microsoft_.NET_logo.svg.png", + "description":"Sets up a UrBackup server so you can automatically back up clients.", + "install_methods":[ + { + "type":"default", + "script":"ct/urbackupserver.sh", + "resources":{ + "cpu":1, + "ram":1024, + "hdd":16, + "os":"Ubuntu", + "version":"24.04" + } + } + ], + "default_credentials":{ + "username":null, + "password":null + }, + "notes":[ + { + "text":"You probably want to drastically extend the storage space to fit whatever clients you want to back up", + "type":"info" + } + ] +} From 2727cf5e4d41e895baba71bd4509970360e7eaba Mon Sep 17 00:00:00 2001 From: Kristian Skov Date: Sat, 18 Jan 2025 12:47:41 +0100 Subject: [PATCH 2/6] Fixed icon --- install/urbackupserver-install.sh | 2 +- json/urbackupserver.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/urbackupserver-install.sh b/install/urbackupserver-install.sh index 99f722c6..2cab56b4 100644 --- a/install/urbackupserver-install.sh +++ b/install/urbackupserver-install.sh @@ -21,7 +21,7 @@ $STD apt-get install -y \ msg_ok "Installed Dependencies" msg_info "Installing UrBackup Server" -$STD echo 'deb http://download.opensuse.org/repositories/home:/uroni/xUbuntu_24.04/ /' | $STD tee /etc/apt/sources.list.d/home:uroni.list +echo 'deb http://download.opensuse.org/repositories/home:/uroni/xUbuntu_24.04/ /' | $STD tee /etc/apt/sources.list.d/home:uroni.list curl -fsSL https://download.opensuse.org/repositories/home:uroni/xUbuntu_24.04/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/home_uroni.gpg > /dev/null $STD apt update -y $STD apt install -y urbackup-server diff --git a/json/urbackupserver.json b/json/urbackupserver.json index a6665d2b..e0cd64e7 100644 --- a/json/urbackupserver.json +++ b/json/urbackupserver.json @@ -11,7 +11,7 @@ "interface_port":55414, "documentation":"https://www.urbackup.org/documentation.html", "website":"https://www.urbackup.org/", - "logo":"https://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Microsoft_.NET_logo.svg/456px-Microsoft_.NET_logo.svg.png", + "logo":"https://forums.urbackup.org/uploads/default/original/2X/1/1051fd74d1dcbc3ad4220b43007fcab5287272b0.png", "description":"Sets up a UrBackup server so you can automatically back up clients.", "install_methods":[ { From 8859251f3ba9ac0a068fc79cd684b414f06830f6 Mon Sep 17 00:00:00 2001 From: Kristian Skov Date: Sat, 18 Jan 2025 13:12:45 +0100 Subject: [PATCH 3/6] Update urbackupserver-install.sh --- install/urbackupserver-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/urbackupserver-install.sh b/install/urbackupserver-install.sh index 2cab56b4..b299a5eb 100644 --- a/install/urbackupserver-install.sh +++ b/install/urbackupserver-install.sh @@ -24,7 +24,7 @@ msg_info "Installing UrBackup Server" echo 'deb http://download.opensuse.org/repositories/home:/uroni/xUbuntu_24.04/ /' | $STD tee /etc/apt/sources.list.d/home:uroni.list curl -fsSL https://download.opensuse.org/repositories/home:uroni/xUbuntu_24.04/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/home_uroni.gpg > /dev/null $STD apt update -y -$STD apt install -y urbackup-server +apt install -y -qq urbackup-server msg_ok "UrBackup Server Installed" motd_ssh From 00556fc3e29fb39b193a15236e0be98e7e332915 Mon Sep 17 00:00:00 2001 From: Kristian Skov Date: Sun, 19 Jan 2025 12:38:55 +0100 Subject: [PATCH 4/6] Update install/urbackupserver-install.sh Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> --- install/urbackupserver-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/urbackupserver-install.sh b/install/urbackupserver-install.sh index b299a5eb..a2fa3f4e 100644 --- a/install/urbackupserver-install.sh +++ b/install/urbackupserver-install.sh @@ -13,9 +13,10 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt update -y $STD apt-get install -y \ curl \ + sudo \ + mc \ gnupg \ coreutils msg_ok "Installed Dependencies" From c7f56ccf5fc65e4c24183a37d1cfae8c78ef1a69 Mon Sep 17 00:00:00 2001 From: Kristian Skov Date: Sun, 19 Jan 2025 12:39:02 +0100 Subject: [PATCH 5/6] Update install/urbackupserver-install.sh Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> --- install/urbackupserver-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/urbackupserver-install.sh b/install/urbackupserver-install.sh index a2fa3f4e..aa754e33 100644 --- a/install/urbackupserver-install.sh +++ b/install/urbackupserver-install.sh @@ -26,7 +26,7 @@ echo 'deb http://download.opensuse.org/repositories/home:/uroni/xUbuntu_24.04/ / curl -fsSL https://download.opensuse.org/repositories/home:uroni/xUbuntu_24.04/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/home_uroni.gpg > /dev/null $STD apt update -y apt install -y -qq urbackup-server -msg_ok "UrBackup Server Installed" +msg_ok "Installed UrBackup Server" motd_ssh customize From 75e22f58d8443bcc73735237ea58404353ac8d3c Mon Sep 17 00:00:00 2001 From: Kristian Skov Date: Sun, 19 Jan 2025 12:39:09 +0100 Subject: [PATCH 6/6] Update json/urbackupserver.json Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> --- json/urbackupserver.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json/urbackupserver.json b/json/urbackupserver.json index e0cd64e7..1ac5f79e 100644 --- a/json/urbackupserver.json +++ b/json/urbackupserver.json @@ -12,7 +12,7 @@ "documentation":"https://www.urbackup.org/documentation.html", "website":"https://www.urbackup.org/", "logo":"https://forums.urbackup.org/uploads/default/original/2X/1/1051fd74d1dcbc3ad4220b43007fcab5287272b0.png", - "description":"Sets up a UrBackup server so you can automatically back up clients.", + "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":[ { "type":"default",