Re: Exclude list and disklist

2005-04-21 Thread Joshua Baker-LePain
On Thu, 21 Apr 2005 at 12:39pm, Kuas wrote

 I setup the back-up so that all excluded list are in
 /var/lib/amanda/exclude.txt on each machine, so that I can use a general
 dump-type. But I haven't been able to get it work. For example, I backed
 up all the /var/spool/mail for every user (the emails are in 1 file),
 except: A and B. I put in the exclude.txt on that machine:
 /var/spool/mail/A and /var/spool/mail/B. This doesn't work, I wonder if
 they're absolute path. In the dumptype, I put:

Exclude paths are relative.  So, if your DLE is /var/spool/mail, you'd 
have to exclude ./A and ./B.

 The second question is about disklist. If I have to change the directory
 layout of a system. And change the disklist, I can see that in the next
 backup, the new list is used. But, all the old list are still in the
 index (I can see it in amrecover). I think it's good if it keep the old
 structure (disklist) until all the tapes that contain that data are
 reused. Is this the case, if not, how do I delete the entries?  The same

If you change the disklist, amanda treats those as new entries.  The old 
entries won't be backed up anymore, but will still be recoverable until 
the tapes are overwritten.

 as exclude list, if some users update me that some directories in their
 home are not supposed to be backup, but it was backup before. Does the
 next amdump run redo the dump not to include that directory or only only
 when it detects more changes in that directory? Would it exclude the
 list, or I should restart some of the amanda processes?

Amanda leaves no processes running between dumps.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University


Re: Exclude list and disklist

2005-04-21 Thread Kuas
Joshua Baker-LePain wrote:

On Thu, 21 Apr 2005 at 12:39pm, Kuas wrote

  

I setup the back-up so that all excluded list are in
/var/lib/amanda/exclude.txt on each machine, so that I can use a general
dump-type. But I haven't been able to get it work. For example, I backed
up all the /var/spool/mail for every user (the emails are in 1 file),
except: A and B. I put in the exclude.txt on that machine:
/var/spool/mail/A and /var/spool/mail/B. This doesn't work, I wonder if
they're absolute path. In the dumptype, I put:



Exclude paths are relative.  So, if your DLE is /var/spool/mail, you'd 
have to exclude ./A and ./B.
  

Got it.
Now, In a situation I want to give flexibility to users, that they are
the one that knows if a directory needs to be excluded or backup to be
more efficient in the backup process. From the howto and some trial I
can specify in the dumptype, instead of the absolute path to the exclude
file, but just the name of the file:

exclude list exclude.list

So each user needs to create this file and has full authority to change
it. The effect I saw (from amcheck) is that it will try to find that the
file in each of the DLE that uses that dumptype. But the problem I saw,
when there is a problem like the file doesn't exist. That will stop all
backup processes or at least for that DLE. Has anybody else seen this,
or it's just normal behavior when there's a problem, they just stop the
backup. Is the syntax of that exclude behavior is prohibited. Has
anybody tried doing similiar purpose like this before? Would there be a
better way to do it?

Thanks,
Kuas.


Re: Exclude list and disklist

2005-04-21 Thread Joshua Baker-LePain
On Thu, 21 Apr 2005 at 3:58pm, Kuas wrote

 Now, In a situation I want to give flexibility to users, that they are
 the one that knows if a directory needs to be excluded or backup to be
 more efficient in the backup process. From the howto and some trial I
 can specify in the dumptype, instead of the absolute path to the exclude
 file, but just the name of the file:
 
 exclude list exclude.list
 
 So each user needs to create this file and has full authority to change
 it. The effect I saw (from amcheck) is that it will try to find that the
 file in each of the DLE that uses that dumptype. But the problem I saw,
 when there is a problem like the file doesn't exist. That will stop all
 backup processes or at least for that DLE. Has anybody else seen this,
 or it's just normal behavior when there's a problem, they just stop the
 backup. Is the syntax of that exclude behavior is prohibited. Has
 anybody tried doing similiar purpose like this before? Would there be a
 better way to do it?

From 'man amanda':

   exclude [ list|file ][[optional][ append ][ string ]+]
  Default:  file.   There  is  two  exclude  list exclude file and
  exclude list.  With exclude  file  ,  the  string  is  a  gnutar
  exclude  expression.  With  exclude  list , the string is a file
  name on the client containing gnutar exclude expression.

  All exclude expression are concatenated in one file  and  passed
  to gnutar as a --exclude-from argument.

  With  the append keyword, the string are appended to the current
  value of the list, without it, the string overwrite the list.

=If optional is specified for exclude list, then amcheck will not
=complain if the file doesn't exist or is not readable.

  For  exclude  list,  If the file name is relative, the disk name
  being backed up is prepended.  So if this is entered:

   exclude list .amanda.excludes

  the actual file use would be /var/.amanda.excludes for a  backup
  of /var, /usr/local/.amanda.excludes for a backup of /usr/local,
  and so on.


-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University


Re: Exclude list and disklist

2005-04-21 Thread Matt Hyclak
On Thu, Apr 21, 2005 at 03:58:58PM -0400, Kuas enlightened us:
 Joshua Baker-LePain wrote:
 
 On Thu, 21 Apr 2005 at 12:39pm, Kuas wrote
 
   
 
 I setup the back-up so that all excluded list are in
 /var/lib/amanda/exclude.txt on each machine, so that I can use a general
 dump-type. But I haven't been able to get it work. For example, I backed
 up all the /var/spool/mail for every user (the emails are in 1 file),
 except: A and B. I put in the exclude.txt on that machine:
 /var/spool/mail/A and /var/spool/mail/B. This doesn't work, I wonder if
 they're absolute path. In the dumptype, I put:
 
 
 
 Exclude paths are relative.  So, if your DLE is /var/spool/mail, you'd 
 have to exclude ./A and ./B.
   
 
 Got it.
 Now, In a situation I want to give flexibility to users, that they are
 the one that knows if a directory needs to be excluded or backup to be
 more efficient in the backup process. From the howto and some trial I
 can specify in the dumptype, instead of the absolute path to the exclude
 file, but just the name of the file:
 
 exclude list exclude.list
 
 So each user needs to create this file and has full authority to change
 it. The effect I saw (from amcheck) is that it will try to find that the
 file in each of the DLE that uses that dumptype. But the problem I saw,
 when there is a problem like the file doesn't exist. That will stop all
 backup processes or at least for that DLE. Has anybody else seen this,
 or it's just normal behavior when there's a problem, they just stop the
 backup. Is the syntax of that exclude behavior is prohibited. Has
 anybody tried doing similiar purpose like this before? Would there be a
 better way to do it?
 

I use

exclude list optional .amanda.exclude

So if the file doesn't exist, it isn't an error.

Matt

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263


pgpL5TSKYGyuZ.pgp
Description: PGP signature