Re: [BackupPC-users] Failing hard at Rsync

2013-11-25 Thread Chris Stone
Try it using the backup server user. Put your private key in your backuppc
user's .ssh directory and then as root on your backup server run:

su - backuppc

and now that you are the backuppc user, try:

ssh root@clientHostName whoami

and see if that works. Once this works, you should be all set.


Chris



On Mon, Nov 25, 2013 at 4:00 PM, derr12 wrote:

> I should note that i successfully logged into the client machine via ssl
> from the backuppc server without needing a password;
>
> "ssh -l root clientHostName whoami"
>
> and it spit out root for me.
>
> +--
> |This was sent by derr...@masconcable.ca via Backup Central.
> |Forward SPAM to ab...@backupcentral.com.
> +--
>
>
>
>
> --
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up
> now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> ___
> 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/
>



-- 
Chris Stone
AxisInternet, Inc.
www.axint.net
--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk___
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] cygwin-rsyncd outdated No recent version ?

2013-07-10 Thread Chris Stone
would love to see this as well!


Chris



On Wed, Jul 10, 2013 at 11:33 AM, Xuo  wrote:

>  Hi,
>
> I am interested in this feature.
>
> Regards.
>
> Xuo.
>
> Le 09/07/2013 17:28, Ray Frush a écrit :
>
>
>  Here at $WORK we created a "Nullsoft Scriptable Install System" (
> http://nsis.sourceforge.net/Main_Page) package that creates an install
> package for the Cygwin Rsync(d) 3.0.9.
>
>  We created the package by copying just the rsync, and cygrunsrv.exe (and
> needed DLLs) from a full Cygwin.  The installer puts rsync in C:\rsync, and
> installs and starts the rsyncd service.
>
>  We include in the package our site specific rsyncd.conf and
> rsyncd.secrets and additional files in the package that submit a call to
> our ticketing system to alert us that a new machine is ready to be added to
> BackupPC.
>
>  Because of our customization, I can't just release our package into the
> wild.   If there's enough interest, I can "sanitize" our build tree and I
> can share our NSIS config so others can easily customize and build their
> own rsyncd installers.
>
>
>
>
>
>  --
> Ray Frush   "Either you are part of the solution
> T:970.288.6223   or part of the precipitate."
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>  Avago Technologies, Inc. | Technical Computing | IT Engineer
>
>
> --
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro 
> today!http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>
>
>
> ___
> BackupPC-users mailing listbackuppc-us...@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
>
>
>
> --
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> ___
> 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/
>
>


-- 
Chris Stone
AxisInternet, Inc.
www.axint.net
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk___
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] Backuppc errors

2013-03-29 Thread Chris Stone
Yes - that's why I'd said  "On your backuppc server, su to your backuppc
user and run:" - gotta doing it as the backuppc user.  ;-)


Chris


On Fri, Mar 29, 2013 at 1:28 PM, Curtis Vaughan  wrote:

> Les was on the money. It was the fact that /var/lib/backuppc is the home
> directory for backuppc and I wasn't testing as backuppc. Reinstalling the
> keys to the other server fixed the prob!
>
>
>
> --
> Own the Future-Intel(R) Level Up Game Demo Contest 2013
> Rise to greatness in Intel's independent game demo contest. Compete
> for recognition, cash, and the chance to get your game on Steam.
> $5K grand prize plus 10 genre and skill prizes. Submit your demo
> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
> ___
> 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/
>



-- 
Chris Stone
AxisInternet, Inc.
www.axint.net
--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2___
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] Backuppc errors

2013-03-29 Thread Chris Stone
I would still check out your keys. On your backuppc server, su to your
backuppc user and run:

ssh root@one-of-your-servers-to-be-backed-up whoami

and you should not get anything returned but root. You might get prompted
to re-accept the SSH key - accept it and run again and you should get just
root again.

Or, if you get a different error, fix that and you should be set.

Chris


On Fri, Mar 29, 2013 at 1:00 PM, Curtis Vaughan  wrote:

> After losing my /var/lib/backuppc drive, I have installed a new drive and
> mounted it. But now any computer I try to backup results in the following
> error:
>
> Got fatal error during xfer (Unable to read 4 bytes)
> Backup aborted (Unable to read 4 bytes)
>
> Looking through various posts one would think the error has to do with
> having properly setup public keys for the servers. But those are fine.
> Nothing has changed there. Permissions throughout the new drive are set to:
>
> :/var/lib/backuppc# ls -la
> total 4
> drwxr-sr-x 10 backuppc backuppc  224 Mar 20 10:54 .
> drwxr-xr-x 43 root root 4096 Aug 24  2012 ..
> drwxr-sr-x 18 backuppc backuppc  432 Mar 29 11:48 cpool
> drwxr-sr-x  2 backuppc backuppc  464 Mar 29 11:46 log
> drwxr-sr-x 11 backuppc backuppc  384 Mar 29 11:46 pc
> drwxr-sr-x 10 backuppc backuppc  352 Mar 20 10:51 pool
> drwx--S---  2 backuppc backuppc   80 Mar 29 11:43 .ssh
> drwxr-sr-x  2 backuppc backuppc   48 Mar 29 06:03 trash
>
>
> What am I missing?
> Thanks!
>
>
>
> --
> Own the Future-Intel(R) Level Up Game Demo Contest 2013
> Rise to greatness in Intel's independent game demo contest. Compete
> for recognition, cash, and the chance to get your game on Steam.
> $5K grand prize plus 10 genre and skill prizes. Submit your demo
> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
> ___
> 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/
>



-- 
Chris Stone
AxisInternet, Inc.
www.axint.net
--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2___
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] Multi-tenancy for web interface possible

2012-06-21 Thread Chris Stone
On Thu, Jun 21, 2012 at 2:05 PM, Kameleon  wrote:

> Yes. So now I have to rethink the way I initially set this up. I put
> in root as the user on each server thinking that is what it used to
> log into the server. The way the documentation reads it is only who
> can administer that server and its backups but was not clear, to me,
> that it didn't have to be root. Now I see that the "root" login to the
> server is specified on the "rsyncclientcommand". I will be changing
> this asap. Thanks for the input guys.
>

With the http authentication, the http users are separate from your system
users. A user setup for http authentication called root would not the same
as the system root user. Would be confusing though, so wouldn't recommend
creating a user called root for the web access - use admin or something
like that instead - or better yet, call it bob or something not related to
admin type names.


Chris

-- 
Chris Stone
AxisInternet, Inc.
www.axint.net
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Multi-tenancy for web interface possible

2012-06-21 Thread Chris Stone
On Thu, Jun 21, 2012 at 11:29 AM, Kameleon  wrote:

> Well I think we never used any of the authentication and it didn't
> setup a .htaccess anywhere. Since we are in the midst of moving the
> server and going from ubuntu to centos I will be sure to fully
> configure it correctly this time. Thanks again.
>

Hope you had it firewalled! No authentication would open access to all of
your files by anybody that wanted them....


Chris

-- 
Chris Stone
AxisInternet, Inc.
www.axint.net
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Multi-tenancy for web interface possible

2012-06-21 Thread Chris Stone
Donny,

On Thu, Jun 21, 2012 at 10:59 AM, Kameleon  wrote:

> with user backuppc. This user is able to see every host we have. So I
> need to do some digging and remember how we setup authentication. But
> it should be as easy as adding another user to whatever mechanism we
> used and putting "user root More users newusername" on their hosts
> corect?
>
>
The web interfaces uses http authentication and sets up (by default as I
recall) a .htaccess file in your cgi-bin directory (e.g. /var/www/cgi-bin)
like:

[root@axisbackup ~]# cat /var/www/cgi-bin/.htaccess
AuthGroupFile /etc/httpd/conf/group# <--- change path as needed
AuthUserFile /etc/httpd/conf/passwd # <--- change path as needed
AuthType basic
AuthName "AxisBackup Access"
require valid-user

So, with this, you'd add a new user with:

htpasswd /etc/httpd/conf/passwd newusername

You'll be prompted for the password and then that user (newusername) will
be added to the /etc/httpd/conf/passwd file and will then be able to log
in. Link them to hosts in the backuppc hosts file and you should be all set.



Chris


-- 
Chris Stone
AxisInternet, Inc.
www.axint.net
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Multi-tenancy for web interface possible

2012-06-21 Thread Chris Stone
Donny,

On Thu, Jun 21, 2012 at 10:24 AM, Kameleon  wrote:

> We have one central backuppc server that we have been using for some
> years now. In our agency we actually have another IT group that
> handles a small subset of users. That groups backup server has crashed
> and we are looking at adding them to our backuppc server. However we
> do not want them to have access to our hosts and they need their own
> login. We would just setup another backuppc server for them but we
> want to utilize the de-duplication characteristics of backuppc to the
> maximum, hence sharing our server with them. Is this possible?
>

Sure you can - we do that here on 3 backup servers we run with BackupPC.
Just add their login user names to the BackupPC hosts file for the hosts
that login should have access to. For example, for the example hosts file:

hostdhcpusermoreUsers # <--- do not edit
this line
farside0   craig   jill,jeff # <--- example static
IP host entry
farside2  0   craig

In this case, craig, jill and jeff would have access to the computer
farside. No other users would have access to farside - nor would they even
see that it's setup on the server. For farside2, only craig would have
access - jill and jeff would not.



Chris


-- 
Chris Stone
AxisInternet, Inc.
www.axint.net
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Resources for fixing File::RsyncP

2007-04-11 Thread Chris Stone

> Thanks for the reply.  My system is running Ubuntu, so I don't know if this
> yum repository is compatible.  The libfile-rsyncp-perl package is only version
> 0.52, and I don't know what source to add that might have an updated version
> 0.68.  Does anyone else here use ubuntu and know of an updated package?

Try:

cpan install File::RsyncP

or

perl -MCPAN -e 'install File::RsyncP'


Chris



-
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] Upgrading to 3.0 -- RESOLVED

2006-08-14 Thread Chris Stone
On Fri, 2006-08-11 at 20:53 -0700, Craig Barratt wrote:
> Chris Stone writes:
> 
> > Had a bit of time to spend on this and I did get the upgrade installed
> > without having to hack the scripts at all. I DID have to upgrade the
> > Encode package to 2.18 and that took care of it all and the install
> > completed and backuppc started successfully.
> 
> Good detective work!

Thanks! ;-D

> Yes, for some reason your older version of Encode made the
> check for BackupPC::FileZIO fail.  What is your version of
> perl?
> 

[EMAIL PROTECTED] conf]# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
osname=linux, osvers=2.6.8-1.521smp,
archname=i386-linux-thread-multi
uname='linux jane.spidermaker.fedoralegacy.org 2.6.8-1.521smp #1 smp
mon aug 16 09:25:06 edt 2004 i686 athlon i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686
-Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red
Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux
-Dvendorprefix=/usr -Dsiteprefix=/usr
-Dotherlibdirs=/usr/lib/perl5/5.8.0 -Duseshrplib -Dusethreads
-Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db
-Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio
-Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less
-isr'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -g -pipe -march=i386 -mcpu=i686',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.2.2 20030222 (Red Hat Linux 3.2.2-5)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.2'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'

Note though that I have had to go back to 2.x since 3.x was not also
performing any backups and I just don't have time right now to do a lot
of troubleshooting on it. The logs showed backups being performed, but
none were shown on the system home pages and no errors in any of the
logs. Would need to check out the systems and see if the logins for
rsync over ssh occurred or not, etc - but as I noted, time is too short
right now. Will try 3.x again at a later stage in development most
likely, or if I get more time to try again and do some troubleshooting.


Chris



-
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/


Re: [BackupPC-users] Upgrading to 3.0 -- RESOLVED

2006-08-11 Thread Chris Stone
Had a bit of time to spend on this and I did get the upgrade installed
without having to hack the scripts at all. I DID have to upgrade the
Encode package to 2.18 and that took care of it all and the install
completed and backuppc started successfully.


On Fri, 2006-08-11 at 12:51 -0600, Chris Stone wrote:
> Sorry, thought I was running 2.1.1, but checking again, the server is
> actually running 2.1.2.p0. But, again, it's dieing at the top of the
> configure.pl script - right when it is checking the packages. I did
> comment out that check and reran configure.pl and completed the
> installation upgrade. When trying to start it though I got:
> 
> [EMAIL PROTECTED] BackupPC-3.0.0beta1]# service backuppc start
> Starting BackupPC: Too many arguments for Encode::decode_utf8
> at /usr/local/BackupPC/lib/BackupPC/FileZIO.pm line 252, near "0)"
> Compilation failed in require at /usr/local/BackupPC/bin/BackupPC line
> 61.
> BEGIN failed--compilation aborted at /usr/local/BackupPC/bin/BackupPC
> line 61.
>[FAILED]
> 
> So, I reinstalled 2.1.2.p0.
> 
> Without commenting out the package check in configure.pl, and using perl
> -W, I get:
> 
> [EMAIL PROTECTED] BackupPC-3.0.0beta1]# perl -W ./configure.pl
> Name "main::value" used only once: possible typo at ./configure.pl line
> 825.
> Statement unlikely to be reached at lib/BackupPC/Lib.pm line 1088.
> (Maybe you meant system() when you said exec()?)
> Statement unlikely to be reached at lib/BackupPC/Lib.pm line 1153.
> (Maybe you meant system() when you said exec()?)
> Subroutine BackupPC::FileZIO::Z_OK redefined
> at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Compress/Zlib.pm 
> line 1
> Subroutine BackupPC::FileZIO::Z_STREAM_END redefined
> at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Compress/Zlib.pm 
> line 1
> Ambiguous call resolved as CORE::open(), qualify as such or use & at
> lib/BackupPC/FileZIO.pm line 408.
> Ambiguous call resolved as CORE::close(), qualify as such or use & at
> lib/BackupPC/FileZIO.pm line 413.
> 
> BackupPC cannot find the package BackupPC::FileZIO, which is included in
> the
> BackupPC distribution.  This probably means you did not cd to the
> unpacked BackupPC distribution before running configure.pl, eg:
> 
> cd BackupPC-3.0.0beta1
> ./configure.pl
> 
> Please try again.
> 
> So, it's looking offhand to me that there's a problem somewhere with the
> distributed BackupPC/FileZIO.pm package.
> 
> 
> Chris
> 
> On Fri, 2006-08-11 at 22:21 +1000, Les Stott wrote:
> > >> How about trying to upgrade to 2.1.2, then try going up to 3
> > >> 
> > >
> > > Not getting far enough in the script for that - at this point in the
> > > configure.pl script, it doesn't even know or care if it's a new
> > > installation or an upgrade.
> > >   
> > ???
> > 
> > so you downloaded 2.1.2 and tried to upgrade to that and it didn't work?
> > 
> > if you cant upgrade to 2.1.2 either then its not likely to be BackupPC. 
> > I'd suggest checking all your perl and environment variables, paths etc.
> > 
> > What OS are you running?
> > 
> > 
> > Les
> > 
> > -
> > 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/
> 
> 
> -
> 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/



-
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/


Re: [BackupPC-users] Upgrading to 3.0

2006-08-11 Thread Chris Stone
Sorry, thought I was running 2.1.1, but checking again, the server is
actually running 2.1.2.p0. But, again, it's dieing at the top of the
configure.pl script - right when it is checking the packages. I did
comment out that check and reran configure.pl and completed the
installation upgrade. When trying to start it though I got:

[EMAIL PROTECTED] BackupPC-3.0.0beta1]# service backuppc start
Starting BackupPC: Too many arguments for Encode::decode_utf8
at /usr/local/BackupPC/lib/BackupPC/FileZIO.pm line 252, near "0)"
Compilation failed in require at /usr/local/BackupPC/bin/BackupPC line
61.
BEGIN failed--compilation aborted at /usr/local/BackupPC/bin/BackupPC
line 61.
   [FAILED]

So, I reinstalled 2.1.2.p0.

Without commenting out the package check in configure.pl, and using perl
-W, I get:

[EMAIL PROTECTED] BackupPC-3.0.0beta1]# perl -W ./configure.pl
Name "main::value" used only once: possible typo at ./configure.pl line
825.
Statement unlikely to be reached at lib/BackupPC/Lib.pm line 1088.
(Maybe you meant system() when you said exec()?)
Statement unlikely to be reached at lib/BackupPC/Lib.pm line 1153.
(Maybe you meant system() when you said exec()?)
Subroutine BackupPC::FileZIO::Z_OK redefined
at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Compress/Zlib.pm line 
1
Subroutine BackupPC::FileZIO::Z_STREAM_END redefined
at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Compress/Zlib.pm line 
1
Ambiguous call resolved as CORE::open(), qualify as such or use & at
lib/BackupPC/FileZIO.pm line 408.
Ambiguous call resolved as CORE::close(), qualify as such or use & at
lib/BackupPC/FileZIO.pm line 413.

BackupPC cannot find the package BackupPC::FileZIO, which is included in
the
BackupPC distribution.  This probably means you did not cd to the
unpacked BackupPC distribution before running configure.pl, eg:

cd BackupPC-3.0.0beta1
./configure.pl

Please try again.

So, it's looking offhand to me that there's a problem somewhere with the
distributed BackupPC/FileZIO.pm package.


Chris

On Fri, 2006-08-11 at 22:21 +1000, Les Stott wrote:
> >> How about trying to upgrade to 2.1.2, then try going up to 3
> >> 
> >
> > Not getting far enough in the script for that - at this point in the
> > configure.pl script, it doesn't even know or care if it's a new
> > installation or an upgrade.
> >   
> ???
> 
> so you downloaded 2.1.2 and tried to upgrade to that and it didn't work?
> 
> if you cant upgrade to 2.1.2 either then its not likely to be BackupPC. 
> I'd suggest checking all your perl and environment variables, paths etc.
> 
> What OS are you running?
> 
> 
> Les
> 
> -
> 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/


-
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/


Re: [BackupPC-users] Upgrading to 3.0

2006-08-10 Thread Chris Stone
On Thu, 2006-08-10 at 13:22 +1000, Les Stott wrote:
> Chris Stone wrote: 
> > > > > >   
> > > > > > Just tried this myself (upgrade existing 2.1.1 installation) and 
> > > > > > when
> > > > > > running configure.pl, I get:
> > > > > > 
> > > > > > 
> > > > > > [EMAIL PROTECTED] BackupPC-3.0.0beta1]# ./configure.pl
> > > > > > 
> > > > > > BackupPC cannot find the package BackupPC::FileZIO, which is 
> > > > > > included in
> > > > > > the
> > > > > > BackupPC distribution.  This probably means you did not cd to the
> > > > > > unpacked BackupPC distribution before running configure.pl, eg:
> > > > > > 
> > > > > > cd BackupPC-3.0.0beta1
> > > > > > ./configure.pl
> > > > > > 
> > > > > > Please try again.
> > > > > > 
> > > > > >   
> > > > > >   
> > > > > >   
> > > > > you should actually run the command
> > > > > 
> > > > > cd BackupPC-3.0.0beta1
> > > > > perl configure.pl
> > > > > 
> > > > > 
> > > > Yep - did that too and makes no difference - same error both ways.
> > > > 
> > > > 
> > > >   
> > > >   
> > > hmmm
> > > 
> > > The script must be run as root,
> > > running either "perl configure.pl" or "./configure.pl" from inside the
> > > extracted directory depends on your distribution and where perl is
> > > located.
> > > 
> > > Other than that i've never seen that before, perhaps others on the
> > > list will be able to help out
> > > 
> > 
> > Yes - running as root...
> > 
> > 
> >   
> perhaps its got something to do with trying to upgrade from 2.1.1.
> When i did it i upgraded from 2.1.2.
> 
> How about trying to upgrade to 2.1.2, then try going up to 3

Not getting far enough in the script for that - at this point in the
configure.pl script, it doesn't even know or care if it's a new
installation or an upgrade.


Chris



-
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/


Re: [BackupPC-users] Upgrading to 3.0

2006-08-09 Thread Chris Stone
On Thu, 2006-08-10 at 12:27 +1000, Les Stott wrote:
> Chris Stone wrote: 
> > On Thu, 2006-08-10 at 11:26 +1000, Les Stott wrote:
> >   
> > > Chris Stone wrote: 
> > > 
> > > > On Thu, 2006-08-10 at 10:51 +1000, Les Stott wrote:
> > > >   
> > > > Just tried this myself (upgrade existing 2.1.1 installation) and when
> > > > running configure.pl, I get:
> > > > 
> > > > 
> > > > [EMAIL PROTECTED] BackupPC-3.0.0beta1]# ./configure.pl
> > > > 
> > > > BackupPC cannot find the package BackupPC::FileZIO, which is included in
> > > > the
> > > > BackupPC distribution.  This probably means you did not cd to the
> > > > unpacked BackupPC distribution before running configure.pl, eg:
> > > > 
> > > > cd BackupPC-3.0.0beta1
> > > > ./configure.pl
> > > > 
> > > > Please try again.
> > > > 
> > > >   
> > > >   
> > > you should actually run the command
> > > 
> > > cd BackupPC-3.0.0beta1
> > > perl configure.pl
> > > 
> > 
> > Yep - did that too and makes no difference - same error both ways.
> > 
> > 
> >   
> hmmm
> 
> The script must be run as root,
> running either "perl configure.pl" or "./configure.pl" from inside the
> extracted directory depends on your distribution and where perl is
> located.
> 
> Other than that i've never seen that before, perhaps others on the
> list will be able to help out

Yes - running as root...


-- 
Chris Stone <[EMAIL PROTECTED]>
AxisInternet, Inc.


-
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/


Re: [BackupPC-users] Upgrading to 3.0

2006-08-09 Thread Chris Stone
On Thu, 2006-08-10 at 11:26 +1000, Les Stott wrote:
> Chris Stone wrote: 
> > On Thu, 2006-08-10 at 10:51 +1000, Les Stott wrote:
> >   
> > Just tried this myself (upgrade existing 2.1.1 installation) and when
> > running configure.pl, I get:
> > 
> > 
> > [EMAIL PROTECTED] BackupPC-3.0.0beta1]# ./configure.pl
> > 
> > BackupPC cannot find the package BackupPC::FileZIO, which is included in
> > the
> > BackupPC distribution.  This probably means you did not cd to the
> > unpacked BackupPC distribution before running configure.pl, eg:
> > 
> > cd BackupPC-3.0.0beta1
> > ./configure.pl
> > 
> > Please try again.
> > 
> >   
> 
> you should actually run the command
> 
> cd BackupPC-3.0.0beta1
> perl configure.pl

Yep - did that too and makes no difference - same error both ways.


-- 
Chris Stone <[EMAIL PROTECTED]>
AxisInternet, Inc.


-
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/


Re: [BackupPC-users] Upgrading to 3.0

2006-08-09 Thread Chris Stone
On Thu, 2006-08-10 at 10:51 +1000, Les Stott wrote:
> [EMAIL PROTECTED] wrote:
> Hi I just did this last night in about 15 minutes.
> 
> stop backuppc
> 
> first go to CPAN and install "File::RsyncP" to upgrade it to .0.64
> 
> Then download the tarball, extract it and run
> 
> perl configure.pl
> 
> Then when it prompts you, tell it where your current config.pl file is, 
> It will then work out its an upgrade and handle the rest.
> 
> You then have to manually update the init.d script as per your flavour 
> of Linux.

Just tried this myself (upgrade existing 2.1.1 installation) and when
running configure.pl, I get:


[EMAIL PROTECTED] BackupPC-3.0.0beta1]# ./configure.pl

BackupPC cannot find the package BackupPC::FileZIO, which is included in
the
BackupPC distribution.  This probably means you did not cd to the
unpacked BackupPC distribution before running configure.pl, eg:

cd BackupPC-3.0.0beta1
./configure.pl

Please try again.


Of course, I am in the right directory and BackupPC/FileZIO.pm exists:


[EMAIL PROTECTED] BackupPC-3.0.0beta1]# ll lib/BackupPC/
total 144
-r--r--r--1 root root 7997 Jul 30 22:45 Attrib.pm
drwxr-xr-x2 root root 4096 Jul 30 22:45 CGI
drwxr-xr-x2 root root 4096 Jul 30 22:45 Config
-r--r--r--1 root root11310 Jul 30 22:45 Config.pm
-r--r--r--1 root root12934 Jul 30 22:45 FileZIO.pm
drwxr-xr-x2 root root 4096 Jul 30 22:45 Lang
-r--r--r--1 root root33574 Jul 30 22:45 Lib.pm
-r--r--r--1 root root20832 Jul 30 22:45 PoolWrite.pm
drwxr-xr-x2 root root 4096 Jul 30 22:45 Storage
-r--r--r--1 root root 2756 Jul 30 22:45 Storage.pm
-r--r--r--1 root root17638 Jul 30 22:45 View.pm
drwxr-xr-x2 root root 4096 Jul 30 22:45 Xfer
drwxr-xr-x2 root root 4096 Jul 30 22:45 Zip


Thought it might be something with the lastest beta tarball, so I also
tried this with the latest CSV code and same thing.

Ideas?


-- 
Chris Stone <[EMAIL PROTECTED]>
AxisInternet, Inc.


-
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/


Re: [BackupPC-users] rsyncd and outlook express

2005-09-21 Thread Chris Stone
On Wednesday 21 September 2005 05:35 pm, Jonathan Dumaresq wrote:
> I just finish to reinstall backuppc 2.1.2. But now i want to use rsynd as
> transfer methode. I have set everything on the clien and on the server
> side. Here my rsyncd.conf on my xp.
[snip-snip]
> [email]
> path = C:/Documents and Settings/dumarjo/Local Settings/Application
> Data/Identities/{93EF7C18-6F68-4F2B-97A3-CDEB38CB945B}/Microsoft/Outlook
> Express comment = E-MAIL
> auth users = backup
> secrets file = c:/rsyncd/rsyncd.secrets
> # hosts allow = 172.16.0.17
> strict modes = false
> read only = false
> list = false
>
> every backup is correct except the email one. I always get a chdir error on
> backuppc. I would like to know how i can resolve this problem. It seam that
> the { and } is the problem ???

Have you tried escaping the braces? For example:

path = C:/Documents and Settings/dumarjo/Local Settings/Application 
Data/Identities/\{93EF7C18-6F68-4F2B-97A3-CDEB38CB945B\}/Microsoft/Outlook


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
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-09-06 Thread Chris Stone




Why might I be getting multiple calls to DumpPostUserCmd, and how can
I prevent that?



I can't see how DumpPostUserCmd can get run twice, since only
a single BackupPC_dump can be run per client.  That said, it
could be caused by $Conf{ClientTimeout} aborting the first run
during the archive phase.  I'd try increasing $Conf{ClientTimeout}
by a significant factor.

Craig



Great -- that makes sense! I changed the default 7200 to 72000 and  
will see how it goes. 20 hours should be long enough, I figure...


Thanks again,

--Chris


---
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-09-01 Thread Chris Stone

On Aug 31, 2005, at 6:09 PM, Craig Barratt wrote:


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.


Oh, no problem at all, Craig. Sorry if my impatience sounded like it  
was directed to you; I was hoping to hear from anyone on the list.






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.


Great, thanks.

I'm going to look at the code, but I wonder if there's a way to have  
the backup set to "full" and not "partial" *before* DumpPostUserCmd  
runs, and stay that way regardless of the exit status of the  
DumpPostUserCmd script...


Thanks again,

--Chris




---
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}  = '

Re: [BackupPC-users] Redundant calls to DumpPostUserCmd

2005-08-30 Thread Chris Stone
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,14 
,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}   = &#x

[BackupPC-users] Redundant calls to DumpPostUserCmd

2005-08-29 Thread Chris Stone

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,14, 
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{TarShareName} = '/';
$Conf{FullPeriod} = 13.97;
$Conf{IncrPeriod} = 0.97;
$Conf{FullKeepCnt} = 1;
$Conf{FullKeepCntMin} = 1;
$Conf{FullAgeMax} = 60;
$Conf{IncrKeepCnt} = 13;
$Conf{IncrKeepCntMin} = 1;
$Conf{IncrAgeMax} = 30;
$Conf{PartialAgeMax} = 3;
$Conf{IncrFill} = 0;
$Conf{RestoreInfoKeepCnt} = 10;
$Conf{ArchiveInfoKeepCnt} = 10;
$Conf{BackupFilesOnly} = undef;
$Conf{BackupFilesExclude} = undef;
$Conf{BlackoutBadPingLimit} = 3;
$Conf{BlackoutGoodCnt}  = 9;
$Conf