Forrest logo
back to the rsync tool

rsync:ai:0e68b

rsync exclude hidden files and directories
$ rsync -av --exclude='.*' source_folder/ destination_folder/
try on your machine

This command will synchronize the contents of source_folder to destination_folder, excluding all hidden files and directories (those starting with a dot)

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • rsync exclude hidden files and directories?
back to the rsync tool