aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/git-backup/LICENSE8
-rw-r--r--scripts/git-backup/README10
-rwxr-xr-xscripts/git-backup/backup.sh21
3 files changed, 0 insertions, 39 deletions
diff --git a/scripts/git-backup/LICENSE b/scripts/git-backup/LICENSE
deleted file mode 100644
index 18a7e6b..0000000
--- a/scripts/git-backup/LICENSE
+++ /dev/null
@@ -1,8 +0,0 @@
-The MIT License (MIT)
-Copyright © 2025 c41ro
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/scripts/git-backup/README b/scripts/git-backup/README
deleted file mode 100644
index aacf691..0000000
--- a/scripts/git-backup/README
+++ /dev/null
@@ -1,10 +0,0 @@
-* git-backup - backup script
-
-This simply copies all git repositories from my git forge (git.c41ro.win) to my local server.
-
-1. Drop this script in /opt/git-backup/ and make it executable.
-2. Create a new ssh keypair and put the private key under /opt/git-backup/ssh-key (this file needs to have 0600 permissions).
-3. Add a new cron job like this `@daily /opt/git-backup/backup.sh >> /opt/git-backup/backup.sh`.
-
-
-License: It's like 10 lines bro. MIT if you must.
diff --git a/scripts/git-backup/backup.sh b/scripts/git-backup/backup.sh
deleted file mode 100755
index 320cb3b..0000000
--- a/scripts/git-backup/backup.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/bash
-
-# backup.sh - backup git repositories from somewhere else to local
-
-BACKUP_TIME="$(date +'%Y-%m-%dT%H:%M:%S')"
-BACKUP_DIR="/opt/git-backup/backup"
-
-REPO_LOCATION="/opt/soft-serve/repos"
-
-SSH_KEY_LOCATION="/opt/git-backup/ssh-key"
-SSH_USER="bossing"
-SSH_HOST="c41ro.win"
-SSH_PORT="47"
-
-echo "Starting backup at $BACKUP_TIME"
-
-mkdir -p "$BACKUP_DIR/$BACKUP_TIME"
-
-scp -i "$SSH_KEY_LOCATION" -P "$SSH_PORT" -r "$SSH_USER"@"$SSH_HOST":"$REPO_LOCATION"/* "$BACKUP_DIR/$BACKUP_TIME"
-
-echo "Backup finished at $(date +'%Y-%m-%dT%H:%M:%S')"