Initial commit

This commit is contained in:
2022-01-08 21:40:00 +01:00
commit 737d2d7df5
29 changed files with 347 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
PATH="/bin:/sbin:/usr/bin:/usr/sbin"
today=$(date '+%Y%m%d')
folderToBackup="/home/kalle"
targetFolder="/backups"
backupname="kalle"
backupLog="/root/backup-$today.log"
tar cvf ${targetFolder}/${backupname}-${today}.tar \
${folderToBackup} &> ${backupLog}