Remote backups driving me nuts!
Remote backups driving me nuts!
I can't seem to get vesta setup to do remote backups. I can confirm connection is fine when doing manually in SSH:
(IP changed)
Yet when I try and set it up in https://my.admin.com:8083/edit/server/ > Backup , I get:
Any suggestions?
I've tried manually adding it via SSH:
It seems to be here that its dying, but I can't figure out why: (v-add-backup-host);
TIA
Andy
Code: Select all
sftp [email protected]
Yet when I try and set it up in https://my.admin.com:8083/edit/server/ > Backup , I get:
It's driving me up the wall. I've got the same setup running on 2 other servers (going to this same server), so I can't work out WTF is going on.Error: host connection failed
Any suggestions?
I've tried manually adding it via SSH:
Code: Select all
v-add-backup-host sftp 31.220.123.123 west-backup "pa$$backup123h" /backupWest
Error: host connection failed
Code: Select all
if [ "$type" != 'local' ];then
check_args '4' "$#" "TYPE HOST USERNAME PASSWORD [PATH] [PORT]"
is_format_valid 'user' 'host' 'path' 'port'
is_password_valid
if [ "$type" = 'sftp' ]; then
which expect >/dev/null 2>&1
check_result $? "expect command not found" $E_NOTEXIST
fi
host "$host" >/dev/null 2>&1
check_result $? "host connection failed xxxx " "$E_CONNECT"
fi
Andy
Re: Remote backups driving me nuts!
OK I found a hack to get it going
https://github.com/serghey-rodin/vesta/issues/1831
Commenting out the following in v-add-backup-host fixes it:
Not sure why it fails - but it does. Now I managed to add it OK, and its backing up fine
Cheers
Andy
https://github.com/serghey-rodin/vesta/issues/1831
Commenting out the following in v-add-backup-host fixes it:
Code: Select all
#----------------------------------------------------------#
# Verifications #
#----------------------------------------------------------#
# if [ "$type" != 'local' ];then
# check_args '4' "$#" "TYPE HOST USERNAME PASSWORD [PATH] [PORT]"
# is_format_valid 'user' 'host' 'path' 'port'
# is_password_valid
# if [ "$type" = 'sftp' ]; then
# which expect >/dev/null 2>&1
# check_result $? "expect command not found" $E_NOTEXIST
# fi
# host "$host" >/dev/null 2>&1
# check_result $? "host connection failed " "$E_CONNECT"
# fi
Cheers
Andy