Topic "Duplicate Directories and Files"

Author Message
coogh
[View user's profile]

Joined: 2015-01-05
Posts: 2
Location: Italy
Hi all,
I have to copy multiple directories and files from a EXT4 drive to a NTFS one. To do this, the standard function "duplicate" fails because there are problems with the parameter "-r".
The right command to use (tried in putty) is "cp --no-preserve=all -r -f". How can I applied it to multiple directories and files selected in the right panel, specifing the destination directory?

Thanks a lot.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
What "problems" are you having with the parameter "-r"?
_________________
Martin Prikryl
Guest




The system hangs and says that it's impossible to preserve attributes.
With my string, everything is just fine.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You can apply your command to all selected files/directories using custom command functionality:
http://winscp.net/eng/docs/custom_command
_________________
Martin Prikryl
coogh
[View user's profile]

Joined: 2015-01-05
Posts: 2
Location: Italy
I tried many times to apply "cp --no-preserve=all -r -f" command to multiple directories but I can't find the right sintax.
I'm very noob, somebody can explain me how to apply this command?
Thanks a lot.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
The command will vary with your specific needs. The basic syntax is like:
cp --no-preserve=all -r -f ! /target/path
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