Source

bin / bak

Full commit
#!/bin/bash
#
# Full System Backup with rsync
# https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync

DEST=/media/backup
LIST=/home/wooptoo/bin/bak_list

if [ -z $DEST ]; then
    echo 'No destination specified'
    exit 1
fi

sudo sh -c "
    mount $DEST
    rsync -av --delete-excluded --exclude-from=$LIST / $DEST
    date -R > $DEST/BACKUP
    umount $DEST
"