Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Sep 2012
rsync : how to exclude hidden files and directories ?
I'm currently writing a backup script which uses the rsync command. I have to backup the entire directory structure and certain types of files. So, my rsync command looks like this :
rsync -azd --include='*/' --include='*.nk' --include='*.sni' --include='*.nk.autosave' --exclude='*' --stats /source_folder/* /backup_folder
So, do you know the correct regex to exclude hidden files and directories from my rsync command ?
Thank you in advance !