Search found 5 matches
- 27 Nov 2013 07:19
- Forum: DOS Batch Forum
- Topic: SFTP connexion + download all files AND all repertories
- Replies: 9
- Views: 9024
Re: SFTP connexion + download all files AND all repertories
Thanks a lot for your help Finally I choose to do a global archive of the directory. 1) To create the archive via the [crontab] file of the remote server: tar -cvzf /home/www/website/backup.tar.gz /home/backup 2) To download the archive via the [ftpcommands.scr] file: lcd D:\dokeos\backup cd /home/b...
- 20 Nov 2013 04:25
- Forum: DOS Batch Forum
- Topic: SFTP connexion + download all files AND all repertories
- Replies: 9
- Views: 9024
Re: SFTP connexion + download all files AND all repertories
@Squashman: You can name your script file anything you want Thanks for the clarification @AiroNG: There are plenty of "dynamic" subdirectories, so it would be unuseful to write a list... The way I'm seeking for is to collect all the content (files, subdirectories, sub-subdirectories) at on...
- 19 Nov 2013 10:23
- Forum: DOS Batch Forum
- Topic: SFTP connexion + download all files AND all repertories
- Replies: 9
- Views: 9024
Re: SFTP connexion + download all files AND all repertories
Ok, i fix it
Last question: how to download all files AND all subdirectories? The command:
deals only with files...

Code: Select all
psftp login@server -P 222 -pw aaa -b ftpcommands.scr
Last question: how to download all files AND all subdirectories? The command:
Code: Select all
mget *.*
deals only with files...
- 19 Nov 2013 08:56
- Forum: DOS Batch Forum
- Topic: SFTP connexion + download all files AND all repertories
- Replies: 9
- Views: 9024
Re: SFTP connexion + download all files AND all repertories
Thanks for your prompt reply However, the snippet: psftp frontrow@192.168.1.50 -pw aaa -b psftp.bat does not work. Two remarks: 1) I have to user the 222 port : do I need to precise it? If yes, how? Something like : psftp frontrow@192.168.1.50 222 does not work... 2) You write: psftp frontrow@192.16...
- 19 Nov 2013 04:10
- Forum: DOS Batch Forum
- Topic: SFTP connexion + download all files AND all repertories
- Replies: 9
- Views: 9024
SFTP connexion + download all files AND all repertories
Hello, I would like to create a Windows task, run every day at 11.00 am. It has to: - connect by SFTP to a distant Ubuntu server - download a full repertory (all its files AND all its sub-repertories except two of them) To use PSFTP , I have already created a [backup.bat] file: @echo off set $dir=&q...