From 4cafcde43f4a89f134237142ab86e52c2e5eccf9 Mon Sep 17 00:00:00 2001 From: Johannes Randerath AS ROOT Date: Fri, 10 May 2024 12:54:33 +0200 Subject: [PATCH] backup-20240510-12h54 --- user_backup_git.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/user_backup_git.sh b/user_backup_git.sh index 1757169..3b9ad5d 100644 --- a/user_backup_git.sh +++ b/user_backup_git.sh @@ -5,6 +5,7 @@ LOGFILE=/home/johannes/.var/log/user-backup-${DATE}.log touch $LOGFILE echo "--------------------------------------------------------------------" >> $LOGFILE for repo in $(find /home/johannes -type d -name '.jr_backup'); do + printf "%s\n" $repo >> $LOGFILE git -C $repo/.. add $repo/.. >> $LOGFILE 2>&1 git -C $repo/.. commit -m "backup-${DATE}" >> $LOGFILE 2>&1 sudo chown -R johannes:johannes $repo/..