
Remote exclude dir problem
On Wed, Jul 27, 2011 at 05:10:00PM +0200, Marcel Miku??k wrote:
I have a problem to make exclude dir of remote backup
FROM: server "posta"
TO: localhost
DIR: whole /HOME except DONT_BACKUP
COMMAND: backup root < at > posta:/home/ posta/
+rsync_long_args=--exclude=/home/DONT_BACKUP
I have tried
backup root < at > posta:/home/ posta/
+rsync_long_args=--exclude=DONT_BACKUP (not full path)
backup root < at > posta:/home/ posta/
+rsync_long_args=--exclude=*:*/home/DONT_BACKUP
(with
rsync include/exclude syntax is a GIGANTIC PAIN IN THE ARSE. I have
things like this, which work:
backup root < at > poacher.barnyard.co.uk:/home/
poacher.barnyard.co.uk-home/
+rsync_long_args=--exclude=/david/cpantesting/perl-5.10.1/
Note that the exclude begins and ends with a /. The first one is to
anchor it to poacher.barnyard.co.uk:/home/david/cpantesting/perl-5.10.1/
and not any other david/cpantesting/perl-5.10.1 that might appear
elsewhere in the tree. The one at the end tells rsync "this is a
directory. Don't back up its contents either".
So in summary, you probably want this, if DONT_BACKUP is an immediate
child of /home:
backup root < at > posta:/home/
posta/
+rsync_long_args=--exclude=/DONT_BACKUP/
or this (untested) if you don't want to backup any DONT_BACKUP directory
anywhere under /home:
backup root < at > posta:/home/
posta/
+rsync_long_args=--exclude=DONT_BACKUP/
--
David Cantrell | semi-evolved ape-thing
Irregular English:
you have anecdotes; they have data; I have proof
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss