mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
fixed add sftp server backup
This commit is contained in:
parent
9de1d46bb6
commit
d74ac9980a
1 changed files with 1 additions and 2 deletions
|
@ -38,8 +38,7 @@ EOF
|
||||||
sftpc() {
|
sftpc() {
|
||||||
expect -f "-" <<EOF "$@"
|
expect -f "-" <<EOF "$@"
|
||||||
set count 0
|
set count 0
|
||||||
spawn "/usr/bin/sftp -o StrictHostKeyChecking=no -o \
|
spawn /usr/bin/sftp -o StrictHostKeyChecking=no -o Port=$port $user@$host
|
||||||
Port=$port '$user@$host'"
|
|
||||||
expect {
|
expect {
|
||||||
"password:" {
|
"password:" {
|
||||||
send "$password\r"
|
send "$password\r"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue