Topic "Download only specific files, recursively, best first compressed"

Author Message
cavo789
[View user's profile]

Joined: 2017-02-21
Posts: 1
Location: Lincent (Belgium)
Hi all

This is my first post after having first searched on the net if someone has already give an answer but I've not found (sorry if I've miss something).

My question : I would like to only download PHP files that are presents in a specific folder (subfolders included).

Real world situation : I need to clean an hacked website. That site contains a /upload folder with an incredible number of folders and subfolders and almost one gigabytes of files. There are here, and there, and also there, .php scripts created by bots and hackers.

My need (dream?) is : can I ask WinSCP to scan the remote folder, recursively, and download on my machine only specific files ? (in my case, .php files)

Would be great if these files can, first, be compressed on the remote server first so the result will be the donwload of a single archive on my machine.

Thanks a million !

Christophe
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25786
Location: Prague, Czechia
You can specify a file mask, both in scripting and GUI (it looks like you actually do not need a script for your one-off task).
https://winscp.net/eng/docs/ui_transfer_custom
https://winscp.net/eng/docs/file_mask

Quote:
Would be great if these files can, first, be compressed on the remote server first so the result will be the donwload of a single archive on my machine.

There's no way WinSCP can ask the server to compress the files first. It's doable in a shell (if you have a shell access). But that's off-topic for this forum.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License