dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit 1957792d4c2eb3accf4ff6959fd210030b6a50eb
parent db55a1393014b7e3f2782024df94f50f2538df2a
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 29 Nov 2016 02:55:26 +0000

update .bin/rsync-bu-to

source path is the second argument and back up path is the third argument.

Diffstat:
.bin/rsync-bu-to | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.bin/rsync-bu-to b/.bin/rsync-bu-to @@ -18,13 +18,15 @@ # filter path FILTER=$1 +# source path +SRC_PATH=$2 # rsync-bu-to path -BACKUP_PATH=$2 +BACKUP_PATH=$3 if [ -d $BACKUP_PATH ]; then - echo 'rsync-bu-to' $BACKUP_PATH '...' - rsync -ravz --delete-excluded --files-from=$FILTER $HOME $BACKUP_PATH - echo 'finished rsync-bu-to ' $BACKUP_PATH + echo 'rsyncing from' $SRC_PATH 'to' $BACKUP_PATH '...' + rsync -ravz --delete-excluded --files-from=$FILTER $SRC_PATH $BACKUP_PATH + echo 'finished rsyncing from ' $SRC_PATH 'to' $BACKUP_PATH else echo $BACKUP_PATH 'not found.' exit 1