Linux / Unix Rsync Copy Hidden Dot Files and Directories Only

Originally published at: https://www.cyberciti.biz/faq/linux-unix-appleosx-bsd-rsync-copy-hidden-dot-files/

How do I use the rsync tool to copy only the hidden files and directory (such as ~/.ssh/, ~/.foo, and so on) from /home/jobs directory to the /mnt/usb directory under Unix like operating system?


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki