From d25bfbc4b61da3e905750ae9eb70b5c8983135be Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Mon, 13 Mar 2023 02:41:09 -0700 Subject: restructured directory --- sh/syncmusic | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100755 sh/syncmusic (limited to 'sh/syncmusic') diff --git a/sh/syncmusic b/sh/syncmusic deleted file mode 100755 index 4b487c9..0000000 --- a/sh/syncmusic +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -REMOTEDIR=root@canonical.aberrantflux.xyz:/srv/music -LOCALDIR=$(pwd) -echo "Remote directory is at $REMOTEDIR" -echo "Local dir is at $LOCALDIR" -echo "To sync from remote to local, enter d. To sync from local to remote, enter u. To cancel, enter c" -printf "Direction: " -read DIRECTION - -if [ $DIRECTION = d ] -then - COMMAND="rsync -avzP $REMOTEDIR/* $LOCALDIR/" - echo "About to run $COMMAND - enter y to continue, or n to cancel" - printf "Confirm: " - read CONFIRMATION - if [ $CONFIRMATION = y ] - then - rsync -avzP $REMOTEDIR/* $LOCALDIR/ - fi -fi - -if [ $DIRECTION = u ] -then - COMMAND="rsync -avzP $LOCALDIR/* $REMOTEDIR/" - echo "About to run $COMMAND - enter y to continue, or n to cancel" - printf "Confirm: " - read CONFIRMATION - if [ $CONFIRMATION = y ] - then - rsync -avzP $LOCALDIR/* $REMOTEDIR/ - fi -fi -- cgit v1.3.1