From 49851193e4fe62ed94d71393e73e615ebdbacb5a Mon Sep 17 00:00:00 2001 From: Rob Date: Sun, 10 Jul 2022 21:49:48 +0200 Subject: [PATCH] delete old rsync scripts (replaced by restic) --- rsync-T520-2-bfds/last.run | 1 - rsync-T520-2-bfds/rsync_exclude_list | 11 ------ rsync-T520-2-bfds/rsync_include_list | 3 -- rsync-T520-2-bfds/rsync_t520_d3v_on_bfds.sh | 43 --------------------- 4 files changed, 58 deletions(-) delete mode 100644 rsync-T520-2-bfds/last.run delete mode 100644 rsync-T520-2-bfds/rsync_exclude_list delete mode 100644 rsync-T520-2-bfds/rsync_include_list delete mode 100755 rsync-T520-2-bfds/rsync_t520_d3v_on_bfds.sh diff --git a/rsync-T520-2-bfds/last.run b/rsync-T520-2-bfds/last.run deleted file mode 100644 index f438ad5..0000000 --- a/rsync-T520-2-bfds/last.run +++ /dev/null @@ -1 +0,0 @@ -the age of this file is the last time the rsync was running diff --git a/rsync-T520-2-bfds/rsync_exclude_list b/rsync-T520-2-bfds/rsync_exclude_list deleted file mode 100644 index 8d9c97c..0000000 --- a/rsync-T520-2-bfds/rsync_exclude_list +++ /dev/null @@ -1,11 +0,0 @@ -;Bilder ##lieber nicht ausschließen -Trash -.local -.cache -*.deb -Downloads -Mate8-SD -*\[no_backup\]* -*\[no_backup\]*.* -*.iso -*.ISO diff --git a/rsync-T520-2-bfds/rsync_include_list b/rsync-T520-2-bfds/rsync_include_list deleted file mode 100644 index e92d0d1..0000000 --- a/rsync-T520-2-bfds/rsync_include_list +++ /dev/null @@ -1,3 +0,0 @@ -Noch nicht probiert, was hier funktioniert und was nicht - /code -/Dokumente diff --git a/rsync-T520-2-bfds/rsync_t520_d3v_on_bfds.sh b/rsync-T520-2-bfds/rsync_t520_d3v_on_bfds.sh deleted file mode 100755 index b2ec5c4..0000000 --- a/rsync-T520-2-bfds/rsync_t520_d3v_on_bfds.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/zsh - -todo zeitabhängiger ablauf - -## create last.run if not exist -# if [ ! -f "last.run" ] -# echo "the age of this file is the last time the rsync was running" > "last.run" - -# # check if the more than one week was since the last run - - -# #funtion arguments -> filename to comapre against curr time -# function comparedate() { -# MAXAGE=$(bc <<< '60*60*24*7') # seconds in one week -# # file age in seconds = current_time - file_modification_time. -# FILEAGE=$(($(date +%s) - $(stat -c '%Y' "$1"))) -# test $FILEAGE -lt $MAXAGE && { -# echo "$1 is less than 28 hours old." -# return 0 -# } -# echo "$1 is older than 28 hours seconds." -# return 1 -# } - -# #sample usage of function test if file /tmp/test.sh is older than 28 hours or not -# comparedate /tmp/test.sh -#######END_SCRIPT######### - - -exclude='--exclude-from=rsync_exclude_list' -#includefile='--include-from=rsync_include_list' - -sourceDir="/home/rob" -destinationDir="/mnt/bfds/rob/backup/thinkpad-T520/home/rob" -if [ -d "$sourceDir" ]; then - rsync -az --stats --progress $exclude $includefile $sourceDir/$scope bfds:$destinationDir/$scope -fi - -sourceDir="/var/www" -destinationDir="/mnt/bfds/rob/backup/thinkpad-T520/www" -if [ -d "$sourceDir" ]; then - rsync -az --stats --progress $exclude $includefile $sourceDir/$scope bfds:$destinationDir/$scope -fi