Compare commits

..

2 Commits
main ... no_etc

Author SHA1 Message Date
Johannes Randerath
d701a4e823 Removed etc 2024-06-12 22:40:49 +02:00
Johannes Randerath
baadcae6c0 Removed etc 2024-06-12 22:40:40 +02:00
2 changed files with 0 additions and 9 deletions

View File

@ -6,5 +6,4 @@ for d in $(find /home/johannes -type d -name '.jr_backup'); do
git -C $d/.. push origin main >> $LOGFILE 2>&1
printf "\n" >> $LOGFILE
done
git -C /etc push origin main >> $LOGFILE 2>&1
unset DATE LOGFILE d

View File

@ -1,8 +0,0 @@
#!/bin/bash
DATE=$(date +%Y%m%d-%Hh%M)
LOGFILE=/home/johannes/.var/log/root-backup-${DATE}.log
touch $LOGFILE
sudo git -C /etc add /etc >> $LOGFILE 2>&1
sudo git -C /etc commit -m "backup-$DATE" >> $LOGFILE 2>&1
sudo chown -R johannes:johannes /etc/.git >> $LOGFILE 2>&1
unset DATE LOGFILE