I have gigantic data consisted of branching tree of folders, sub folders, sub-sub folders and sub-sub-sub folders. Inside the terminal sub folder, I have large number of images (~ 2000 image each file is ~ 5-- kib ) which makes opening the folders very hard and slow. The images are not traditional images. they have header contain information. This header is common between all the images. This data is located on an old server which has low capabilities.
I want to make copy of the tree to another server which has better performance and copy one file (anyfile) within each sub folder to the new server.
rsync -av -f"+ */" -f"- *" /path/to/src ssh firstname.lastname@example.org:/path/to/dest/
This command, really, created a new empty tree oon the new server. My question is:
How can I revise this command to enable it sync one file/ any file of every folder?
my question is more focused on the roles defined by the flags
f how can I add new flag
f for new role that tells
rsync to sync one file from each folder and sub folder?
I can't use any solution that include
find. Running these commands on the old server and the huge amount of data will take forever!