create backup script
This commit is contained in:
11
backup_home.sh
Executable file
11
backup_home.sh
Executable file
@@ -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
|
Reference in New Issue
Block a user