using rsunc to exclude some folders and transfer to remote machine
I have a folder structure like this
Code:
base/ph_000/fl_00/ Code:
rsync avzP --exclude base/ph*/fl* base/ mahmood@191.235.19.14:/data/32cpu Code:
.... |
It doesnt look like thats an error, its a warning telling you it skipped some but thats based upon your exclude. Did it actually miss any of the files when transferring?
|
Indeed the destination folder is empty
|
OK. That problem has been solved by fixing "-avzP" and not "avzP" alone.
However, now I see this output: Code:
sending incremental file list As you can see it is sending the folder that *must* be excluded! |
Encapsulate your exclude pattern in single quotes.
Code:
rsync -avzP --exclude 'base/ph*/fl*' /base mahmood@191.235.19.14:/data/32cpu |
Why did you put "base" in exclusion?
I want to see this structure in the destination base/ph_000/sim base/ph_001/sim base/ph_002/sim .... The result of your command is Code:
receiving incremental file list |
I read your command wrong and thought you were passing mutliple folders to the exclude. It was late, I edited the command and removed the additional exclude option.
|
All times are GMT -5. The time now is 06:48 PM. |