Removed etc
This commit is contained in:
@@ -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
|
|
||||||
Reference in New Issue
Block a user