Added license and readme

This commit is contained in:
2026-01-14 14:33:04 -06:00
parent 15ac19d32d
commit dd618ecec7
4 changed files with 759 additions and 0 deletions

View File

@@ -1,5 +1,25 @@
#!/usr/bin/env bash
###################################################################################
## backup - a script to automate backup and pruning of borg repositories
## Copyright (C) 2026 wytch
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU Affero General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU Affero General Public License for more details.
##
## You should have received a copy of the GNU Affero General Public License
## along with this program. If not, see <https://www.gnu.org/licenses/>.
##
#################################################################################
# Check if running as root
if [ "$EUID" -ne 0 ]; then
printf "Error: This script must be run as root (or via sudo).\n"