AmesCornish / buttersink

Buttersink is like rsync for btrfs snapshots
GNU General Public License v3.0
193 stars 18 forks source link

fixes AmesCornish/buttersink#42 #43

Open ceremcem opened 7 years ago

ceremcem commented 7 years ago

If we call buttersink directly in a terminal, everything goes OK. But there is something weird when we want to use buttersink in a shell script, like so:

sudo buttersink /path/to/mysnapshots/ ssh://myremote/path/to/snapshots

outputs the following error:

$ ./sync-ssh.sh 
sudo: no tty present and no askpass program specified

  ERROR: Fatal remote ssh server error.

So we need to wait a bit until this is resolved.

ceremcem commented 7 years ago

@AmesCornish above problem is fixed. Ready for your tests.

The problem was that I was supplying an extra slash in shell script, like so:


MY_SRC="/mnt/erik"
MY_DEST="/mnt/zencefil"
SSH="ssh://aea3"

sudo buttersink $MY_SRC/ $SSH/$MY_DEST

For clarity, I did put an extra / between $SSH and $MY_DEST, which caused that error (sadly, without a proper error message).