Rsync syntax question
Hi,
I have to backup a Raid5 volume (mounted as a normal directory of the "/" filesystem) on an another disk used for backups. I thought to backup it with rsync, excluding some type of file and preserving permissions. But the command I made doesn't work... (Must be excluded files with .tib and .bkp extension) here is the command: rsync --exclude="*.tib" "*.bkp" -avhp /mnt/raid5/ /mnt/backup/ Could you correct it?? please help me!!:cry: :cry: |
rsync --exclude=.tib --exclude=.bkp -avH /mnt/raid5/ /mnt/backup/
Update: I just noticed that the 'h' was lowercase; it should be uppercase. |
I will try....
Thank you.. |
Hi,
the exclude syntax doesn't work again...Rsync doesn't exclude files with "tib" (and "bkp")extension as required by me... |
The pattern needs a leading asterisk:
Code:
$ mkdir source |
Yes!
Now the command works correctly! Thank you so much! |
All times are GMT -5. The time now is 12:14 AM. |