NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
eton
Jan 22, 2011Luminary
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.
The list is comma-separated. My media backup exclusion looks like this:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Note: How to access folders with spaces in their names on ReadyNAS/Infrant Linux. Example with a folder named "- FolderName":
More info in this thread: Step-by-Step: Rsync to Local USB (note that TeknoJnky's reply is wrong)
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
- etonLuminaryDid you try to encode the exclusion path as HEX chars?
/home/user/%2Ecache
or as escaped
/home/user/\%2Ecache
or
%2Fhome%2Fuser%2F%2Ecache
or as escaped
\%2Fhome\%2Fuser\%2F\%2Ecache
http://meyerweb.com/eric/tools/dencoder/
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!