Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (14 sloc) 0.253 kb
#!/bin/bash
#
# rsync backup script
#
DEST=$1
LIST=/home/w0ng/.config/backup.list
if [[ -z $DEST ]]; then
echo 'No destination specified'
exit 1
fi
sudo sh -c "
rsync -av --delete-excluded --exclude-from=$LIST / $DEST;
date > $DEST/BACKUP
"
Jump to Line
Something went wrong with that request. Please try again.