Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put: command not found on Centos 6 #5

Closed
ecowebdesign opened this issue Feb 21, 2015 · 6 comments
Closed

put: command not found on Centos 6 #5

ecowebdesign opened this issue Feb 21, 2015 · 6 comments

Comments

@ecowebdesign
Copy link

./script.sh: line (66): put: command not found

@AppFull
Copy link

AppFull commented Feb 21, 2015

debian either, the local backup is working, just the remote problem 'put: command not found'
SFTP with different port?

@ecowebdesign
Copy link
Author

I have a port 222 for remote server

I modified your code like this

sshpass -p $PASSWORD ssh -p 222 $USERNAME@$SERVER

@Pe46dro
Copy link
Owner

Pe46dro commented Feb 21, 2015

Custom port support added in commit "d3e24cb"
I will check for put command error

@AppFull
Copy link

AppFull commented Feb 22, 2015

rsync is better solution 🍆

@ecowebdesign
Copy link
Author

I have tried it again ... PUT command not found..apparently my system don't want to understand it

this worked for me:
replaced

cd $backup_path sshpass -p $PASSWORD ssh -p $PORT $USERNAME@$SERVER cd $REMOTDIR put $FILE

with
rsync --rsh="sshpass -p $PASSWORD ssh -p $PORT -o StrictHostKeyChecking=no -l $USERNAME" $backup_path/$FILE $SERVER:$REMOTEDIR

@Pe46dro
Copy link
Owner

Pe46dro commented Feb 28, 2015

@ecowebdesign i have do some test and it work fine, i will replace PUT whit rsync

@Pe46dro Pe46dro closed this as completed Feb 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants