Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

check that destination is given

  • Loading branch information...
commit a4eb5c9fb0fea8b8339e191738130cf607360c9c 1 parent 19ee796
@w0ng authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 rbackup
View
6 rbackup
@@ -6,6 +6,12 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.