dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit 504f84301a92f2cb95167139b922d85530ed7a79
parent 580a926673578f84701a87065ca65ac8b822e3b8
Author: rsiddharth <s@ricketyspace.net>
Date:   Fri,  2 Nov 2018 18:39:09 -0400

Remove usr/local/bin/rsync-bu-to.

Diffstat:
usr/local/bin/rsync-bu-to | 45---------------------------------------------
1 file changed, 0 insertions(+), 45 deletions(-)

diff --git a/usr/local/bin/rsync-bu-to b/usr/local/bin/rsync-bu-to @@ -1,45 +0,0 @@ -#!/bin/sh -# -# License: CC0-1.0 -# -# 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 -