SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Remote exclude dir problem
Author Message
Post Remote exclude dir problem 
Hi
Can you help me plese.
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 Smile

but error

If arg is a remote file/dir, prefix it with a colon (Smile.
rsync error: syntax or usage error (code 1) at main.c(1218) [Receiver=3.0.7]


Thanks

Post 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 Smile

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

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB