NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

eton's avatar
eton
Luminary
Jan 22, 2011

rsync folder exclusion tips

I just would like to share my reasearch on how to exclude a folder with rsync.
The man pages uses the form FolderName/, but that excludes all folders with that name whereever they are stored on the bakup source.
I had a more simple wish; to exclude some specific folders from the backup source.

This works UPDATE: this method doesn't work anymore. Please look at new posts below for correct syntax.
/FolderName/

The list is comma-separated. My media backup exclusion looks like this:
/c/media/BitTorrent/,/c/media/Temp/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Note: How to access folders with spaces in their names on ReadyNAS/Infrant Linux. Example with a folder named "- FolderName":
cd ./-\ FolderName/


More info in this thread: Step-by-Step: Rsync to Local USB (note that TeknoJnky's reply is wrong)

12 Replies

Replies have been turned off for this discussion

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More