Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Who is building clouds for the independent developer? Exploding turkeys and how not to thaw your frozen bird: Top turkey questions Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Related Hot Network Questions.
Add a comment. Active Oldest Votes. Run them in batch mode like this through a script: pscp. Ram Ram 5 5 silver badges 13 13 bronze badges. It will login and logout each time, and it will be very slow. The below command can be used to transfer multiple files using PSCP: pscp. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. PSCP accepts all the general command line options supported by the PuTTY tools, except the ones which make no sense in a file transfer utility.
See section 3. The ones not supported by PSCP are clearly marked. PSCP also supports some of its own options. The following sections describe PSCP's specific command-line options. If the -ls option is given, no files are transferred; instead, remote files are listed. Only a hostname specification and optional remote file specification need be given. The SCP protocol does not contain within itself a means of listing files.
If SCP is in use, this option therefore assumes that the server responds appropriately to the command ls -la ; this may not work with all servers. By default, files copied with PSCP are timestamped with the date and time they were copied. The -p option preserves the original timestamp on copied files. The fields in this display are from left to right , filename, size in kilobytes of file transferred so far, estimate of how fast the file is being transferred in kilobytes per second , estimated time that the transfer will be complete, and percentage of the file so far transferred.
The -q option to PSCP suppresses the printing of these statistics. By default, PSCP will only copy files. Community Bot 1. B Faley B Faley 3, 10 10 gold badges 33 33 silver badges 47 47 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Is --ignore-existing really required? If any of the files already exist on the remote system then the rsync remote-update protocol is used to update the file by sending only the differences " — B Faley.
That does the whole job in one command, and on subsequent invocations, only transfers the files that need it. I really like this solution. I am collecting files from remote sensors into an archive.
The whole working directories- each has an Archive subdir. Once files go into Archive they will never be changed. It would be really easy to mark archived files as -w so this will be what I do.
And the working files outside of the archive directories can be left as-is so if I run the update program during the day it will still copy the in-progress files.
0コメント