Koozali.org: home of the SME Server

[ANNOUNCE] smeserver-backuppc-3.0-0

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc-3.0-0
« on: May 03, 2007, 05:37:45 PM »
Hi everyone, I just want to tell you have finished the contrib for backuppc 3.0
you can find the how-to here (for the installation or the upgrade only, not how to use it):
http://sme.firewall-services.com/spip.php?article44

and you can find more information on backuppc here:
http://backuppc.sourceforge.net/

The bigest change is that backuppc's CGI now include the configuration editor, for the main settings and the per pc ones (so the panel I wrote for the previous version isn't needed anymore)
This version also support multi-incremential backups, there are some improvement in the browser interface and I let you discover the rest.

Cheers, Daniel
C'est la fin du monde !!! :lol:

Offline vincentmeek

  • *
  • 29
  • +0/-0
    • Triple Point Solutions
[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #1 on: May 04, 2007, 02:48:15 AM »
Thanks
Vincent Meek
Network Consultant

jcoleman

[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #2 on: May 05, 2007, 04:47:51 PM »
Daniel,

As always, thanks for the great work on this contrib.  I have installed the new version and get this error on execution:

Quote
2007-05-05 07:45:03 vgn-a690-jc is dhcp 10.1.1.196, user is
2007-05-05 07:45:03 dump failed: File::RsyncP module version (0.52) too old: need 0.68


Any ideas?

Thanks,

-jeff

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #3 on: May 05, 2007, 06:13:10 PM »
Quote from: "jcoleman"
Quote
2007-05-05 07:45:03 vgn-a690-jc is dhcp 10.1.1.196, user is
2007-05-05 07:45:03 dump failed: File::RsyncP module version (0.52) too old: need 0.68
It seems that the File::RSyncP perl library is to old and needs a newer version, minimum 0.68, where you are running 0.50.

According to the BackupPC requirements page it is needed if you want to use RSync as transport method. It also holds a link to the page to get File::RSyncP (part of PerlSync), have a look at the PerlSync website.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #4 on: May 05, 2007, 07:30:00 PM »
You can find the needed dependencies on our web site, including the good perl module file::RsyncP (v0.68 ).

Code: [Select]

wget http://sme.firewall-services.com/downloads/smeserver-backuppc/rpms/perl-Archive-Zip-1.16-1.2.el4.rf.noarch.rpm
wget http://sme.firewall-services.com/downloads/smeserver-backuppc/rpms/perl-Compress-Zlib-1.42-1.el4.rf.i386.rpm
wget http://sme.firewall-services.com/downloads/smeserver-backuppc/rpms/perl-File-RsyncP-0.68-1.el4.rf.i386.rpm
wget http://sme.firewall-services.com/downloads/smeserver-backuppc/rpms/perl-Time-modules-2003.1126-1.2.el4.rf.noarch.rpm
wget http://sme.firewall-services.com/downloads/smeserver-backuppc/rpms/perl-XML-RSS-1.10-1.el4.rf.noarch.rpm
yum localinstall ./*.rpm
C'est la fin du monde !!! :lol:

jcoleman

[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #5 on: May 05, 2007, 09:52:14 PM »
Cactus and Daniel,

Thanks for the help.  I installed the module from Daniel's site.  Made sure it installed by doing an rpm -Uvh --force on it.

Got the exact same results.  I'm confused (nothing new there).

-jeff

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #6 on: May 06, 2007, 12:05:20 AM »
Quote from: "jcoleman"
Made sure it installed by doing an rpm -Uvh --force on it.
You should not use rpm -Uvh this command is obsolete and replaced by yum localinstall like suggested by Daniel.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

jcoleman

[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #7 on: May 06, 2007, 01:11:54 AM »
Cactus,

Agreed.  The original install was through yum.  I re-installed the perl module with rpm to just make sure it actually installed.  Evidently it didn't.

-jeff

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #8 on: May 06, 2007, 05:01:27 PM »
You can check if the install went ok with the command

rpm -qa | grep RsyncP
C'est la fin du monde !!! :lol:

jcoleman

[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #9 on: May 06, 2007, 09:36:53 PM »
Daniel,

This is strange...

Code: [Select]
[root@dev ~]# rpm -qa | grep RsyncP
perl-File-RsyncP-0.68-1.el4.rf


And yet I still get the following log message...

Code: [Select]
2007-05-06 12:35:49 vgn-a690-jc is dhcp 10.1.1.196, user is
2007-05-06 12:35:49 dump failed: File::RsyncP module version (0.52) too old: need 0.68


I'm confused...
-jeff

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #10 on: May 09, 2007, 05:39:47 PM »
Have you tried to remove everything, and start again from sratch?
You could remove all the needed rpms (contrib and deps) and reinstall them to be sure backuppc has saw the new version of perl-File-RsyncP (anyway, this problem is strange because you shold be able to install perl-File-RsyncP after BackupPC, and it should detect it correctly).
C'est la fin du monde !!! :lol:

Offline jahlewis

  • *
  • 151
  • +0/-0
    • http://www.arachnerd.com/
[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #11 on: May 10, 2007, 09:56:19 PM »
I upgraded following your instructions, no problems.

Nice work, merci!

How do I do archives in the new version.  I could not see it in the new config screens.
............

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #12 on: May 11, 2007, 10:02:32 AM »
Quote from: "jahlewis"
I upgraded following your instructions, no problems.

Nice work, merci!

How do I do archives in the new version.  I could not see it in the new config screens.


Well, for now, there's no interface to configure the archiving, you'll have to make it by hand (with the script /usr/local/BackupPC/bin/BackupPC_archiveHost).
I'm working on some scripts to make it simpler and more efficient, but I think I won't write a new panel for this, you'll have to add an entry in the crontab.

Another point: in this release, I stupidly forgot to add /opt/backuppc in the exclude part for the default localhost config so if you're using it, you should add this path in the exclude portion to avoid recursive backups.
C'est la fin du monde !!! :lol:

Offline jahlewis

  • *
  • 151
  • +0/-0
    • http://www.arachnerd.com/
[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #13 on: May 11, 2007, 03:57:19 PM »
The backuppc documentation (http://backuppc.sourceforge.net/faq/BackupPC.html#archive_functions) suggests the following (below), which I followed.  Works fine.

now I just have to tweak the scheduling to get it do to the archives once a week at a particular time to be able to take them off-site etc.

-------------

Configuring an Archive Host

To create an Archive Host, add it to the hosts file just as any other host and call it a name that best describes the type of archive, e.g. ArchiveDLT

To tell BackupPC that the Host is for Archives, create a config.pl file in the Archive Hosts's pc directory, adding the following line:

$Conf{XferMethod} = 'archive';

To further customise the archive's parameters you can adding the changed parameters in the host's config.pl file. The parameters are explained in the config.pl file. Parameters may be fixed or the user can be allowed to change them (eg: output device).

The per-host archive command is $Conf{ArchiveClientCmd}. By default this invokes

     __INSTALLDIR__/BackupPC_archiveHost

which you can copy and customize as necessary.

Starting an Archive

In the web interface, click on the Archive Host you wish to use. You will see a list of previous archives and a summary on each. By clicking the ``Start Archive'' button you are presented with the list of hosts and the approximate backup size (note this is raw size, not projected compressed size) Select the hosts you wish to archive and press the ``Archive Selected Hosts'' button.

The next screen allows you to adjust the parameters for this archive run. Press the ``Start the Archive'' to start archiving the selected hosts with the parameters displayed.
............

markseymour

[ANNOUNCE] smeserver-backuppc-3.0-0
« Reply #14 on: May 22, 2007, 04:14:47 AM »
Daniel, and all smeserver-backuppc-3.0-0 users,

This looks great.... now, if only I can get backuppc to authenticate to the rsyncd on my 'Windows XP Home' machines. Please tell me if any of you can help, or if I must take this up with the BackupPC project.

I am running smeserver-backuppc-3.0-0 on SME 7.1.3.  It runs the local default backup job just fine.  

A commandline rsync test works fine from my SME server to a 'Windows XP Home' box running the rsyncd packaged from the BackupPC sourceforge site: cygwin-rsyncd-2.6.8_0.zip. (rsyncd was run from the Windows command line, I'll leave my troubles with running as a service for another post).
Code: [Select]
[root@mail3 tmp]# rsync -av backup@192.168.111.40::test .
Password:
receiving file list ... done
... <snip> ...
sent 391 bytes  received 2241522 bytes  407620.55 bytes/sec
total size is 2240235  speedup is 1.00

When I try a BackupPC job, it logs this error:
Code: [Select]
2007-05-21 21:55:53 User admin requested backup of markseymour (markseymour)
2007-05-21 21:55:54 Started full backup on markseymour (pid=9448, share=test)
2007-05-21 21:56:02 Backup failed on markseymour (auth failed on module test)

and the rsyncd.log on the Windows machine says:
Code: [Select]
2007/05/21 21:56:45 [3332] connect from mail3.guildassociates.com (192.168.111.1)
2007/05/21 21:56:45 [3332] auth failed on module test from mail3.guildassociates.com (192.168.111.1): unauthorized user

The rsyncd.secrets file on Windows contains:

backup:<password>
admin:<same password>

I'm confident that the password is correct because I used the Windows clipboard in both instances to paste it into both the RsyncdPasswd of the BackupPC panel, and into a putty window for the commandline test.

1) Have others here succeeded backing up 'Windows XP Home', or for that matter, 'Windows XP Pro' via rsyncd/smeserver-backuppc?

2) Any clues for me?

Thanks,

Mark

(I do have ClientCharset set to cp1252.)