diff --git a/backup_home.sh b/backup_home.sh new file mode 100755 index 0000000..1be115d --- /dev/null +++ b/backup_home.sh @@ -0,0 +1,11 @@ +#!/bin/bash +echo "Starting backup..." + +BACKUPDIR=/media/$USER/34bde39d-fe97-42f1-ad72-96605867a967/home/$USER + +curl https://gitaly.ru/anpleenko/rsync/raw/branch/main/.rsync-ignore > /tmp/ignorelist + +rsync -av --delete --delete-excluded --exclude-from=/tmp/ignorelist /home/$USER/ $BACKUPDIR/ + +echo "Backup finished!" +date