dotfiles

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

commit dd683e318971cb76cc62031d8960f1b8f210afe2
parent 51426614737c7f9357eb88510c1bf0c1fdc0b362
Author: rsiddharth <s@ricketyspace.net>
Date:   Thu, 24 May 2018 22:26:53 +0000

.bin: Remove rsync-bu-to (Moved to dip).

Diffstat:
.bin/rsync-bu-to | 47-----------------------------------------------
1 file changed, 0 insertions(+), 47 deletions(-)

diff --git a/.bin/rsync-bu-to b/.bin/rsync-bu-to @@ -1,47 +0,0 @@ -#!/bin/sh -# -# Copyright © 2016-2018 rsiddharth <s@ricketyspace.net> -# -# License: BSD2 -# -# Usage: -# -# $ rsync-bu-to src-path backup-path [ files-from-file ] [ exclude-from-file ] -# -# - -SRC_PATH=$1 -if [ -z $SRC_PATH ]; then - echo 'Source directory '$SRC_PATH' not found' - exit 1 -fi - -BACKUP_PATH=$2 -if [ -z $BACKUP_PATH ]; then - echo 'Backup directory '$BACKUP_PATH' not found' - exit 1 -fi - - -# Make Options -OPTS='-ravz --delete-excluded' - -if [ ! -z $3 ] && [ ! -f $3 ]; then - echo 'File '$3' not found' - exit 1 -elif [ ! -z $3 ] && [ -f $3 ]; then - OPTS=$OPTS' --files-from='$3 -fi - -if [ ! -z $4 ] && [ ! -f $4 ]; then - echo 'File '$4' not found' - exit 1 -elif [ ! -z $4 ] && [ -f $4 ]; then - OPTS=$OPTS' --exclude-from='$4 -fi - -# Sync 'em -echo 'rsyncing from' $SRC_PATH 'to' $BACKUP_PATH '...' -rsync $OPTS $SRC_PATH $BACKUP_PATH -echo 'finished rsyncing from ' $SRC_PATH 'to' $BACKUP_PATH -