Quantcast
Channel: How do I get an entire directory in sftp? - Super User
Browsing all 12 articles
Browse latest View live

Answer by Orphans for How do I get an entire directory in sftp?

I recently solved this with lftp:lftp -c 'open sftp://USER:PASSWORD@remoteserver.example.com:22mirror --verbose --use-pget-n=8 -c /remote/catalogue/ /local/catalogue/'Inspired by this post.

View Article



Answer by nwgat for How do I get an entire directory in sftp?

well this little guide should help, mirror a remote server to local folder with lftplftp sftp://user:password@server.org:22 -e 'mirror --verbose --use-pget-n=8 -c /remote/path /local/path'sftp:// =...

View Article

Answer by Metalbeard for How do I get an entire directory in sftp?

As with cp:scp -rp user@host:/path/to/dir dirThe above will preserve times and modes of the original files and subdirectories. This is especially useful for the retrieval of backups.

View Article

Answer by drkvogel for How do I get an entire directory in sftp?

get -r [directory]gets [directory] and everything under it, where r stands for recursive. I found this just by typing help from sftp.

View Article

Answer by YumYumYum for How do I get an entire directory in sftp?

I have Java dist folder in remote server, where i have following tree:- dist--- Audio.jar--- README--- lib----- lib.jarGoal is: I want to use SFTP? And put them in /tmp/<>Step 1. sftp...

View Article


Answer by mani-fresh for How do I get an entire directory in sftp?

Use the -R (recursive) flag:get -R .

View Article

Answer by bshanks for How do I get an entire directory in sftp?

Use lftp:lftp sftp://user@hostThen, within lftp, cd into the directory you want to copy,and use the mirror command to recursively download the selected directory,like this:mirrorThis command accepts...

View Article

Answer by Ryan C. Thompson for How do I get an entire directory in sftp?

Don't use the sftp program directly if you can find something better. For Linux, many file managers (at least Nautilus and Dolphin, the GNOME and KDE ones) support sftp natively, and there's always...

View Article


Answer by Ken Keenan for How do I get an entire directory in sftp?

Try mget instead of get.Clarification: mgetwill work if you are inside the directory you want to copy; if you do something like this:sftp> cd dir_to_getsftp> mget *it will get all the files in...

View Article


Answer by Cristian Ciupitu for How do I get an entire directory in sftp?

Use:scp -r mpirocch@my-server:/home/mpirocch/Documents Documents

View Article

How do I get an entire directory in sftp?

I'm just learning to use sftp, and I want to copy a directory from the remote computer to my local computer. If I tryget [directory]it gives me this error:Cannot download non-regular file:...

View Article

Answer by MacMartin for How do I get an entire directory in sftp?

sftp -r user@myserver:/some_remote_directory /tmp/localdir(it's important to specify the destination directory, otherwise it will just log in)... worked for me (on Ubuntu 23)or interactively:sftp...

View Article
Browsing all 12 articles
Browse latest View live




Latest Images