Re: [BackupPC-users] why total files != new files + existing files

2009-11-11 Thread ADNET Ghislain

nobody does reporting after the backups ?

if you do, are you understanding the numbers backuppc gives because i 
really do not and i can't make an even simple report out of this.


Anyone ever succeded in this ?


--
Cordialement,
Ghislain


smime.p7s
Description: S/MIME Cryptographic Signature
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] why total files != new files + existing files

2009-10-23 Thread ADNET Ghislain
hi


i do not understand the cgi report of file counts. I have never

total files = new files + existing files

the cgi say that empty files are not counted in the new files so it
should be less but here i have existing+new > total :)  so i must miss 
something obvious

on 4 weeks here is existing+new - total:

2
1
1
5
4
1
1
1
1
5
5
878
287
87
74
84
68
39
103
74
77
74
81
70
53
100
73
75
91


how can this be ?


-- 
Cordialement,
Ghislain

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] backup pc 2.0 ..beta ?

2009-09-10 Thread ADNET Ghislain

Hello,

 I just wanted to ping the list to know the status of backuppc 3.2. It 
is beta but it seems some use it allready in prod. Is there any know 
problems with 3.2.0 , is there any testing we can do to help go from 
beta to rc and to stable ?



--
Cordialement,
Ghislain


smime.p7s
Description: S/MIME Cryptographic Signature
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] adding default exclude list to all your share/host

2009-09-06 Thread ADNET Ghislain

hello,

I was searching for a way to add default exclude list to all my share 
backuped. For this i wrote this little piece of code and just added a


do '/etc/Backuppc/defaultexclude';


in my backuped hosts config at the end. Of course this is not showing in 
the cgi frontend.



Here is the code. I just wanted to share if this can help someone. It 
seems to work for me (my perl skill is VERY low so be kind):


   while ( my ($key,$value) = each(%{$Conf{BackupFilesExclude}}) ) {
   push (@{$value}, '**/logs/**' );
   push (@{$value}, '**/log/**' );
   push (@{$value}, '**/cache/**' );
   push (@{$value}, '**/tmp/**' );
   push (@{$value}, '**/temp/**' );
   push (@{$value}, '**/typo3temp/**' );
   }


This of course can be used for default include. I just need to find a 
way to prevent duplicate add but i do not know if rsync will be bothered 
to have x time the same exclude in his list.



--
Cordialement,
Ghislain


smime.p7s
Description: S/MIME Cryptographic Signature
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] email report after backup

2009-06-26 Thread ADNET Ghislain



This information you can find in __TOPDIR__/pc/$host/backups.

The DumpPostUserCmd is the right way.
There are several variables you can take as parameter to your script.
The one you need is $xferOK

br
Matthias
  


thanks a lot ! this is exactly what i wanted :)
i just have to find what column is what and that will do it  most are 
easy to guess anyway.


--
Cordialement,
Ghislain



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] email report after backup

2009-06-25 Thread ADNET Ghislain
i just wonder where the web interface has the information about the 
backup done if i know i should be able to take it and send it by email.


--
Cordialement,
Ghislain


smime.p7s
Description: S/MIME Cryptographic Signature
--
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] email report after backup

2009-06-25 Thread ADNET Ghislain

Hello there :)

I wanted to know if anyone wrote a script that send after each backup 
to the admin of the selected host a little backup report saying:


hi this is backuppc, we made the backup at xx:xx AM and we backup xx 
files for a size of xx.


I looked at the DumpPostUserCmd but it have not found the information in 
it. Any ideas ?



--
Cordialement,
Ghislain


smime.p7s
Description: S/MIME Cryptographic Signature
--
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Amount of time for full backups

2008-04-18 Thread ADNET Ghislain

Beth Morgan a écrit :

Hi -

I just started using BackupPC about 3 weeks ago.  I'm using the  
default schedule, where I should have a full backup performed once a  
week.  I have 5 servers backing up to this server.  Before this, I  
used Legato and backed up to a tape jukebox.  I used to think those  
backups were slow (sometimes up to 15 hours for a full backup), but  
now it's taking days (at 3 and counting for one server) to complete a  
full backup. (I love the faster restore time though).
  
what data volume do you use and what protocol you use for backup 
(tar/rsync...) ?



--
Cordialement,
Ghislain



smime.p7s
Description: S/MIME Cryptographic Signature
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] limit restore to a share

2008-02-06 Thread ADNET Ghislain

Little change in the way you define it:

Use
$Conf{rsyncRestoreLimitToShare} = ('/var','/home');
and not
$Conf{rsyncRestoreLimitToShare} = ['/var','/home'];

i do not know the difference but it do not work with []

--
Cordialement,
Ghislain



smime.p7s
Description: S/MIME Cryptographic Signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] limit restore to a share

2008-02-06 Thread ADNET Ghislain

I modified the rsync code to limit restore to a share:

against (# Version 3.0.0, released 28 Jan 2007)

(root)> diff /usr/local/BackupPC/lib/BackupPC/Xfer/Rsync.pm 
/usr/local/BackupPC/lib/BackupPC/Xfer/Rsync.pm.orig

134,149d133
<   ## AQUEOS debut
<
<   if( defined $conf->{rsyncRestoreLimitToShare} ){
<   my $aqflag = 0;
<   my $aqshare;
<   foreach $aqshare ( $conf->{rsyncRestoreLimitToShare} ){
<   $aqflag = 1 if  $remoteDir  =~ /^$aqshare/;
<   }
<   if( $aqflag == 0 ){
<   my $str = "Erreur vous devez restorer dans  
".join(' ou ',$conf->{rsyncRestoreLimitToShare})." uniquement et  non 
pas $remoteDir\n";

<   $t->{XferLOG}->write(\$str);
<   $t->{hostError} = "none";
<   return;
<   }
<   }
<   ## AQUEOS fin


you have to define in your host file this parameter:

$Conf{rsyncRestoreLimitToShare} = ['/var','/home'];

This way you should not be able to restore anyfiles outside of those 
directories.


 I am a bad coder so perhaps some here could help make this better and 
do the same for the  other backup method like tar etc...


legal boilerplate: any ownership of  this wonderful piece code is gived 
to craig so if by any chance he takes it into backup pc he has the right 
on it ;)


--
Cordialement,
Ghislain



smime.p7s
Description: S/MIME Cryptographic Signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Limiting restore operation to a share or sub directory

2008-02-04 Thread ADNET Ghislain






  
Without modifying the code you can't do that.

You could create two virtual hosts, one that can be direct
restored and the other that can't.

Craig
  


i was trying to change this file to add this:

/usr/local/BackupPC/lib/BackupPC/Xfer/Rsync.pm

in the sub start after :

sub start
{
    my($t) = @_;
    my $bpc = $t->{bpc};
    my $conf = $t->{conf};
    my(@fileList, $rsyncClientCmd, $rsyncArgs, $logMsg,
   $incrDate, $argList, $fioArgs);
  
    #
    # We add a slash to the share name we pass to rsync
    #
    ($t->{shareNameSlash} = "$t->{shareName}/") =~ s{//+$}{/};
  
    if ( $t->{type} eq "restore" ) {
    $rsyncClientCmd = $conf->{RsyncClientRestoreCmd};
    $rsyncArgs = $conf->{RsyncRestoreArgs};


i added this:


      my $remoteDir =
"$t->{shareName}/$t->{pathHdrDest}";
    $remoteDir    =~ s#/\.\.#/#g;
    $remoteDir    =~ s{//+}{/}g;
    
    if( defined @rsyncRestoreLimitToShare ){
        my $aqflag =0;
        foreach $aqshare ( @rsyncRestoreLimitToShare ){
            if ( $remoteDir  =~ /^$aqshare.*/ ) {
                $aqflag = 1;
            }
        }
        if( $aqflag == 0 ){
            my $str = "Erreur vous devez restorer dans 
$rsyncRestoreLimitToShare uniquement ". ":$conf->{RsyncdClientPort}:
$err\n";
            $t->{XferLOG}->write(\$str);
            $t->{hostError} = $err;
            return;
        }
    }
  



but the code just fail and prevent the restoring in any case. Of course
i am not a dev so my perl is an 'cut and paste from how-to' type :(

Anyone would like to help ?

the goal is to verify that the restoredir start by one of the share we
want to limit to. The idea is to have in the config file:

 $rsyncRestoreLimitToShare = [ '/var','/etc'];  so backuppc does
not allow to restore anywere else.

Anyone interested to help ?

-- 
Cordialement,
Ghislain




smime.p7s
Description: S/MIME Cryptographic Signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] Limiting restore operation to a share or sub directory

2008-01-25 Thread ADNET Ghislain




Hi,

  I use backup pc to save virtualized guest.  SSH runs on the host and
access 

/vservers/server1
/vservers/server2
etc...

 I use client $Conf{ClientNameAlias} to separate the acces but the
issue is that the restore command could be used to crunch any files on
the HOST. Is there any way to restrict the restore to a share ? 


  $Conf{RsyncClientCmd}
= '$sshPath -q -x -l root $host $rsyncPath $argList+';
  
Full command to run rsync on the client machine. The following
variables
are substituted at run-time:
   $host   host name being backed up
   $hostIP host's IP address
   $shareName  share name to backup (ie: top-level directory path)
   $rsyncPath  same as $Conf{RsyncClientPath}
   $sshPathsame as $Conf{SshPath}
   $argListargument list, built from $Conf{RsyncArgs},
   $shareName, $Conf{BackupFilesExclude} and $Conf{BackupFilesOnly}
  
  
  

i tried :

$Conf{RsyncClientRestoreCmd}  = '$sshPath  -o CompressionLevel=0 -q -x
-l aqbackup $host $rsyncPath $Conf{RsyncArgs} /vservers/server2 
$Conf{BackupFilesExclude}  $Conf{BackupFilesOnly}';

but it fails of course because it runs:

Running: /usr/bin/ssh -o CompressionLevel=0 -q -x -l backupuser myhost.com /usr/bin/sudo\ /usr/bin/rsync \$Conf\{RsyncArgs\} /vservers/server2 \$Conf\{BackupFilesExclude\} \$Conf\{BackupFilesOnly\}



  Anyone as an ideas to secure this kind of setup or am i doomed to
install ssh on every guest ?


ps: $Conf{ClientNameAlias} is said to overwrite the real host name but
it is not escaped in the logs = information leak ;)


-- 
Cordialement,
Ghislain




smime.p7s
Description: S/MIME Cryptographic Signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] backuppc 3.0 blackout

2007-02-21 Thread ADNET Ghislain

Hi,

I use a blackout like this:


# pas de backup sauf entre entre 1h et 6h
$Conf{BlackoutPeriods} = [
   {
   hourBegin =>   6.5,
   hourEnd   =>   0.5,
   weekDays  =>   [0, 1, 2, 3, 4, 5, 6],
   },
];

so it should stop backups after 6h30 and start again when it hits 0h30 am

and in the /pc/hostname.pl i do :

do "/etc/BackupPC/blackout-1-6.pl";





but even with that i have the backuppc service that backup my host in 
the middle of the day, the date of the server is ok. I restarted it 
several time but it continue to launch backup in middle of the day. Any 
idea of what is wrong here ?





--
Cordialement,
Ghislain


smime.p7s
Description: S/MIME Cryptographic Signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] backup pc 3.0 do not want to limit the backup

2007-02-13 Thread ADNET Ghislain

Hello,

 I have made a fresh  install of backuppc 3.0. All seems ok but i have trouble backuping the hosts as backuppc ignore 
the directory list i want to backup. The host file is :


-rw-r-  1 backuppc www-data 387 Feb 13 08:46 
/etc/BackupPC/pc/myservername.pl

$Conf{BackupFilesOnly} = {
  '/' => [
'/etc',
'/usr/local/etc'
  ]
};
$Conf{RsyncClientCmd} = '$sshPath -q -x -l aqbackup $host $rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l aqbackup $host $rsyncPath 
$argList+';
$Conf{RsyncShareName} = [
  '/'
];
$Conf{BackupFilesExclude} = {
  '/' => [
'/var/log',
'/proc'
  ]
};
$Conf{XferMethod} = 'rsync';


when i do a ps i got:


/usr/bin/rsync --server --sender --numeric-ids --perms --owner --group -D 
--links
--hard-links --times --block-size=2048 --recursive --ignore-times . /

so it tries to backup all the server and not only the part i want. Even changing the configuration in the 
/etc/Backuppc/config.pl to put the same directories do not work.  Any idea ?



--
Cordialement,
Ghislain


smime.p7s
Description: S/MIME Cryptographic Signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Virtual server backup

2006-12-20 Thread Adnet Ghislain

Hi,

 I wanted to knwo what would be the best way in your opinion to backup 
a bunch of virtual servers ?


For exemple i have  servers in

/vserver/vserverhostname

i have the same configuration for all the vservers's backup and  
ssh/rsync is only available from the main host.  I wonder if i can use:


$Conf{RsyncShareName} 

 = ['/vserver/titi.com', '/vserver/tutu.com','/'];

on the main one
and use 



$Conf{ClientNameAlias} = mainhost.com;
$Conf{RsyncShareName} = '/vserver/titi.com';
$Conf{BackupFilesOnly} = ['/etc', '/boot','/var/spool/cron', '/usr/local/etc'];
$Conf{BackupFilesExclude} = ['/tmp', '/var/tmp', '/proc','/dev', '/var/run', 
'/var/log'];


and

$Conf{ClientNameAlias} = mainhost.com;
$Conf{RsyncShareName} = '/vserver/tutu.com';
$Conf{BackupFilesOnly} = ['/etc', '/boot','/var/spool/cron', '/usr/local/etc'];
$Conf{BackupFilesExclude} = ['/tmp', '/var/tmp', '/proc','/dev', '/var/run', 
'/var/log'];

and on the main host:
$Conf{RsyncShareName} = '/';
$Conf{BackupFilesOnly} = ['/etc', '/boot','/var/spool/cron', '/usr/local/etc'];
$Conf{BackupFilesExclude} = ['/tmp', '/var/tmp', '/proc','/dev', '/var/run', 
'/var/log'];


this way it would seems that the servers will be backuped individualy each one 
with a config file so i can give acces to the webadmin for those hosts and each 
one acces the part it own securely from the others ??
Is it the good choice, any idea if this will work or if we can do better ?

- 


Cordialement,
Ghislain

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] sshd config restricting root access

2006-09-08 Thread Adnet Ghislain
I was not able to make forced command work as you have to type the whole 
command and not just the start plus wilcard. If anyone knows how to do 
it i will ba happy to know :)


Cordialement,
Ghislain ADNET.
AQUEO


Hi List,

I have recently had to lock down one of the machines I backup due to a
corporate audit. The net result is that the (public-private-key) root 
login that backuppc uses no longer works. The manual for sshd_config 
states that "PermitRootLogin" can be set to "forced-commands-only" and 
that these commands can be specified in the authorized keys file.


I can't get this to work though and I wondered if anyone on the list had 
managed to do it & if they could shed any light?


Dylan
  


smime.p7s
Description: S/MIME Cryptographic Signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] ssh options for special case

2006-06-08 Thread ADNET Ghislain
Hi,

 I try to setup ssh flags for backups for one host that has several ssh
server running on the same ip (different port, this is a virtualisez
machine):

-o \'StrictHostKeyChecking no\'
-o "StrictHostKeyChecking no"

does not work in $Conf{RsyncClientCmd} =  , do you have any hints about
this one ?  I do not want it to be the default method, i just need this
option for some hosts.

-- 
Cordialement,
Ghislain ADNET.


___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/