Closed tomachinz closed 4 years ago
Hi @tomachinz
Sorry for the (very) late response.
I corrected the "shebang" at the top of the script (first line of the script). Can you give it a try (it should be more portable).
Marvellous! It seems to be working. I also use this to sync my music library!
➜ bin which bsync
/usr/local/bin/bsync
➜ bin ls -la /usr/local/bin/bsync
-rwxr-xr-x 1 tom admin 31755 11 Jul 04:26 /usr/local/bin/bsync
➜ bin bsync
Usage: bsync [options] DIR1 DIR2
DIR can be user@sshserver:DIR
-v Verbose
-i Ignore permissions
-b Batch mode (exit on conflict)
-p PORT Port for SSH
-o SSHARGS Custom options for SSH
Many thanks!
(base) ➜ Music bsync "/Volumes/3tb-HFS/4TB-Backup/Music Drive/Music/iTunes/iTunes Media/Music/" "/Volumes/4TB/4TB/Music Drive/Music/iTunes/iTunes Media/Music/" Error: local GNU find not found. (On OSX, you can download it with 'brew install findutils')
(base) ➜ Music brew install findutils
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/findutils-4.7.0.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/3c609b729a1dc859459282a856ff6c164cd8388e531dad4e58c8d4c7acb670fb?response-content-disposition=attachment%3Bfilename%3D%22findutils-4.7.0.mojave.bottle.tar.gz%22&Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHAqOi8vZDI5dnprNG93MDd3aTcuY2xvdWRmcm9udC5uZXQvM
######################################################################## 100.0%
==> Pouring findutils-4.7.0.mojave.bottle.tar.gz
...
(base) ➜ Music bsync "/Volumes/3tb-HFS/4TB-Backup/Music Drive/Music/iTunes/iTunes Media/Music/" "/Volumes/4TB/4TB/Music Drive/Music/iTunes/iTunes Media/Music/"
Loading filelists...
/Volumes/3tb-HFS/4TB-Backup/Music Drive/Music/iTunes/iTunes Media/Music/ has no permission support (fat?). Ignoring permissions.
Old filelist not found. Starting with empty history.
If I type find I get a find. It looks like I have one installed via Brew.
I ask before when I try to run bsync I get error: