Quantcast
Channel: How do i copy N images from server to my local machine using rsync? - Server Fault
Viewing all articles
Browse latest Browse all 4

Answer by Smock for How do i copy N images from server to my local machine using rsync?

$
0
0

i just want to transfer a 100 files

To transfer 100 files that are not a sequence set you can use this:

rsync -P `ls source-dir/ -U | head -100` destination-dir/

There's no option of rsync (that I can find) that just transfers 100 and stops

Instead you need to find a way to select 100 files to pass to rsync as a list

If the source folder is a remote one, you may have to mount it (auto-fs maybe)

rsync -P `ls /mnt/source-dir/ -U | head -100` destination-dir/

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>