Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a folder say /media/Movies/English/ numbers of folders, there is say 500 folder

Now I want to copy only 50 folders, not in alphabetical order but in random ...

How to do perform this task using rsync?

I tried the following rsync command

this is want happened rsync -arv --include-from=/media/Movies_NTFS/Movies/English/rsync-test /home/joe/Videos/

rsync-test file contains per line folders present in /media/Movies_NTFS/Movies/English/ folder but nothing is copied, when I ran the command. why?

share|improve this question
1  
You need something like rsync -arv --include-from=rsync-test /media/Movies/English /home/joe/Videos, i.e. you are missing the source argument. –  taneli Mar 19 '12 at 19:22
1  
Solved it by using --files-from instead --inlcude-from ... –  joe1983 Mar 20 '12 at 3:46
1  
Good for you! I hope you're aware of the awesome tool called unsort for shuffling the folders (and use the -r option to make it even more random). –  taneli Mar 20 '12 at 10:21

1 Answer 1

OP solved question using the --files-from switch in rsync instead of --include-from.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.