BackupPC-users

Re: [BackupPC-users] archive problem

2008-08-01 14:30:42
Subject: Re: [BackupPC-users] archive problem
From: Chris Robertson <crobertson AT gci DOT net>
To: backuppc-users AT lists.sourceforge DOT net
Date: Fri, 01 Aug 2008 10:30:19 -0800
Jeff Rippy wrote:
> yes I had thought of that too and have already added the backuppc user 
> to the "tape" group.  permissions are 660 or rw-rw---- with owner root 
> and group tape.  Also the backuppc documentation and even the default 
> configuration uses /dev/st0 so why exactly do you recommend /dev/nst0 
> instead.  Shouldn't backuppc be controlling where it writes to the tape?
> I think the problem has something to do with what Holger was saying, 
> for some reason the script is trying to create /dev/st0 even though 
> its already there.
> Here is an excerpt from the script that I think is relevant but I 
> haven't been able to find information on the sh or dash or bash 
> (whichever it is) switches that are being used here:

The are "file test operators".  See 
http://tldp.org/LDP/abs/html/fto.html for a pretty extensive (and 
annotated) list.

> (Lines 107-129 from /usr/share/backuppc/bin/BackupPC_archiveHost - 
> specifically look at 109 where it checks for something (again not sure 
> what the switches do) and 116 where it tries to create the output 
> location)
>
>     107 my $cmd = "$tarCreate -t -h $host -n $bkupNum -s $share . ";
>     108 $cmd   .= "| $compPath " if ( $compPath ne "cat" && $compPath 
> ne "" );
>     109 if ( -b $outLoc || -c $outLoc || -f $outLoc ) {

If the file identified by the variable $outLoc is a regular file, OR a 
block device, OR a character device, as noted in the comment directly 
following...

>     110     #
>     111     # Output file is a device or a regular file, so don't use 
> split
>     112     #

Chris

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/