I want to exclude a directory including wildcards. i.e.: On my origin server I have a backup-dir in /data/web/backup-root-2006-10-10/ under which I have a backup of root and I want to exclude this dir from being backed up. what do I have to put in my "backup-excludes-file" what i woul like is: /data/web/backup*/ so if i make a new backup of my root called /data/web/backup-root-2006-10-24 it will not be backed up. Thanks in advance Greetings Olli ----------------------------------------- Fink Oliver Arbeiterkammer Vorarlberg EDV-Leiter Schiesst?tte 16 6800 Feldkirch Tel. +43/(0)5522/3551-16 Fax. +43/(0)5522/3551-17 Mail: mailto:oliver.fink@ak-vorarlberg.at
On Tue, Oct 24, 2006 at 11:45:04AM +0200, Fink Oliver wrote:> what do I have to put in my "backup-excludes-file" > > what i woul like is: > /data/web/backup*/That works fine if your transfer root is "/". If it is /data, drop the "/data" dir, if you are copying /data/web, drop both dirs, like this: --exclude "/backup*/" The names that you see output via -v are the names that need to go into the exclude file, usually with a slash prepended (to anchor it at the top of the transfer). Ending the exclude with a '/' makes it match only directories. ..wayne..