From b8ed5e39877b51f615546f5826049342febd3b4c Mon Sep 17 00:00:00 2001 From: Kristian Skov Date: Mon, 20 Jan 2025 14:02:43 +0100 Subject: [PATCH] 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 <73236783+michelroegl-brunner@users.noreply.github.com> * Update install/urbackupserver-install.sh Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> * Update json/urbackupserver.json Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> * Changed from ubuntu to debian * Update urbackupserver.json --------- Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com> --- ct/urbackupserver.sh | 49 +++++++++++++++++++++++++++++++ install/urbackupserver-install.sh | 37 +++++++++++++++++++++++ json/urbackupserver.json | 39 ++++++++++++++++++++++++ 3 files changed, 125 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..7ebcffb8 --- /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="debian" +var_version="12" +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..120e1b93 --- /dev/null +++ b/install/urbackupserver-install.sh @@ -0,0 +1,37 @@ +#!/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-get install -y \ + curl \ + sudo \ + mc \ + gnupg \ + coreutils +msg_ok "Installed Dependencies" + +msg_info "Installing UrBackup Server" +curl -fsSL https://download.opensuse.org/repositories/home:uroni/Debian_12/Release.key | gpg --dearmor >/etc/apt/trusted.gpg.d/home_uroni.gpg +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 +$STD apt-get update -y +apt-get install -y -qq urbackup-server +msg_ok "Installed UrBackup Server" + +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..14c35bfb --- /dev/null +++ b/json/urbackupserver.json @@ -0,0 +1,39 @@ +{ + "name":"UrBackup Server", + "slug":"urbackupserver", + "categories":[ + 7 + ], + "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://forums.urbackup.org/uploads/default/original/2X/1/1051fd74d1dcbc3ad4220b43007fcab5287272b0.png", + "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", + "script":"ct/urbackupserver.sh", + "resources":{ + "cpu":1, + "ram":1024, + "hdd":16, + "os":"Debian", + "version":"12" + } + } + ], + "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" + } + ] +}