Kenneth Porter | 5 Aug 15:37 2014

BackupPC_tarPCCopy usage

Refer to:

<http://backuppc.sourceforge.net/faq/BackupPC.html#Other-installation-topics>

I find myself needing to copy the pool as my external drive has run out of 
space, so I'm now attempting to use this command to recreate the link farm.

The FAQ says to use this command:

__INSTALLDIR__/bin/BackupPC_tarPCCopy __TOPDIR__/pc | tar xvPf -

After studying the code, I find it needs to be this:

__INSTALLDIR__/bin/BackupPC_tarPCCopy __TOPDIR__/pc/HOST | tar xvPf -

where HOST is one of the backup clients. (The text above the example 
command says this, but the example is wrong, because it doesn't specify a 
subdirectory of pc.)

Also, the command fails when one of the files is read and causes a short 
read (ie. zero bytes read but the file length is non-zero). I think this is 
because the filesystem needs checking after filling up, so I'm doing that 
now.

The error message is:

substr outside of string at /usr/share/BackupPC/lib/BackupPC/Lib.pm line 
876.

The real error happens up in TarWriteFile when the compressed file in 
(Continue reading)

Robert Wooden | 3 Aug 00:02 2014
Picon
Picon

no ssh access backuppc server to Windows 7 client

I have been using BackupPC for many years with Linux clients. All has always gone well.

Recently it has become necessary to add a Windows 7 client.

I downloaded the "cygwin-rsyncd-3.0.9.0_installer.exe" from sourceforge and installed it.

I have created a backuppc user (on the Windows box) that has backup and administrator rights. One of the next steps I did was to open port 22 for ssh access on the Windows box. When I go to the backuppc server, I cannot ssh into the windows box. So, if I can't ssh in, backuppc does not have access to the windows box. The server can ping the windows box ipaddress.

Does anyone know what log files I can 'tail' to figure out why I cannot ssh into the Windows box from the backuppc server?
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
BackupPC-users mailing list
BackupPC-users <at> lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
G.W. Haywood | 2 Aug 22:11 2014
Picon

Re: problem with windows 7 and smb

Hi there,

On Thu, 19 Jun 2014, Dale Renton wrote:

> On Wed, Apr 16, 2014 at 8:54 AM, Roberto Tagliaferri - Tosnet srl wrote:
> 
> >  Hi, i've 3 pc with win7 and i try to backup them..
> >
> > i,ve got the exclusion from a site (
> > http://www.cs.umd.edu/~cdunne/projs/backuppc_guide.html#7Vista ) but i
> > get a lot of error:
> >
> > Running: /usr/bin/smbclient \\\\fernando-win7\\C\$ -A [...snip...]
> > full backup started for share C$
> > Xfer PIDs are now 15923,15922
> > tar_re_search set
> > [ saltate 21 righe ]
> > NT_STATUS_ACCESS_DENIED listing \Documents and Settings\*
> 
> Could be related to this :
> 
> https://bugzilla.samba.org/show_bug.cgi?id=10605

I'm sure it is.  I've been having the same problem, and I found these
posts by the simple if tedious expedient of reading the BackupPC Users
List for the past five years.  Unfortunately I started reading at 2009
so it's taken a while to reach June 2014.  Did I miss an announcement?

I've now patched Samba 3.6.24 as per the diffs attached to the bugzilla
report and I'm waiting for the next scheduled backup which, will be the
one at 0300BST tomorrow (3 August 2014).  I'd schedule one but it's now
2100 and I've been working on this all day so it's time for something a
little more relaxing. :)

As it's a bit of a pain patching from the diffs in the bugzilla report
I'll gladly post a unified diff here if anybody's interested.

--

73,
Ged.

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
BackupPC-users mailing list
BackupPC-users <at> lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Ed Burgstaler | 31 Jul 22:01 2014
Picon

BackupPc files for Centos 7?

I would like to install BackupPc on a new Centos 7 install but BackupPc is not available on any of the repos and I even added the EPEL repo but no luck.

I’m looking for BackupPc from yum as well as the perl-File-RsyncP, perl-Net-FTP-AutoReconnect, perl-Net-FTP-RetrHandle files for Centos 7 if anyone knows where I could obtain all the files.

Much appreciated!

 

-Ed

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users <at> lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
Dr. Boris Neubert | 31 Jul 12:54 2014
Picon

BackupPC 3.3.0 on CentOS 6.5 with Plesk-generated VirtualHosts

Hi,

I installed BackupPC 3.3.0 via yum on CentOS 6.5 on a VPS in the
standard setup (CGI with setuid BackuPC_admin). The
BackupPC-3.3.0-2.el6.x86_64 package drops the BackupPC.conf Apache
configuration file (below) in Apache's default server configuration
directory. Added the perl-suidperl-5.10.1-136.el6.x86_64 and BackupPC
worked right out of the box. Great.

What caused me several hours of fruitless messing around with Apache's
config files was the following (IP addresses and host names for
illustrative purposes only):

The web interface can be accessed via the VPS's IP address: 
http://192.0.2.1/backuppc

But I get the "Premature end of script headers" issue if I use the host
name instead of the IP address:  http://backuppc.example.com/backuppc

This is probably related to the way the BackupPC_Admin program proceeds
in terms of perl script calls and hostnames.

example.com and backuppc.example.com are configured via VirtualHost
directives automatically by the Paralles Plesk Power Panel.

This is not strictly a BackupPC question. But maybe someone has a hint
for me anyway. In particular to what the BackupPC_Admin binary actually
does.

Kind regards,
Boris

/etc/httpd/conf.d/BackupPC.conf:

<Directory       /usr/share/BackupPC/≥
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC"

<IfModule mod_authz_core.c>
  # Apache 2.4
  <RequireAll>
    Require valid-user
    <RequireAny>
      Require local
    </RequireAny>
  </RequireAll>
</IfModule>
<IfModule !mod_authz_core.c>
  # Apache 2.2
  order deny,allow
  deny from all
  allow from 127.0.0.1
  allow from ::1
  allow from all
  require valid-user
</IfModule>

</Directory>

Alias           /BackupPC/images       
/usr/share/BackupPC/html/                                                                     

ScriptAlias     /BackupPC              
/usr/share/BackupPC/sbin/BackupPC_Admin                                                       

ScriptAlias     /backuppc              
/usr/share/BackupPC/sbin/BackupPC_Admin                                                       

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users <at> lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Don Fike | 30 Jul 20:57 2014
Picon

how to preserve deleted files in archive

Greetings,

I am using BackupPC 3.3.0 with the rsync Xfer method.
If a file is deleted on a host I would like to keep this file in the BackupPC backup.
Is this possible?
I looked at the --max-delete=0 option for rsync but it appears this will cause rsync to exit.

Thanks,

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users <at> lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
Hans Kraus | 29 Jul 18:45 2014

Pool and cpool vanished

Hi,

I had to fix the file system (xfs) of my backup server after a harddisk
failure.

BackupPC ran normally at first. But now it doesn't work any more. The
status output of the html ui is:
----------------%x-----------------%x---------------%x-----------------
0 pending backup requests from last scheduled wakeup,
0 pending user backup requests,
0 pending command requests,
Pool is 0.00GB comprising files and directories (as of 7/29 16:09),
Pool hashing gives repeated files with longest chain ,
Nightly cleanup removed 0 files of size 0.00GB (around 7/29 16:09),
Pool file system was recently at 46% (7/29 16:08), today's max is 48% 
(7/28 15:38) and yesterday's max was %.
----------------%x-----------------%x---------------%x-----------------
I ran the following tools:
BackupPC_fixupBackupSummary which reported no faults.
BackupPC_trashClean
BackupPC_nightly 0 255 wich gave following (truncated) output:
----------------%x-----------------%x---------------%x-----------------
BackupPC_stats 0 = pool,600,18,1634472,632024,0,0,0,0,0,7,1051
BackupPC_stats 1 = pool,620,17,1590832,497636,0,0,0,0,0,7,2150
BackupPC_stats 2 = pool,612,17,1443460,313624,0,0,0,0,0,5,3237
BackupPC_stats 3 = pool,594,17,1597464,591800,0,0,0,0,0,7,4286
:
:
BackupPC_stats 252 = pool,585,17,1776696,643628,0,0,0,0,0,7,270040
BackupPC_stats 253 = pool,592,17,1850752,742680,0,0,0,0,0,7,271076
BackupPC_stats 254 = pool,656,17,1889968,606956,0,0,0,0,0,7,272232
BackupPC_stats 255 = pool,584,17,1537300,264704,0,0,0,0,0,7,273269
BackupPC_stats 0 = cpool,9818,18,22314480,162060,0,0,438,1,0,2455,412024
BackupPC_stats 1 = cpool,9850,17,9937152,303072,0,0,455,4,0,2675,557908
BackupPC_stats 2 = cpool,9888,17,35467844,1856280,0,0,463,10,0,4379,697083
BackupPC_stats 3 = cpool,9662,17,17541856,294844,0,0,424,2,0,1351,833789
:
:
BackupPC_stats 252 = 
cpool,9874,17,48297752,144008,0,0,466,11,0,1705,35986948
BackupPC_stats 253 = cpool,9629,17,13529032,820444,0,0,416,1,0,1351,36124967
BackupPC_stats 254 = 
cpool,9742,17,107252096,1543676,0,0,454,2,0,3688,36270782
BackupPC_stats 255 = cpool,9753,17,17471688,304780,0,0,423,1,0,1303,36411243
BackupPC_nightly lock_off
----------------%x-----------------%x---------------%x-----------------
How do I restore BackupPC to normal working? I need a backup ...

Any help appreciated,
Hans

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users <at> lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Vaughan Roberts | 27 Jul 04:46 2014

Error in backuppc log file: unix bind() failed: No such file or directory

Hi,

 

I have been using backuppc on centos for over eight years, but now I am trying to upgrade my server to Centos 7 and unfortunately there does not seem to be a backuppc package for centos 7 as yet, so I tried using BackupPC-3.3.0-2.el6.x86_64.rpm.

 

Centos 7 uses apache 2.4 which required me to mess around with BackupPC.conf file, but I think that is now OK as I can access backuppc from a browser.

 

However, it looks like I have a permissions problem somewhere and I am not sure exactly what the cause is.  The extract from the BackupPC log file is:

 

Reading hosts file

Adding host …

Adding host …

Unix bind(): failed: No such file or directory

 

When I connect a browser to localhost/backuppc, I get the expected screen and I can browse the backups, but this screen also gives me this error:

Error: Unable to connect to BackupPC server
This CGI script (/sbin/BackupPC_Admin) is unable to connect to the BackupPC server on localhost port -1.
The error was: unix connect: No such file or directory.
Perhaps the BackupPC server is not running or there is a configuration error. Please report this to your Sys Admin.

Naturally the service is running and I have selinux in permissive mode.  This error occurs both on localhost and from a computer on my LAN, so it should not be a firewall issue.  I have checked permissions in /var/lib/BackupPC/* and they are all owned by backuppc: this directory is a mounted logical volume.  I use rsync on the pcs for backup purposes and at the moment no backups are occurring.

 

Can anyone point me to where this error is likely to be coming from?

 

OK, I have found the issue and my apologies for an empty posting (it was probably caused by me digitally signing my previous e-mail).  The issue was that /var/run/BackupPC did not exist.  I created that, but now I have another issue when I try and start a backup, this time in perl:

/usr/bin/perl: symbol lookup error: /usr/lib64/perl5/vendor_perl/auto/File/RsyncP/Digest/Digest.so undefined symbol: Perl_Gthr_key_ptr

 

After a bit of investigation it looks like I am stuffed.  The latest version of File-RsyncP-Digest (0.70) I could find requires rsync 2.x up to protocol version 28.  Centos 7 has rsync 3.0.9 protocol version 30.

 

I note that backuppc v4 uses rsync v3.0.9 (in place of File::RsyncP) but is still in alpha release.  How stable is this release?

 

Best regards,
Vaughan

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
BackupPC-users mailing list
BackupPC-users <at> lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
Vaughan Roberts | 27 Jul 02:14 2014

Error in backuppc log file: unix bind() failed: No such file or directory

Hi,

 

I have been using backuppc on centos for over eight years, but now I am trying to upgrade my server to Centos 7 and unfortunately there does not seem to be a backuppc package for centos 7 as yet, so I tried using BackupPC-3.3.0-2.el6.x86_64.rpm.

 

Centos 7 uses apache 2.4 which required me to mess around with BackupPC.conf file, but I think that is now OK as I can access backuppc from a browser.

 

However, it looks like I have a permissions problem somewhere and I am not sure exactly what the cause is.  The extract from the BackupPC log file is:

 

Reading hosts file

Adding host …

Adding host …

Unix bind(): failed: No such file or directory

 

When I connect a browser to localhost/backuppc, I get the expected screen and I can browse the backups, but this screen also gives me this error:

Error: Unable to connect to BackupPC server
This CGI script (/sbin/BackupPC_Admin) is unable to connect to the BackupPC server on localhost port -1.
The error was: unix connect: No such file or directory.
Perhaps the BackupPC server is not running or there is a configuration error. Please report this to your Sys Admin.

Naturally the service is running and I have selinux in permissive mode.  This error occurs both on localhost and from a computer on my LAN, so it should not be a firewall issue.  I have checked permissions in /var/lib/BackupPC/* and they are all owned by backuppc: this directory is a mounted logical volume.  I use rsync on the pcs for backup purposes and at the moment no backups are occurring.

 

Can anyone point me to where this error is likely to be coming from?

 

Best regards,
Vaughan

Attachment (smime.p7s): application/pkcs7-signature, 7688 bytes
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
BackupPC-users mailing list
BackupPC-users <at> lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
Russell R Poyner | 24 Jul 21:36 2014
Picon

signal to Kill DumpPreUserCmd

I have a bash script that runs on the BackupPC server as DumpPreUserCmd.

I'd like to have the script catch a signal and clean up it's files if a 
backup get's canceled while the script is running. So far I'm trapping 
INT, TERM, ABRT and ALRM but not getting what I want.

Does BackupPC send SIGKILL to the DumpPreUserCmd process? Or something 
else I haven't thought of?

The value of $Conf{UserCmdCheckStatus} seems to not matter.

Background:

This is in the context of a method to create shadow copies and start 
rsyncd on windows clients without having to remotely execute anything on 
the windows box via ssh or winexe.

1. The server starts our DumpPreUserCmd bash script which creates a file 
called <hostname>.html in a web-readable directory. It then polls the 
windows machine to see if rsyncd has started. Once windows starts it's 
rsyncd the PreUser script exits so that the dump can start.

2. The windows machine runs a script in task_scheduler every 5 minutes 
to see if the file <hostname>.html exists in the special directory on 
the BackupPC web server. If it does the windows box runs a powershell 
script that creates shadow copies, starts rsyncd and opens a firewall 
hole to allow the backup.

3. On the server when the dump completes DumpPostUserCmd runs and 
removes the <hostname>.html file.

4. When the periodic task on the windows machine no longer finds the 
<hostname>.html file it stops the rsyncd service, deletes the shadow 
copies, and closes the firewall hole.

It works fine unless the backup get's interupted while DumpPreUserCmd is 
running and waiting for windows to start it's rsyncd service. In that 
case the <hostname>.html file get's orphaned.

I *could* create a cron job on the server to look for and remove 
orphaned <hostname>.html files, but I'm hoping to not need that.

Thanks
Russ Poyner

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
BackupPC-users mailing list
BackupPC-users <at> lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

G.W. Haywood | 19 Jul 21:43 2014
Picon

Documentation.

Hi there,

After going around the Internet in circles for a couple of hours I've
just been looking at

backuppc.sourceforge.net/faq/BackupPC.html

to try to find the bit of documentation I'd missed that tells users
that in order to use

$Conf{XferMethod} = "smb"

to back up a Windows box it's necessary to have the netlogon service
running on the client.

I can't find it anywhere.  Where should I be looking?

--

73,
Ged.

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
BackupPC-users mailing list
BackupPC-users <at> lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Gmane