[BackupPC-users] Config.pl, Directory's to be included and excluded in the backup

2005-08-31 Thread [EMAIL PROTECTED]
In my config file of host 127.0.0.1 I got these lines:$Conf{TarShareName} = '/home/e-smith/files/users';#    $Conf{BackupFilesExclude} = '/temp';#    $Conf{BackupFilesExclude} = ['/temp']; # same as first example#    $Conf{Bac
 kupFilesExclude} = ['/temp', '/winnt/tmp'];#    $Conf{BackupFilesExclude} = {#   'c' => ['/temp', '/winnt/tmp'], # these are for 'c' share#   'd' => ['/junk', '/dont_back_this_up'], # these are for 'd' share#    };#$Conf{BackupFilesExclude} = '/home/e-smith/files/users/user1/home';$Conf{XferMethod} = 'tar';$Conf{TarClientCmd} = 
 '/usr/bin/sudo'    . ' $tarPath -c -v -f - -C $shareName'    . ' --totals';I want to backup my '/home/e-smith/files/users' directory, BUT I want to exclude the Home Directory'sin the backup of all the users, is this possible? The line I use now doesn't work, in my backup the Home Directory of user1 is still in the backup.Can someone tell me what I have to use in my config file(s) to backup:'/home/e-smith/files/users/'and exclude the Home Directory's of all the users:'/home/e-smith/files/users/*/home'or at least one of my users, like so:'/home/e-smith/files/users/user1/home'Regards,Molski




[BackupPC-users] KNOCK KNOCK - sorry, have to ask - backing up windows clients?

2005-08-31 Thread Scott Gamble
So nobody has any tips or techniques for backing up windows machines or how
to deal with the issue of trying to backup files that are in use?
___
[EMAIL PROTECTED]
[EMAIL PROTECTED]
206 412 3055

> - Original Message -
> Subject: [BackupPC-users] sorry guys - have to ask - windows clients
> From: Scott Gamble <[EMAIL PROTECTED]>
> To: "backuppc-users@lists.sourceforge.net"

> Date: 08-27-2005 2:17 am
> 
> 
> Okay everyone, don't hate me.  
> 
> The generally accepted method for backing up windows clients is...
> 
> I have rsync going just fine.  Obviously running into the issue of trying
to
> copy files that are in use, and choking...  Theres really no way around
this
> as far as I can tell, but using rsync appears to work just as well as
samba
> and be a more secure.  I could be wrong though...
> 
> Is this as good as it gets?  
> 
> It'd be great if there was a windows-side application that would backup
> files and then I could sic rsync onto the backups.
> 
> Any bright ideas out there?  It must be opensource or cost next to
nothing.
> 
> Thanks all
> 
> Scott Gamble
> 
> ___
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> 206 412 3055
> 
> > - Original Message -
> > Subject: [BackupPC-users] syntax in config.pl
> > From: Lachlan Simpson <[EMAIL PROTECTED]>
> > To: backuppc-users@lists.sourceforge.net
> > Date: 08-26-2005 11:16 pm
> > 
> > 
> > I'm getting some weird errors that are making the client 
> > (cygwin/rsyncd) end the connection after a few seconds.
> > 
> > But the reason I write is because I've got this line in the 
> > config.pl:
> > 
> > 
> > '--exclude="/System Volume Information"'
> > 
> > under 
> > 
> > $Conf{RsyncArgs} = [
> > 
> > yet it's still trying to back these files up? is my syntax wrong?
> > 
> > 
> > ps the other errors I'm getting look like this:
> > 
> > 2005/08/27 16:04:25 [2556] rsync: writefd_unbuffered failed to write 
> > 4096 bytes: phase "unknown" [sender]: Connect on reset by peer (104)
> > 
> > 2005/08/27 16:04:25 [2556] rsync error: error in rsync protocol data 
> > stream (code 12) at /home/lapo/packaging/tmp/sync-2.6.6/io.c(1099)
> > 
> > 
> > There is no /home/lapo/packaging/tmp on my winbox, so I don't know 
> > where that came from, though I did find this link:
> > 
> > http://www.itefix.no/phpws/index.php?module=phpwsbb&PHPWSBB_MAN_OP=vie
> > w&PHPWS_MAN_ITEMS=92
> > 
> > which means I'm not the only one, but that's for another mail list, I 
> > guess.
> > 
> > Cheers
> > L.
> > ---
> > Lachlan Simpson, National Database & IT Support Officer
> > National Office
> > The Wilderness Society
> > 57E Brisbane Street, Hobart TAS  7000, AUSTRALIA
> > [EMAIL PROTECTED]
> > Ph  (03) 6270 1798
> > http://www.wilderness.org.au
> > 
> > 
> > 
> > 
> > ---
> > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
QA
> > Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
> > ___
> > BackupPC-users mailing list
> > BackupPC-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/backuppc-users
> > http://backuppc.sourceforge.net/
> 
> 
> ---
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/backuppc-users
> http://backuppc.sourceforge.net/


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Backing up Novell Servers

2005-08-31 Thread Scott Gamble
Is it possible to backup Novell servers with Backuppc?

Scott Gamble
___
[EMAIL PROTECTED]
[EMAIL PROTECTED]
206 412 3055
In my config file of host 127.0.0.1 I got these lines:$Conf{TarShareName} = '/home/e-smith/files/users';#    $Conf{BackupFilesExclude} = '/temp';#    $Conf{BackupFilesExclude} = ['/temp'];     # same as first example#    $Conf{Bac
 kupFilesExclude} = ['/temp', '/winnt/tmp'];#    $Conf{BackupFilesExclude} = {#       'c' => ['/temp', '/winnt/tmp'],         # these are for 'c' share#       'd' => ['/junk', '/dont_back_this_up'], # these are for 'd' share#    };#$Conf{BackupFilesExclude} = '/home/e-smith/files/users/user1/home';$Conf{XferMethod} = 'tar';$Conf{TarClientCmd} = 
 '/usr/bin/sudo'                    . ' $tarPath -c -v -f - -C $shareName'                    . ' --totals';I want to backup my '/home/e-smith/files/users' directory, BUT I want to exclude the Home Directory'sin the backup of all the users, is this possible? The line I use now doesn't work, in my backup the Home Directory of user1 is still in the backup.Can someone tell me what I have to use in my config file(s) to backup:'/home/e-smith/files/users/'and exclude the Home Directory's of all the users:'/home/e-smith/files/users/*/home'or at least one of my users, like so:'/home/e-smith/files/users/user1/home'Regards,Molski




Re: [BackupPC-users] tar --one-file-system option not working

2005-08-31 Thread Craig Barratt
Marty writes:

> Using the --one-file-system option, the tar method fails to back up
> files in the target subdirectory of a mounted partition.  It backs
> up directories without their files, unlike the rsync method using
> the --one-file-system option, which works as expected.

I'm surprised by this, but I'm not near a linux machine to check.
What is the exact tar command, and have you run it manually?

Craig


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Can't read /var/www/cgi-bin/BackupPC/BackupPC_Admin

2005-08-31 Thread dosseh edjé
 Hello,
My BackupPC's cgi interface doesn't work. I receive a message which begin by:"Internal Server Error" but httpd's log file prints these:
  -> mod_mime_magic: can't read /var/www/cgi-bin/BackupPC/BackupPC_Admin 
  -> can't open perl script "/var/www/cgi-bin/BackupPC/BackupPC_Admin" Permission denied
  ->  Use -S to search $PATH for it. 
  ->  Premature end of script headers: BackupPC_Admin.
The permissions on BackupPC_Admin's file are:
"-rwx--x--- 1 edje edje 3927 aoû 11 17:48 /var/www/cgi-bin/BackupPC/BackupPC_Admin"
"edje" is backuppc's user.
So what can would be wrong?
Please help me.
Thanks
		 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez le ici ! 
 


Re: [BackupPC-users] Can't read /var/www/cgi-bin/BackupPC/BackupPC_Admin

2005-08-31 Thread Les Stott



The permissions on BackupPC_Admin's file are:
"-rwx--x--- 1 edje edje 3927 aoû 11 17:48 
/var/www/cgi-bin/BackupPC/BackupPC_Admin"

"edje" is backuppc's user.
So what can would be wrong?

Even though your BackupPC runs as edje your apache webserver probably 
runs as apache:apache


Because of that the apache group needs at least read access. Try setting 
the permissions to either


-rwxr-xr-x edje edje (chmod 755 BackupPC_Admin) or

-rwxr-x--- edje apache (chmod 750 BackupPC_Admin; chgrp apache 
BackupPC_Admin)


You may need to restart apache for this change.

Regards,

Les


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Can't read /var/www/cgi-bin/BackupPC/BackupPC_Admin

2005-08-31 Thread Rupert Hair

dosseh edjé wrote:

My BackupPC's cgi interface doesn't work. I receive a message which
begin by:"Internal Server Error" but httpd's log file prints these: 
-> mod_mime_magic: can't read

/var/www/cgi-bin/BackupPC/BackupPC_Admin -> can't open perl script
"/var/www/cgi-bin/BackupPC/BackupPC_Admin" Permission denied ->  Use
-S to search $PATH for it. ->  Premature end of script headers:
BackupPC_Admin. The permissions on BackupPC_Admin's file are: 
"-rwx--x--- 1 edje edje 3927 aoû 11 17:48 
/var/www/cgi-bin/BackupPC/BackupPC_Admin" "edje" is backuppc's user. 
So what can would be wrong?

Apache is probably not running as 'edje' so it can't read this file.
Try running this 'chmod 644 /var/www/cgi-bin/BackupPC/*' as 'edje' or root.

Rupert


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC and removable drives

2005-08-31 Thread Les Stott


I have a half-dozen of these servers in place working very nicely. 
Removable IDE drives that get swapped weekly.


 

I've always been interested in this, backing up the backup server. Most 
of my sites at the moment are just backup servers. The clients know that 
the server itself doesn't get backed up.


What kind of setup are you using with removable drives? entire backuppc 
directory lives on seperate partition, or only pool and pc directories?


how do you manage it? stop backuppc, unmount, swap drive, remount, start 
backuppc? What happens when the changeover happens? if you did this 
weekly would it mean that as soon as you swap and restart backuppc that 
all clients attempt either a full or incremental?


TIA for your insights :-)

Except for an rsync problem with RHEL 4 (anyone else facing this?!?), it's 
working perfectly...



 

I'm not sure about any rsync problems on RHEL4, can you elaborate? We've 
always noticed that rsync falls behind on RHEL4 (in versions), along 
with many other rpm's like spamassassin, perl etc. In most cases we have 
built the latest rsync from source on RHEL4 and the like and all seems well.


Regards,

Les


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] KNOCK KNOCK - sorry, have to ask - backing up windows clients?

2005-08-31 Thread Les Mikesell
On Wed, 2005-08-31 at 02:54, Scott Gamble wrote:
> So nobody has any tips or techniques for backing up windows machines or how
> to deal with the issue of trying to backup files that are in use?

No, it is a long-standing problem.  Probably the best solution
is to move as much as you can to a Linux server running samba
where the files are not automatically locked on the Linux
side.  Even with most commercial products you have to pay
extra for open file agents.  Bacula is supposes to have one
and I thoght someone was working on one for backuppc but
haven't heard much about it.

-- 
  Les Mikesell
   [EMAIL PROTECTED]




---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backing up Novell Servers

2005-08-31 Thread Carl Wilhelm Soderstrom
On 08/31 12:56 , Scott Gamble wrote:
> Is it possible to backup Novell servers with Backuppc?

should be. I'm pretty sure rsyncd is available on Netware (at least it was
on the 6.5 box I looked at). Otherwise, if you can mount the filesystem, you
can back it up.

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Debian can'tt start server

2005-08-31 Thread makaber
Hello,

I m on debian sarge . I installed backupp pc via apt.
Backuppc works by default in my debian but when i mount a usb disk with the 
good rights uid and gid of backuppc , the server doesn't work.
I mount my usb device disk in /var/lib/backuppc for save all the backups on 
this disk.
My fstab line:
/dev/sda1   /var/lib/backuppc   vfatrw,uid=103,gid=104,umask=000
0   0

Someone have an idea?
Regards 
Patrick

--

Faites un voeu et puis Voila ! www.voila.fr 





---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Debian can'tt start server

2005-08-31 Thread Rupert Hair

makaber wrote:


I m on debian sarge . I installed backupp pc via apt.
Backuppc works by default in my debian but when i mount a usb disk with the 
good rights uid and gid of backuppc , the server doesn't work.
I mount my usb device disk in /var/lib/backuppc for save all the backups on 
this disk.
My fstab line:
/dev/sda1   /var/lib/backuppc   vfatrw,uid=103,gid=104,umask=000
0   0
I'm almost certain that BackupPC won't work with vfat.  It requires a 
good Linux file system capable of hard links etc.


If this USB disk is only to be used with Linux then you need to change 
the partition type to 82 using (as root):


cfdisk /dev/sda

Then format it with your favorite file system.  For example:

mke2fs -j /dev/sda1

Then change your fstab entry to look like this:

/dev/sda1   /var/lib/backuppc   ext3defaults0 0

You may also want the 'noauto' option if your USB disk is not going to 
be plugged in at every boot.


Hope this helps,

Rupert


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: Re: [BackupPC-users] Debian can'tt start server

2005-08-31 Thread makaber
Ok  thanks, i will change my server with a better hard disk so..
The usb disk wil be use for another way.
Ext3 is a good choice or reiserfs is better for my new disk?
I precise that all my server use ext3 file systems.

Thanks
Regards




> Message du 31/08/05 à 15h59
> De : "Rupert Hair" <[EMAIL PROTECTED]>
> A : [EMAIL PROTECTED]
> Copie à : backuppc-users@lists.sourceforge.net
> Objet : Re: [BackupPC-users] Debian can'tt start server
> 
> makaber wrote:
> 
> > I m on debian sarge . I installed backupp pc via apt.
> > Backuppc works by default in my debian but when i mount a usb disk with the 
> > good rights uid and gid of backuppc , the server doesn't work.
> > I mount my usb device disk in /var/lib/backuppc for save all the backups on 
> > this disk.
> > My fstab line:
> > /dev/sda1   /var/lib/backuppc   vfat
> > rw,uid=103,gid=104,umask=0000   0
> I'm almost certain that BackupPC won't work with vfat.  It requires a 
> good Linux file system capable of hard links etc.
> 
> If this USB disk is only to be used with Linux then you need to change 
> the partition type to 82 using (as root):
> 
> cfdisk /dev/sda
> 
> Then format it with your favorite file system.  For example:
> 
> mke2fs -j /dev/sda1
> 
> Then change your fstab entry to look like this:
> 
> /dev/sda1   /var/lib/backuppc   ext3  defaults0 0
> 
> You may also want the 'noauto' option if your USB disk is not going to 
> be plugged in at every boot.
> 
> Hope this helps,
> 
> Rupert
> 
> 
> ---
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/backuppc-users
> http://backuppc.sourceforge.net/
> 
> 
--

Faites un voeu et puis Voila ! www.voila.fr 





---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Redundant calls to DumpPostUserCmd

2005-08-31 Thread Chris Stone
Well, OK, I'll try to figure out the bigger issue on my own. How  
about I just ask this, though...


Is there a way to manually change the status of a partial backup to a  
valid full backup?


Thanks,

--Chris


On Aug 30, 2005, at 11:16 AM, Chris Stone wrote:

Just wondering if there were any thoughts on this, or if you need  
further description or clarification of the issue...


Thanks!

--Chris

On Aug 29, 2005, at 4:47 PM, Chris Stone wrote:



Hi,

Using BackupPC 2.1.1, I have $Conf{DumpPostUserCmd} set to run a  
script that creates an archive after each successful full backup:




$Conf{DumpPostUserCmd}= '/home/backuppc/postdump.pl $type  
$xferOK $client';





The script looks like this:




#!/usr/bin/perl

my $type = "$ARGV[0]";
my $xferOK = "$ARGV[1]";
my $client =  "$ARGV[2]";
my $archpath = "/archives/BUPC_ArchiveInProg/$client/";
my $stagepath = "/archives/ArchiveStage/";


if ($type eq "full") {
if ($xferOK eq 1) {
if (! -e "$archpath") {
`mkdir $archpath`;
`/usr/local/backup/bin/BackupPC_archiveHost /usr/local/ 
backup/bin/BackupPC_tarCreate /usr/bin/split /usr/local/bin/par2  
$client -1 /usr/bin/gzip .gz 214700 $archpath 0 "*"`;

my $timestmp = `date +%g%m%d%H%M%S`;
`mv $archpath $stagepath$client$timestmp` ;
 }
}
}





I needed to include the "if (! -e "$archpath")" block in the  
script since I found that if the backup and archive writing go on  
for more than a couple hours, DumpPostUserCmd gets called again  
for some reason, and the script would start writing to the same  
directory and screw up the archive. With the if block, though, I  
at least get a complete archive written.



Still, however, an issue remains since that second invocation of  
DumpPostUserCmd exits with a non-zero even though the actual  
backup was successful, and so the entire backup is rendered  
"partial". That client then gets hit for another full at the next  
window (and the cycle repeats).


My questions then are:

Why might I be getting multiple calls to DumpPostUserCmd, and how  
can I prevent that?
Is there a way to manually change the status of a partial backup  
to a valid full so I can at least stop the cycle of repeated full  
attempts?

Am I just going about this wrong?

Thanks!

--Chris


Below are my configs. First, that for an example client (it's a  
Mac, but I have the same problem with Linux clients as well):






$Conf{FullKeepCnt} = 1;
$Conf{FullKeepCntMin} = 1;
$Conf{FullAgeMax} = 6;
$Conf{BackupFilesOnly} = ['/Users/chris/'];
$Conf{BackupFilesExclude} = ['/Users/chris/Music', '/Users/chris/ 
Movies', '/Users/chris/Pictures', '/Users/chris/Library/Caches',  
'/Users/chris/Trash', '*.cache'];

$Conf{BlackoutBadPingLimit} = 3;
$Conf{BlackoutGoodCnt}  = 7;
$Conf{BlackoutPeriods} = [
{
hourBegin =>  7.0,
hourEnd   => 19.5,
weekDays  => [1, 2, 3, 4, 5],
},
];
$Conf{BackupZeroFilesIsFatal} = 1;
$Conf{XferMethod} = 'tar';
$Conf{XferLogLevel} = 1;
$Conf{TarClientCmd} = '$sshPath -q -x -n -l root $hostIP'
. ' $tarPath -c -v -f - -C $shareName+'
. ' --totals';
$Conf{TarFullArgs} = '$fileList+';
$Conf{TarIncrArgs} = '--newer=$incrDate+ $fileList+';
$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root $host'
   . ' $tarPath -x -p --numeric-owner --same-owner'
   . ' -v -f - -C $shareName+';
$Conf{TarClientPath} = '/usr/bin/tar';
$Conf{NmbLookupCmd} = '';
$Conf{NmbLookupFindHostCmd} = '/usr/local/backup/bin/ 
mDNSLookupPath.sh $host';

$Conf{FixedIPNetBiosNameCheck} = 0;
$Conf{PingPath} = '/bin/ping';
$Conf{PingCmd} = '$pingPath -c 1 -w 3 $host';
$Conf{CompressLevel} = 3;
$Conf{PingMaxMsec} = 40;
$Conf{ClientTimeout} = 7200;
$Conf{MaxOldPerPCLogFiles} = 12;







And this is the main config.pl:





$Conf{ServerHost} = 'xxx';
$Conf{ServerPort} = -1;
$Conf{ServerMesgSecret} = 'xxx';
$Conf{MyPath} = '/bin';
$Conf{UmaskMode} = 027;
$Conf{WakeupSchedule} =  
[1,2,3,4,5,6,6.5,7,7.5,8,8.5,9,9.5,10,10.5,11,11.5,12,12.5,13,13.5,1 
4,14.5,15,15.5,16,16.5,17,18,19,20,21,22,23,24];

$Conf{MaxBackups} = 4;
$Conf{MaxUserBackups} = 4;
$Conf{MaxPendingCmds} = 10;
$Conf{MaxBackupPCNightlyJobs} = 2;
$Conf{BackupPCNightlyPeriod} = 2;
$Conf{MaxOldLogFiles} = 14;
$Conf{DfPath} = '/usr/bin/df';
$Conf{DfCmd} = '$dfPath $topDir';
$Conf{SplitPath} = '/usr/bin/split';
$Conf{ParPath}   = '/usr/local/bin/par2';
$Conf{CatPath}   = '/usr/bin/cat';
$Conf{GzipPath}  = '/usr/bin/gzip';
$Conf{Bzip2Path} = '/usr/bin/bzip2';
$Conf{DfMaxUsagePct} = 95;
$Conf{TrashCleanSleepSec} = 300;
$Conf{DHCPAddressRanges} = [];
$Conf{BackupPCUser} = 'x';
$Conf{CgiDir}   = '/online/apache/cgi-bin';
$Conf{InstallDir}   = '/usr/local/backup';
$Conf{BackupPCUserVerify} = 1;
$Conf{HardLinkMax} = 31999;
$Conf{SmbShareName} = 'xx';
$Conf{SmbShareUserName} = 'xx';
$Conf{SmbSharePasswd} = 'xxx';
$Conf{TarShareNa

explained Re: [BackupPC-users] tar --one-file-system option not working

2005-08-31 Thread Marty

Craig Barratt wrote:

Marty writes:


Using the --one-file-system option, the tar method fails to back up
files in the target subdirectory of a mounted partition.  It backs
up directories without their files, unlike the rsync method using
the --one-file-system option, which works as expected.


I'm surprised by this, but I'm not near a linux machine to check.
What is the exact tar command, and have you run it manually?


Sorry, the explanation seems to be embarassingly simple -- I was
testing with incremental backups, and the tar method does not
fill in missing files older than the last full backup.  Doing a
full backup solved the problem.

I still don't understand why the subdirectories were transferred.


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] What would be conf/config.pl permissions?

2005-08-31 Thread dosseh edjé
 Hello,
Very thanks for your last advices. But now i run apache as BackupPC's user and group backuppc and i read these in apache's log file:
Could'nt open /var/backuppc/conf/config.pl:Permissions denied
[error][client 127.0.0.1] Directory index forbidden by rule:/var/www/html, referer:http://localhost/cgi-bin/BackupPC/BackupPC_Admin.
So i want to know true permissions  of /var/backuppc/conf/config.pl and what can be the problem.
Regards.
 
		 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez le ici ! 
 


Re: [BackupPC-users] $Conf{FullKeepCnt} with $Conf{FullPeriod} set to -1

2005-08-31 Thread Ralf Gross
Craig Barratt schrieb:
> Ralf Gross writes:
> 
> > Craig Barratt schrieb:
> >
> > > Ralf Gross writes:
> > 
> > Is there any side effect on setting $Conf{IncrPeriod} to a very high
> > value?
> 
> My first reaction was yes, but the answer is actually no.  The normal
> scheduler makes sure a full backup has to be at least $Conf{FullPeriod}
> after the last full backup, and at least $Conf{IncrPeriod} after the
> last incremental backup.
> 
> But the BackupPC_serverMesg command starts a manual backup, which
> ignores all the background scheduling rules.  So a large value is
> fine.  That will prevent any normally scheduled backup from occurring
> (provided an incremental backup exists).
> 
> In fact, this will move all control to cron, so if you disable your
> crontab entries then no backups will occur without you having to
> set $Conf{FullPeriod} to a negative value (again, provided an
> incremental backup exists).  (And in fact, because of how the
> code is written, if you use a value above, say, 1 million,
> then you don't even need a incremental backup to prevent all
> regular backups.)

That seems to to be exactly what I want!

Ralf


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC and removable drives

2005-08-31 Thread tmassey
Les Stott <[EMAIL PROTECTED]> wrote on 08/31/2005 07:41:49 AM:

> 
> >I have a half-dozen of these servers in place working very nicely. 
> >Removable IDE drives that get swapped weekly.
> >
> 
> What kind of setup are you using with removable drives? entire backuppc 
> directory lives on seperate partition, or only pool and pc directories?

The backup server has two drives:  a removable and a fixed.  The fixed has 
a single 4GB partition with a Knoppix-based install.  The removable is 
mounted to (from memory) /var/lib/backuppc.

> how do you manage it? stop backuppc, unmount, swap drive, remount, start 

> backuppc?

Close.  Shutdown, remove drive, restart, and run a script that reformats 
the new drive clean.  It's very much like changing a tape:  the new backup 
media is completely clean and ready to go.

I know that this undoes a great deal of the timesavings that BackupPC can 
give you for future backups.  I do not care.  My backup servers are only 
backing up file servers, not piles of client computers with thousands of 
identical files.  There is very little savings in the pool (leaving out 
future backups of the same box), and I greatly prefer treating the 
removable hard drives just like I would tapes.  I *like* forcing regular 
copies of these files onto multiple hard drives.

YMMV, of course.

> What happens when the changeover happens? if you did this 
> weekly would it mean that as soon as you swap and restart backuppc that 
> all clients attempt either a full or incremental?

A full.  Which is *exactly* how I want it.

THIS IS NOT MANDATORY!  If you didn't reformat the drive between inserts 
(like I do), you would have to back up a lot less data.  Again, I do not 
care.

> TIA for your insights :-)
> 
> >Except for an rsync problem with RHEL 4 (anyone else facing this?!?), 
it's 
> >working perfectly...
>
> I'm not sure about any rsync problems on RHEL4, can you elaborate? We've 

> always noticed that rsync falls behind on RHEL4 (in versions), along 
> with many other rpm's like spamassassin, perl etc. In most cases we have 

> built the latest rsync from source on RHEL4 and the like and all seems 
well.

I have built 2.6.6 from source, as well as at least two previous versions. 
 Same error.  I get an error that says that the child process terminated 
unexpectedly.  According to my examination of the source, it's because the 
TCP connection between the two is dropped.  I have no idea why, but I have 
two completely different servers, both running RHEL4 that fail in exactly 
the same way.  One was previously running RHEL3 with no problems, and I 
installed RHEL4 to a new partition and now it fails.

I don't think it's related specifically to rsync.  I think it may be more 
related to something else that is affecting the TCP session. 
Unfortunately, I can find nothing interesting in any of the logs on either 
box...  :(

So, for now, I'm backing up just the data using SMB.  Works, but not 
*nearly* as clean as my normal rsync solution.

I've asked for help on this one on both this list and a coule of others, 
but no one else has any ideas, and I've gotten very little feedback.  This 
is *not* unique to me, however.  There are others with simlar issues.  But 
no solutions.

Tim Massey



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC and removable drives

2005-08-31 Thread Les Mikesell
On Wed, 2005-08-31 at 15:08, [EMAIL PROTECTED] wrote:

> I don't think it's related specifically to rsync.  I think it may be more 
> related to something else that is affecting the TCP session. 
> Unfortunately, I can find nothing interesting in any of the logs on either 
> box...  :(
> 
> So, for now, I'm backing up just the data using SMB.  Works, but not 
> *nearly* as clean as my normal rsync solution.

I'm backing up a couple of centos4 boxes with tar and haven't noticed
any trouble.  Tar misses some things that rsync would catch on
incrementals, like old files under a renamed directory but is
OK otherwise if you have the bandwidth.

> I've asked for help on this one on both this list and a coule of others, 
> but no one else has any ideas, and I've gotten very little feedback.  This 
> is *not* unique to me, however.  There are others with simlar issues.  But 
> no solutions.

RHEL4 should have ipv6 support and tcp congestion control on by default
and these both can cause problems in various situations.  But, I don't
know enough about them to be much help.

-- 
  Les Mikesell
[EMAIL PROTECTED]




---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Disturbing Loss of Backups

2005-08-31 Thread Dan D Niles

I had been backing up a host for a while using only full backups
($Conf{FullPeriod} = 0.97; $Conf{IncrPeriod} = 1.97;).  This was
working fine for a long time.

Yesterday I switched to using incrementals ($Conf{FullPeriod} = 6.97;
$Conf{IncrPeriod} = 0.97;).  So last night it should have done an
incremental, but I got an email saying it couldn't create the XferLog
and another saying the host had never been backed up.

When I go an look, the host's directory in /BackupPC/pc has odd
permissions and no config file, no log files, and no backup dirs.
The RCS directory which was in there was in the trash directory.

So I restore the config file and log files and start a full backup.  I
look in /BackupPC/pc and my host's directory is gone WTF!  It got
put into /BackupPC/trash when I started a full backup.  Starting with
an empty directory containing only the config seems to have fixed it,
but my old backups are gone forever.

BackupPC should NEVER move a directory in /BackupPC/pc into the trash.

Any idea what is going on?

I can probably reproduce it as I have a backup of that directory
before it got wierd.

I'm running BackupPC 2.1.1.  I can send any configs or parts thereof
that you want to see.

Thanks,

Dan


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC and removable drives

2005-08-31 Thread Les Mikesell
On Wed, 2005-08-31 at 16:21, [EMAIL PROTECTED] wrote:

> > RHEL4 should have ipv6 support and tcp congestion control on by default
> > and these both can cause problems in various situations.  But, I don't
> > know enough about them to be much help.
> 
> Thank you for the info:  I'll see if I can investigate this further.
> 
> BTW, This wasn't a complaint.  I don't expect everyone else to do the work 
> to fix my problems.  It was more the fact that I'm surprised that no one 
> else around here seems to be having this problem, either.  Is no one else 
> using RHEL4?

I'm not sure how popular it is - or how many people are aware of the
free Centos4 clone.  There is a fairly active mailling list for Centos4
that might recognize the issues.

-- 
  Les Mikesell
[EMAIL PROTECTED]




---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Redundant calls to DumpPostUserCmd

2005-08-31 Thread Craig Barratt
Chris Stone writes:

> Well, OK, I'll try to figure out the bigger issue on my own. How  
> about I just ask this, though...

Sorry, I haven't had time to check into this.

> Is there a way to manually change the status of a partial backup to a  
> valid full backup?

Yes.  Just edit the backups file and change the word "partial"
to "full" on the line corresponding to the backup.

Craig


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: explained Re: [BackupPC-users] tar --one-file-system option not working

2005-08-31 Thread Craig Barratt
Marty writes:

> Sorry, the explanation seems to be embarassingly simple -- I was
> testing with incremental backups, and the tar method does not
> fill in missing files older than the last full backup.  Doing a
> full backup solved the problem.
> 
> I still don't understand why the subdirectories were transferred.

A tar incremental includes every directory, but only includes
files whose mtime matches the limit on the command line.

Craig


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/