Make a Backup from a Root

Advertisement

Guest

Make a Backup from a Root

Hello together,

is it possible to connect on a Host and make a local backup from a specific folder?
Full automatically...

Thanks so much

Reply with quote

Advertisement

Guest

Great, thank you!

i have tried to login and it works successfully.
I "following" this script:

# Connect
open sftp://user:password@example.com/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
# Change remote directory
cd /home/user
# Force binary mode transfer
option transfer binary
# Download file to the local directory d:\
get examplefile.txt d:\
# Disconnect
close    

But i have 2 questions...
First: If i start winscp.exe with the param /console, the winSCP Console opens in a new window. How can i put code in this window automatically?
Secondly: How can i get a full folder from the host, not only a file? With "get foldername d:\" for example?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

First: If i start winscp.exe with the param /console, the winSCP Console opens in a new window. How can i put code in this window automatically?
Use winscp.com, not winscp.exe, as all the examples show.

Secondly: How can i get a full folder from the host, not only a file? With "get foldername d:\" for example?
Yes.

Reply with quote

Advertisement

You can post new topics in this forum