Koozali.org formerly Contribs.org

Obsolete Releases => SME 7.x Contribs => Topic started by: Daniel B. on May 19, 2006, 03:30:48 PM

Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 19, 2006, 03:30:48 PM
hello everyone.
I've just finish a little contrib witch simplify the installation of backuppc 2.1.2 (with the last patch) on SME7.
I tested it on SME7rc2 and it seems to work great.
I'd like some people to test it and repport if there's problem.
Backuppc is a realy powerfull backup solution. One of his main features (The one wich was the most impressing for me) is an cgi interface for the restoration of the file. With this, every user can access their backups and restors the file they wan't without having to ask the administrator to do that.
you can have a full description on the official site: http://backuppc.sourceforge.net/

here the how-to: http://sme.firewall-services.com/spip.php?article3
here is the contrib http://sme.firewall-services.com/downloads/smeserver-backuppc/rpms/

I'm working on a interface to configure it through the server manager and a first simple version should be available soon.
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on May 21, 2006, 03:56:41 PM
VIP-ire

Installed everything as per your howto and got the following error when logging in.  This is a stock sme7rc2 box.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@test.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

Any ideas?

-Jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 21, 2006, 04:29:43 PM
Well, I find it strange. I tried on two rc2 and it worked well.
Have you enable the exec of dynamic content on the ibay backup?

can you tell me what report this commands just after trying to acceed the admin page of backuppc
tail /var/log/httpd/error_log
tail /var/log/messages
ll /home/e-smith/files/ibay/backup/cgi-bin/
ll /usr/share/backuppc/lib/BackupPC/
ll /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/

any error will runing the install script?

thanks for testing,
i'll do my best to figure out what's happened.
Title: [ANNOUNCE] smeserver-backuppc
Post by: CharlieBrady on May 21, 2006, 11:59:06 PM
Quote from: "jcoleman"

Any ideas?


Apache error log should tell you more.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 22, 2006, 03:49:30 PM
nobody has successfully installed it?
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on May 22, 2006, 04:17:52 PM
VIP-ire,

My mistake.  A complete reinstall worked just fine.  My problem was a typo.  Once corrected, it worked perfectly as installed.

Now to test functionality....

Thanks for the contrib!

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 29, 2006, 01:14:07 PM
The first version of the panel is now ready, tested on two machines and it works.

You can download at http://sme.firewall-services.com/files/backuppc_panel_v1.0.tar.gz

and the howto at http://sme.firewall-services.com/files/howto_backuppc.pdf
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 29, 2006, 01:27:17 PM
Quote from: "VIP-ire"
nobody has successfully installed it?

I tried. The filename is not as indicated for the tarball but I worked it out. The install script is in French(?) but I tried running it on my UK English server. Some of the directory structure is there but I feel there should be much more... I manually unzipped the tar and found many files... Now I don't whether the uninstall script is any better than the install wasn't;~/
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 29, 2006, 01:36:32 PM
Quote from: "VIP-ire"
The first version of the panel is now ready, tested on two machines and it works.

This time I manually unzipped the tar, then sh install...
[root@teri backuppc_panel_v1.0]# sh install
: command not found
: command not found
: command not found
: No such file or directory
: command not found
: No such file or directory
: No such file or directoryn
: No such file or directoryd
: No such file or directoryd
: No such file or directory
: ambiguous redirect
: command not found
: No such file or directory
: command not found
: No such file or directory
: command not found
: No such file or directory
: command not found
: No such file or directory
: command not found
: No such file or directory
: command not found
: No such file or directoryr
: No such file or directoryr
: No such file or directory
: No such file or directory
: command not found
: No such file or directory
: command not found
: No such file or directory
: command not found
: No such file or directoryh
: No such file or directoryith/templates/etc/sudoers/30Backuppc
: No such file or directorymith/expand-template
: command not found
: No such file or directory
: command not found
: No such file or directory
: command not found
install: line 52: -u: command not found
: No such file or directoryd
: No such file or directory
: No such file or directoryn
: command not found
: No such file or directory
: command not found
: No such file or directory
: command not found
: No such file or directory
: command not found
: No such file or directorymith/expand-template
: No such file or directorymith/expand-template
Usage: /etc/rc.d/init.d/backuppc {start|stop|restart|reload|status}
: command not found
: No such file or directory
[root@teri backuppc_panel_v1.0]#

----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 29, 2006, 02:42:01 PM
Quote
The filename is not as indicated for the tarball

What do you mean by not as indicated? there's two diiferents archives:
       -one called smeserver-backuppc2.1.2.tar.gz for the program
       -one called backuppc_panel_v1.0.tar.gz for the server-manager panel
I don't see any mistake on the file name

Quote
The install script is in French

It's in french 'cause I'm french but should work on english server. I will provide an english version soon. the panel itself is in english.

Quote
I manually unzipped the tar

What do you mean by manually? don't you use the "tar xvzf" command as it's explained in the howto?

I'll try to provide the contrib in an rpm file as soon as I have the time.

does the install of the smeserver-backuppc2.1.2 succed? You cannot install the pannel since  it's not installed

Have you followed all the steps of the howto?
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 29, 2006, 05:46:44 PM
I followed your earlier PDF etc... Now I follow your new PDF but there are errors and it's not particularly clear for me;~/ I have started over again and got further;~) I used the uninstall to help clear up my earlier attempt(s). Now installed once again and also run the panel installer. Can't see the panel yet... think I need to use some sort of signal-event command to restart the whole panel so I can see the new additional backuppc stuff. In my SME6 notes I have an entry for "refreshes menu link layouts" with the command </etc/e-smith/events/actions/navigation-conf> but this didn't do the trick this time (with SME7). Do I have to reboot (just to see the extra menu entry for the panel)?
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 29, 2006, 06:01:47 PM
the install script of backuppc-panel should rebuild the main server-manager page.
The errors apears for the smeserver-backuppc or the backuppc_panel?
can you see the admin page of backuppc at http://yourserver/backup/cgi-bin/BackupPC_Admin

If you want to clear all you can suppr the ibay backup and re-create it
You can also run this commands (even if the uninstall scripts should have done this)
rm -Rf /usr/share/backuppc
rm /etc/e-smith/web/functions/backuppc
rm /etc/e-smith/web/panels/manager/cgi-bin/backuppc
rm -Rf /etc/e-smith/db/configuration/defaults/backuppc/
rm /home/e-smith/db/backuppc
rm /etc/e-smith/templates/etc/sudoers/30Backuppc
rm -Rf /etc/e-smith/templates/home/e-smith/files/ibay/backup/files/conf/*
rm /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99authbackuppc
expand-template /etc/httpd/conf/httpd.conf
expand-template /etc/sudoers

If you cannot acced the admin page of backup there's probably an error creating the ibay, the user backuppc or the group backups
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 29, 2006, 06:18:14 PM
Reboot did not make the new menuline entry (for backuppc) appear. Used the backuppc uninstall - errors. Used the backuppc install - errors. Now(!?) I see the new backuppc menuline entry in the server manager panel;~)
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 29, 2006, 06:22:06 PM
Our posts crossed in time. I have a panel now. I have not been able to access the http://yourserver/backup/cgi-bin/BackupPC_Admin stuff at all. Does it matter that my SME is serveronly ie not servergateway?
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 29, 2006, 06:36:50 PM
Cannot use h t t p://myserver/backup/cgi-bin/BackupPC_Admin - always 404.
Have server-manager panel showing backuppc stuff (4 lines of click here).
Group, User and iBay all setup as shown in PDF.
Issue might be how I access SME7 (serveronly) across my intranet.
Am uncertain exactly how to configure this as it doesn't seem to be like SME6.
To control/configure/install I use a PuTTy (SSH2) link.
To view and normally use I choose my intranet...
Is there a simple backup test to I can perform to test functionality?
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 29, 2006, 06:44:58 PM
Well the fact is that if you cannot acced the admin page, you won't be able to backup anything 'cause the panel is just a front end for the config file
No particular configuration is needed normally. can you acced the index of your ibay:
http://yourserver/backup.
You should have this:

Information Bay
This information bay has not yet been customized.

Have you enable the exec of CGI?

ll /home/e-smith/files/ibays/backup/cgi-bin should repport this
-rwsrwx---  1 backuppc backups 3924 mai 18 17:43 BackupPC_Admin
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 29, 2006, 06:58:29 PM
I cannot access http://myserver/backup, this method gives me a 404 error.
If I click on that HTML file (across my intranet) I get what you indicated.
I have enabled exec of CGI (as you indicated in the PDF).
Using a PuTTY link I get...
------------------------
[root@teri backuppc_panel_v1.0]# ll /home/e-smith/files/ibays/backup/cgi-bin
total 4
-rwsrwx---  1 backuppc backups 3924 May 18 16:43 BackupPC_Admin
[root@teri backuppc_panel_v1.0]#
------------------------
...note that this SME7 box is serveronly but it does have access to the internet (for YUM).
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 29, 2006, 07:19:57 PM
ok, looks like the problem comes from the ibay. I don't see why you cannot acceed http://yourserver/backup from the local network since server only mode should provide Web server to the local network.
Having access to the internet shouldn't change anything 'cause the installation doesn't need internet.

/var/log/httpd/error_log may tell you more about the error

I'll try it on a server only tomorrow
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 29, 2006, 07:26:39 PM
Quote from: "VIP-ire"
/var/log/httpd/error_log may tell you more about the error



--------------------
[Mon May 29 16:31:51 2006] [warn] RSA server certificate CommonName (CN) teri.myserver' does NOT match server name!?
[Mon May 29 16:31:51 2006] [notice] Apache configured -- resuming normal operations
[Mon May 29 17:04:26 2006] [notice] caught SIGTERM, shutting down
[Mon May 29 17:06:27 2006] [warn] RSA server certificate CommonName (CN) teri.myserver' does NOT match server name!?
[Mon May 29 17:06:27 2006] [notice] Digest: generating secret for digest authentication ...
[Mon May 29 17:06:27 2006] [notice] Digest: done
[Mon May 29 17:06:27 2006] [warn] RSA server certificate CommonName (CN) teri.myserver' does NOT match server name!?
[Mon May 29 17:06:27 2006] [notice] Apache configured -- resuming normal operations
--------------------

Tomorrow - a bientot;~)

----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: fpausp on May 29, 2006, 10:38:39 PM
Hi VIP-ire,

Thanks für your howto the installation works fine for me but i am sorry i do not speak french (http://testserver/backup/cgi-bin/BackupPC_Admin), how can i change the language ?




fpausp
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 30, 2006, 10:04:49 AM
fpausp => To change the langage there's two ways:
 -if you install backuppc_panel: go in the server-manager->backuppc config->modify the configuration->CGI interface->langage
 -if you've just install smeserver-backuppc, then edit the file /home/e-smith/files/ibays/backup/files/conf/config.pl and change the $Conf{Langage} variable.

Don't manually edit this file if you have the panel because it's regenerated each time the conf is modified
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 30, 2006, 10:41:06 AM
icpix => I tried in serveronly mode and it worked as well as in servergateway.
Looks like you don't let access to the ibay from the localnetwork.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 30, 2006, 04:18:46 PM
I've just corected a little problem with rsync backup methode.
the rpm File::RsyncP provided with smeserver-backuppc doesn't seems to work.
I've update the tar archives with one that works this time. For those who already have installed it you can do this:

yum remove perl-File-RsyncP
rpm -Uvh ftp://ftp.freshrpms.net/pub/dag/redhat/el4/en/i386/dag/RPMS/perl-File-RsyncP-0.52-1.2.el4.rf.i386.rpm

you can also modify the rsync client path parameter wich is /usr/bin/rync instead of /bin/rsync.

If you haven't install backuppc_panel, edit the file /home/e-smith/files/ibays/backup/files/conf/config.pl and modify the $Conf{RsyncClientPath} variable.
If you have the panel, go in the server-manager=>backuppc config=>modify the configuration=>various paths and commands
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 31, 2006, 03:24:57 PM
VIP-ire----

Been away, sorry.

I have always had a particular 'difficulty' with my SME7 (serveronly) box, maybe it is messing up backuppc(?).

Production SME6 (servergateway) box also runs my intranet and DHCP. AFAIK there is no Domain Controller (DC). My workstation (W2KPro-SP4) uses the normal Windows WORKGROUP to connect over the intranet to SME6 and I put in the username(admin) and password(22chars) manually for the first logon to connect. Everything seems good (long time). I am the only user on site - internal security is not an issue.

I still use manually entered username/password combinations to set up PuTTY (SSH2) links from my (W2kPro-SP4) workstation to access/control both the SME6 and SME7 boxes.

Test/production SME7 (serveronly) box has the WORKGROUP set but I have never ever been able to properly connect with any user login;~/ Admin, root and any of my users all fail. The only way I can access my SME7 box over my intranet is to 'login' with a username of (say) admin and no password (ie just a carriage return)! Yes, I get access. No, this is not validation. It make a mockery of all this new complex password methodology;~/ Whilst I can use my (mounted) hardware RAID5 array file library on the SME7 box I think this inappropriate 'validation' [sic] is messing up backuppc... maybe?

http://forums.contribs.org/index.php?topic=31996.0
All my keyboards are QWERTY. I do not possess WinXP.

----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 31, 2006, 03:57:19 PM
Well, I think you should try to reset the admin and root passord like it's explain on grand-pa's site (in single user mode) and then reset again the admin passowrd through the server-manager.
Once this is done, try to uninstall the contrib and to reinstall it.
I'm not sure where the error comes from but I know it can make troubles to have passwords not correctly set
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 31, 2006, 04:02:50 PM
Quote from: "VIP-ire"
...it's explain on grand-pa's site...

Agreed... but what or where is this site of your grand-pa?
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 31, 2006, 04:04:45 PM
sorry I forgot to put the link:

http://www.sme-fr.homelinux.net/astuces.php?astuce=user_raz_root_passwd
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 31, 2006, 04:58:43 PM
The automatic English translation of that area is not that helpful or accurate.
From my notes:

060531---+
* to reset root/admin passwords
* or to re-sync the admin with the root password

reboot
when the SME graphic shows
press Ctrl-X to put grub into text input mode
use arrow keys to choose your server's processor/s
(up for a single processor/smp for dual processors)
press e to go into the edit mode
use arrow keys to choose the kernel line
append a space and the word single
(this puts SME into single user mode without validification)
press enter
press b
allow some booting
wait for the # prompt
type passwd root
(enter root password/confirm)
type passwd admin
(enter admin password/confirm - should be same as root)
logout with Ctrl-D
allow the rest of the boot

----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 31, 2006, 05:27:37 PM
Re-sync of the root/admin passwords was (apparently) not 'THE' issue.
I am still unable to logon with admin/root/anyuser over my intranet.
Will try reducing the extent of the complexity of the password from 24 to 12.
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on May 31, 2006, 05:46:25 PM
http://bugs.contribs.org/show_bug.cgi?id=1288
Reduction of password length down to 12 was not significant.
Still can't login to SME7 across the intranet using root/admin/anyuser.
Obviously I still cannot obtain the admin screen of backuppc either.
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on June 01, 2006, 03:59:10 PM
VIP-ire----
Have filed a Bug Report for the developers...
http://bugs.contribs.org/show_bug.cgi?id=1526
...think I should've done that much earlier but I had
thought that the issue was just me doing it all wrong;~/
Hopefully they can shed some light on it for me,
sorry to have diluted your backuppc thread.
When the login issue is resolved I will rejoin you as I think
your contribution is exactly what I need here on my site;~)
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on June 02, 2006, 11:43:47 AM
The developers fixed the login (usern/passw) issue;~)
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on June 02, 2006, 12:17:42 PM
VIP-ire----

I keep trying to call up the admin page for the test SME7 box's backuppc but the browser always shows the contents of the production SME6 Primary iBay.

The SME7 is using an old spare top level domain name that used to be on the SME6. Yes, that name is removed from SME6 and, yes, I have pressed the browser's reset cache and its Ctrl-F5.

Alternatively do you have knowledge as to what I should properly call my test SME7 box? At the moment is has a completely different domain name to that of the the production SME6. Should it be a variation of the SME6's domain name or completely different?

I am confused as I don't have much knowledge how to run multiple servers.

----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on June 02, 2006, 10:57:20 PM
VIP-ire----

Uninstalled backuppc and the panel contribs.
Removed the user <backuppc>.
Removed the group <backups>.
Removed the iBay <backup>.

Installed backuppc...
[root@teri smeserver-backuppc2.1.2]# sh install
installation des dependances
warning: ./perl-Archive-Zip-1.09-1.noarch.rpm: V3 DSA signature: NOKEY, key ID de770456
Preparing...                ########################################### [100%]
   1:perl-Compress-Zlib     ########################################### [ 33%]
   2:perl-Archive-Zip       ########################################### [ 67%]
   3:perl-File-RsyncP       ########################################### [100%]
copie des repertoires
preparation du script de demarrage
mise en place du template pour l'authentification de l'interface CGI
Restarting httpd-e-smith                                   [  OK  ]
demarrage du service backuppc
Starting BackupPC:                                         [  OK  ]
bonne utilisation de ce logiciel
pour des remarques, des rapports de bugs ou des suggestions pour cette contribution
contactez moi: pirificateur/at/hotmail/d o t/com
[root@teri smeserver-backuppc2.1.2]#

*Still* unable to access the admin area over my intranet using
http://mydomain.co.uk/backup/cgi-bin/BackupPC_Admin
Tried using the local IP intranet address
http://10.0.0.10/backup/cgi-bin/BackupPC_Admin
then supplied username/password
after which the browser showed this issue:

Software error:
Can't locate BackupPC/Lib.pm in @INC (@INC contains: /usr/share/backuppc/lib /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /home/e-smith/files/ibays/backup/cgi-bin/BackupPC_Admin line 54.
BEGIN failed--compilation aborted at /home/e-smith/files/ibays/backup/cgi-bin/BackupPC_Admin line 54.

Later I installed the panel contrib.
Also I ran the yum thing and the wget with the two signal-events.

Further forward, yes... but not by much;~/

----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: Tib on June 03, 2006, 03:15:49 AM
icpix

I installed backuppc and all works well ... did you follow the instructions to the T.

Regards,

Tib
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on June 03, 2006, 09:29:50 AM
Tib---- To the very Tee (in caps);~| I'm going to try switching from serveronly to that odd-looking privateserver option. If that doesn't assist matters I will unhook all the hardware RAID5 file library and install RC2 from new ie NOT inherit RC1 stuff. It takes longer to derig and unhook than install from new (just over 2mins IRC). ----best wishes, Robert

postedit: privateservergateway no better, I'm going to start again from new
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on June 04, 2006, 02:52:01 AM
VIP-ire/Tib----

Have just finished the re-install of SME7rc2 from scratch ie the ISO and after removing my hardware RAID5 file library.

The 'delay' was having to do some maintainance to upgrade local cooling for the new server. These Xeon things seem to be regular hotwater bottles and down here in the southwest the weather is warming up some.

To a stock SME7rc2 I added the <backuppc> contrib and eventually managed to reach its admin area. To assist those that follow then the first login panel (in French) needs SME7's <admin> username/password and the next login panel needs the <backup> (ie iBay not user) username/password.

I later installed the <panel> contrib. To assist those that follow the seemingly inexplicable jump into French language is cured by hitting the server-manager's backuppc panel's option for config|CGI interface|Language|En(glish).

Still having difficulty reaching the backuppc admin area via the stated...
http://mydomain.co.uk/backup/cgi-bin/BackupPC_Admin
...browser route but I think my production SME6 servergateway is doing something or at least 'getting in the way'. I have successfully reached the backuppc admin area via...
http://10.0.0.91/backup/cgi-bin/BackupPC_Admin
...ie by using its intranet IP address.

I have almost no immediate idea exactly how I might drive <BackupPC> but the documentation looks extensive and I am sure this will be of the utmost help in my education. This contrib has the hallmarks of being exactly what I need for ergonomic (ie intelligent) intranet rsync'ing and for structured backup runs. Lots of reading expected.

My sincere thanks VIP-ire;~)

----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on June 04, 2006, 02:42:12 PM
VIP-ire----
Bit of a problem though one largely of my own making. I put the wrong characters into the Add Hosts, now it won't let me delete my bad entry;~/ Searching around I found the bad characters line appended to files/conf/hosts and removed the line. There is no corresponding directory for it as it didn't work in the first place. However it all stays in the server-manager panel as a line in the 'Current list of backup jobs: ' table area. There is no user entered and neither the 'modify' or the 'delete' linkers work. I keep getting a 'software error' announced. Elsewhere in the notes I found...
kill -HUP BackupPC_pid
...but don't know if that is the right sort of thing to do (what is the pid number?). There was some other information that told me that the config and hosts are read at various times, one of them being after...
/etc/init.d/backuppc reload
...which I did but the bad line remains as a backup job in the current list;~|
Is there something I can do to fix or be allowed to remove my bad line?
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on June 05, 2006, 09:48:07 AM
VIP-ire----
Working my way through the documentation and my education;~)
Getting not found for File::RsyncP, have downloaded it and run as instructed.
What is 'gcc'...?

----------------------
[root@teri backuppc]# cd File-RsyncP-0.52
[root@teri File-RsyncP-0.52]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for File::RsyncP::Digest
Writing Makefile for File::RsyncP::FileList
Writing Makefile for File::RsyncP
[root@teri File-RsyncP-0.52]# make
cp lib/File/RsyncP/FileIO.pm blib/lib/File/RsyncP/FileIO.pm
cp lib/File/RsyncP.pm blib/lib/File/RsyncP.pm
make[1]: Entering directory /home/e-smith/files/ibays/storage/files/raid5/download/__sme7/backuppc/File-RsyncP-0.52/Digest'
cp Digest.pm ../blib/lib/File/RsyncP/Digest.pm
AutoSplitting ../blib/lib/File/RsyncP/Digest.pm (../blib/lib/auto/File/RsyncP/Digest)
/usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap  Digest.xs > Digest.xsc && mv Digest.xsc Digest.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386 -mtune=pentium4   -DVERSION=\"0.52\" -DXS_VERSION=\"0.52\" -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE"  -DPERL_BYTEORDER=1234 Digest.c
/bin/sh: gcc: command not found
make[1]: *** [Digest.o] Error 127
make[1]: Leaving directory /home/e-smith/files/ibays/storage/files/raid5/download/__sme7/backuppc/File-RsyncP-0.52/Digest'
make: *** [subdirs] Error 2
[root@teri File-RsyncP-0.52]# make test
make[1]: Entering directory /home/e-smith/files/ibays/storage/files/raid5/download/__sme7/backuppc/File-RsyncP-0.52/Digest'
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386 -mtune=pentium4   -DVERSION=\"0.52\" -DXS_VERSION=\"0.52\" -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE"  -DPERL_BYTEORDER=1234 Digest.c
/bin/sh: gcc: command not found
make[1]: *** [Digest.o] Error 127
make[1]: Leaving directory /home/e-smith/files/ibays/storage/files/raid5/download/__sme7/backuppc/File-RsyncP-0.52/Digest'
make: *** [subdirs] Error 2
[root@teri File-RsyncP-0.52]# make install
make[1]: Entering directory /home/e-smith/files/ibays/storage/files/raid5/download/__sme7/backuppc/File-RsyncP-0.52/Digest'
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386 -mtune=pentium4   -DVERSION=\"0.52\" -DXS_VERSION=\"0.52\" -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE"  -DPERL_BYTEORDER=1234 Digest.c
/bin/sh: gcc: command not found
make[1]: *** [Digest.o] Error 127
make[1]: Leaving directory /home/e-smith/files/ibays/storage/files/raid5/download/__sme7/backuppc/File-RsyncP-0.52/Digest'
make: *** [subdirs] Error 2
[root@teri File-RsyncP-0.52]#
----------------------

...and any idea how to fix this 'gcc', I've not much experience with compiling.

----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: cactus on June 05, 2006, 11:21:24 AM
Quote from: "icpix"
...and any idea how to fix this 'gcc', I've not much experience with compiling.

----best wishes, Robert
I believe there are RPM's for this perl module: http://rpmfind.net/linux/rpm2html/search.php?query=perl-file-rsync&submit=Search+...&system=&arch=i386. Normally the Redhat EL 4 modules should work. You can download it there and issue the following command from the command line:
Code: [Select]
yum localinstall /path/to/downloaded/rpmYum should normally fix all dependencies for you, although I did not test this. You might want to file a bug report about this missing dependency to the author of the backup contrib.
You can put gcc on your server, but this is not recommended as a production server should not require tools for compiling.
Code: [Select]
yum install gcc
If you have gcc on your machine the easiest way to obtain perl modules is to use the cpan client, for instance
Code: [Select]
cpan File::RsyncP
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on June 05, 2006, 12:00:36 PM
cactus----
That's most helpful of you, my thanks.
My SME7 box is currently 'test', a separate SME6 box is 'production'.
The SME7 is planned to be the next production server when SME7 goes gold.
However SME7 is running the site's (live) file library on hardware RAID5...
so more than a little care is needed;~) I sort of need a fully working backup
system... for which I thought the backuppc contrib would suit. However it
needs so much learning... yes I have backuppc 'installed' (finally/phew) but
no I haven't configured it successfully to do anything remotely useful. Now
I am into trying to get to grips with compiling, which is something I thought
I'd never want (or need) to learn;~/
----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: icpix on June 05, 2006, 01:45:03 PM
The rpmfind area ended up with something strange for the browser.
So, accessing directly I downloaded...
http://dag.wieers.com/packages/perl-File-RsyncP/perl-File-RsyncP-0.52-1.2.el4.rf.i386.rpm
[root@teri backuppc]# yum localinstall perl-File-RsyncP-0.52-1.2.el4.rf.i386.rpm
...and then did the two signal-event commands.
After the reboot my attempt to invoke a test backup finally worked;~)

I've stepped back from attempting to learn 'gcc' and compiling.
Think it's too far too soon for me;~/
This means I cannot continue the backuppc instructions as written,
for instance there's a patch file (.diff) and others to compile.
I'll have to see what else I can do with what is already available.

My test backup, the one that worked, isn't specifically what I needed as
the W2kPro-SP4 box has its own very capable backup (Dantz Retrospect).

What I work towards is to intelligently protect specific areas of the 2TB
hardware RAID5 in SME7 by copying (mirroring, duplicating, rsyncd'ing,
archiving, whatever) over my intranet to particular available storage
areas on available machines ie whatever capacity wherever. So my
next job is to work out how to reverse backuppc's functionality ie to
push SME7 stuff out to a number of target archives as opposed to
backing up other areas onto SME7.

The existing and admirable backup2 (ie native to SME7) seems to fall
down at this sort of functionality. It's very slow indeed and doesn't avoid
over-duplication. The SME7 backup2 iteration (as opposed to SME6's
backup) seems to have trouble scaling up, dealing with previous periodic
backups and its numbering. It's very good with the core task ie backing
up SME7 for restoration but its functionality dealing with the 2TB mounted
array doesn't seem to be so brilliant.

----best wishes, Robert
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on June 07, 2006, 10:13:19 AM
Sorry for beeing away all this time.

Thanks for testing, I'm happy my work can be usefull !

icpx wrotes:
Quote
my next job is to work out how to reverse backuppc's functionality ie to push SME7 stuff out to a number of target archives as opposed to backing up other areas onto SME7


I think it's possible even if I haven't try yet, I also have something like this to do. It should work with the pre/post backup commands. You need to create a mount point for a remote file system (via smbfs, shfs, nfs, external hard disk or what ever can be mount) and then, in the per pc config file, you can define in the pre backup action to mount the remote fs, then the backup performs and the post backup command can umount the fs. But with this you lost some functionnality of backuppc that save disk space during the night.
Title: [ANNOUNCE] smeserver-backuppc
Post by: mike_mattos on June 07, 2006, 10:18:28 PM
two minor bugs noted, the link to login makes it look like the page is cgi_bin/BackupPC with a parameter Admin, since links are underlined and conceal  the '_' character in BackupPC_Admin!  

That solved, I got an error that line 54 had fatally failed

Had to loosen the permissions on /usr/share/backuppc , haven't fine tuned it yet, but the root permissions were too tight

thx

mike
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on June 08, 2006, 10:58:01 AM
ok, for the admin page, I made I little index.html that redirect to the cgi-bin/BackupPC_Admin page in the latest tar.gz. With this, you just have to enter http://yourserver/backup and you acceed the admin page of backuppc. You can do this if you haven't it yet, edit the file /home/e-smith/files/ibays/backup/html/index.html, erase all the text and write:

<META http-EQUIV="Refresh" CONTENT="0; url=cgi-bin/BackupPC_Admin">

then save your file.

I also had a error line 54, it was the BackupPC_Admin cgi scrpt that hadn't the SUID bit. This script must belong to backuppc:backups with the SUID bit set in order to work.
Title: [ANNOUNCE] smeserver-backuppc
Post by: mike_mattos on June 08, 2006, 06:22:19 PM
profitez de la vie, plus que 6ans avant la fin du monde !!

donc, il faut que je complet mon serveur!

merci pour changer la langue do pannel a la Francais, l'anglais etait trop drol!

( mais our les pauvre Anglos, une optionne a changer peut-etre? )

merci

Mike
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on June 08, 2006, 06:42:54 PM
The panel in the server manager is english only for now (well, almost english, there's probably a lot of mistakes :/)

The BackupPC_Admin page language can be change,(already explain some posts ago of this topic) server-manager=>backuppc config=>CGI interface=>language or change the variable $Conf{Language} in the main config.pl file. It can takes one of this valus: en, fr, es, de, it, nl
Title: [ANNOUNCE] smeserver-backuppc
Post by: sonoracomm on June 09, 2006, 01:50:48 AM
VIP-ire,

Thanks very much for your contribution.  I appreciate it very much.

I'm beginning my testing of BackupPC and I have a couple of suggestions for you:

For troubleshooting, I found that restarting the backuppc service illuminates some issues...

Code: [Select]
service backuppc restart

You may get errors such as...

Code: [Select]
Error! Unable to read config.pl or language strings!!

This seems to indicate problems parsing the config.pl file.  I found that it is VERY easy to not use single quotes around configuration strings as there is not instruction to do so.  For example, if you fail to enter...

Code: [Select]
'/home/e-smith/files'

with quotes as the BackupFilesOnly, the config.pl file fill fail to be parsed correctly and the service will not start.  Same goes for other fields, as well.  To fix this, you have to manually edit the config.pl file...

Code: [Select]
vi /home/e-smith/files/ibays/backup/files/conf/config.pl

then you have to use the (wonderful) Server-Manager panel to make the same changes again so that they stick.

Perhaps the quotes could be added by the server-manager panel itself?  That would save a lot of problems.

I also found that the permissions for BackupPC_Admin are, um, fragile.  On one hand, you need the SUID bit set or you get this error...

Code: [Select]
Software error:
Can't locate BackupPC/Lib.pm in @INC ...


to fix it...

Code: [Select]
chmod u+s /home/e-smith/files/ibays/backup/cgi-bin/BackupPC_Admin

But this is the problem...if you modify the backups I-bay, or simply click modify, then click save (which is a trick I frequently use to reset permissions on all the files in an I-bay), the SUID is stripped off and you have to fix it again.  

If you set the immutable attribute, this fixes the problem, but I'm not certain it's really a good idea.  This could cause problems down the road...upgrades, etc.

Code: [Select]
chattr +i
/home/e-smith/files/ibays/backup/cgi-bin/BackupPC_Admin


I, too had problems with the perl-File-RsyncP.  Is there a newer contrib package available?  Perhaps it would be a good idea to host your contribs in an official site where they could be browsed and would also be mirrored?

Your idea of including an index.html file is also a good one.  Works great.  I just deleted everything and added:

Code: [Select]
<META http-EQUIV="Refresh" CONTENT="0; url=cgi-bin/BackupPC_Admin">

Now I have to learn how to configure and use this...

I also have an offer for you, if you'll send me the English text, I'll polish up the translations for you.  I'm sorry, I don't speak French, but maybe I can help a little.

G
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on June 09, 2006, 11:19:15 AM
Quote
Perhaps the quotes could be added by the server-manager panel itself? That would save a lot of problems.


Well, I tried to let the panel add the quotes as often as I could but the problem is when the default value is undef. This special value makes backuppc to ignor the variable but if the quotes are added by the panel, then it won't be undef anymore but 'undef' and then, backuppc will search for an undef directory. I'm looking for a solution but I haven't find one for now.

Quote
But this is the problem...if you modify the backups I-bay, or simply click modify, then click save (which is a trick I frequently use to reset permissions on all the files in an I-bay), the SUID is stripped off and you have to fix it again.

If you set the immutable attribute, this fixes the problem, but I'm not certain it's really a good idea. This could cause problems down the road...upgrades, etc.


Well, I didn't thought about the chattr command. I will try on my test server some times to ensure there's no problem with the immuable attribute.

Quote
I, too had problems with the perl-File-RsyncP. Is there a newer contrib package available? Perhaps it would be a good idea to host your contribs in an official site where they could be browsed and would also be mirrored?


Well, when I find a problem, I fix it and I update the tar.gz you can find on the link (at the first page of the topic). So if you are testing it, you can re-download it. The problem of the RsyncP should be fixed, I used Rsync and it worked. I'd like to host my own site dedicated to SME but I haven't time to make it. (especially 'cause I didn't take time to learn some html base).

Quote
I also have an offer for you, if you'll send me the English text, I'll polish up the translations for you. I'm sorry, I don't speak French, but maybe I can help a little.


Of course I would be very happy someone help me. The problem is , I wrote the panel with the old e-smith::CGI module not in formmagik so the text is directly in the panel, not in a text file alone. All my work is in the backuppc_panel_V1.0.tar.gz.

thanks a lot for testing it
Title: [ANNOUNCE] smeserver-backuppc
Post by: otag on June 11, 2006, 07:53:30 PM
I am still having a problem with this error:-

File::RsyncP module doesn't exist

I have a clean install of SME7rc3 and a fresh download of smeserver-backuppc2.1.2.tar.gz which has both
perl-File-RsyncP-0.52-1.2.el4.rf.i386.rpm & perl-File-RsyncP-0.52-8.i386.rpm

Everything else seems to work ok as I have been able to do backups using smb, however using rsync or rsyncd I get the above error.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on June 11, 2006, 08:45:05 PM
ok, my fault, I forgot to remove perl-File-RsyncP-0.52-8.i386.rpm in the latest archive.
To fix it, remove perl-File-RsyncP-0.52-8.i386.rpm:

yum remove perl-File-RsyncP-0.52-8.i386

and install perl-File-RsyncP-0.52-1.2.el4.rf.i386.rpm wich works but is a little more old:
go in the smeserver-backuppc2.1.2 directory and type this:

rpm -Uvh perl-File-RsyncP-0.52-8.i386.rpm

tested at the moment and it works.
Title: backuppc_panel_v1.01
Post by: Daniel B. on June 16, 2006, 07:13:10 PM
I've just put online a new archive wich contains some improvements for backuppc_panel.

In the list of the improvements, there's what sonoracomm suggested, now you needn't anymore to add the quotes for the includ/exclude files and some others parametres like the pre/post actions.

the install and uninstall scripts are in english

I also add a function to generate a personal config file for each machine. With this new function, you just have to select wich variables you want to overwrite and then the file is generated.

Please, try it and send me your opinion.

http://sme.firewall-services.com/files/backuppc_panel_v1.01.tar.gz

for now, the best way to install it is to uninstall the old one and to reinstall the new. The problem is that you lost your already configured host (neither the data nor the specific config file but just the name of the host in the list so you have to enter them again manually, and then they recover their old config file and backups). I'd like to add an export/import function so that upgrades don't make problems.

that's all for now.
Title: [ANNOUNCE] smeserver-backuppc
Post by: sonoracomm on July 06, 2006, 12:27:12 AM
VIP-ire,

Thanks again for your great contrib.  I now have BackupPC in production and it has become invaluable to me.  I have used it to replace a similar (less functional) homegrown on-line backup system.

I installed the new file and I've used it for a while.

I see what you mean about the complications dealing with the quotes.  Perhaps the best way to deal with them is to add them where possible and use a comment to tell folks when they need to deal with the quotes themselves?

I had particular problems with the rsync exclusions.  After installing the new archive, I had to add them manually to the rsync options because of the quotes problem:

Code: [Select]
$Conf\{RsyncArgs\} = [

            '--numeric-ids',
            '--perms',
            '--owner',
            '--group',
            '--devices',
            '--links',
            '--times',
            '--block-size=2048',
            '--recursive',
            '--exclude=/proc',
            '--exclude=/temp',
            '--exclude=Temp/',
            '--exclude=/sys',
            '--exclude=/mnt',
            '--exclude=/media',
            '--exclude=.recycle/',
            '--exclude="Recycle Bin/"',
            '--exclude="Temporary Internet Files/"',

];


Also, after upgrading the server to 7.0 (final), I was unable to create a new host's config.pl from a model.  I kept getting this error in the browser:

Code: [Select]
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


I found that I could create the host's config.pl file using the "perso" option, then editing it normally.  The windows and linux templates no longer work as before.

As you are already aware, upgrading SME Servers is an on-going process.  We'll all be upgrading when 7.1 comes out.  ;-)  Now that I have this system in production, it will be very important to make it survive the next upgrade cycle without destroying the installation.  As you know, once you get a few weeks into BackupPC, that history/database is quite valuable.  Perhaps there is a way to install the newest rpms without uninstalling or losing your backed-up data.  Perhaps I just need to learn how to transfer a BackupPC installation...say, from one machine to another.  That would be good to know.

On another note, I've successfully connected several SME Servers to my BackupPC installation with gresat results, even though all the servers are on WAN connections.  I am offering a commercial on-line backup option to my customers.

However, I have not yet successfully been able to back up a Windows host.  I spent quite a bit of time trying to use the 'rsync' method, as I do on the Linux hosts, without success.  It seems as it _should_ work, but it doesn't.  

Has anyone been able to back up a Windows host using the 'rsync' method?  How do you back up remote Windows hosts?  'rsyncd' method?  I need to be able to backup remote Windows servers as I do the Linux servers.  Obviously the 'smb' method is out...

Thanks again for all your hard work,

G

p.s.  I have written a howto for our own internal use that implements this system using your contribs.  However, it's rough yet and the Windows Host section is broken still.  Once I get things worked out, I'll post a link.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on July 06, 2006, 11:48:49 AM
Well, I'm so happy my work is usefull !

For the quotes problem, I need to verify all the parametres one by one, I did'nt find the time yet. maybe there's still some parametres wich need them but normally it's ok.

For the rsync exclude option, I had some problem to, but finally, I succeed using it. here is an example for the backup of the local host: all the file system is backed up but the sys, proc, dev, tmp and ibays directory.

Code: [Select]
$Conf{TarShareName} = ['/'];
$Conf{BackupFilesExclude} = ['/proc','/sys','/dev','/tmp','/home/e-smith/files/ibays'];


here is another example:
Code: [Select]
$Conf{TarShareName} = ['/etc', '/home'];
$Conf{BackupFilesExclude} = 'e-smith/files/ibays/backup';    


here, I just backup up the etc and home drectorys. for the exclude parametre, the path is relative to the share, it doesn't work if you enter an absolut path. for me, it works quite well.

For the model problem, I just saw there's an error with the windows and linux one, as I only use the 'perso' possibility. It's fixed in the next release I will put online. In this next release, I also worked for the upgrade, and I think it's ok, but I need to do more test. There's new functions in the panel that let you save the configuration and the host list, so you can uninstall the old contrib and install the new one without loosing your data, your configuration or your host list. This next release is in one archive (the program itself and the panel). There's some other improvements. If you wan't to try on a test machine, you can get it:

http://sme.firewall-services.com/files/smeserver-backuppc_v1.1.tar.gz

and its how-to:

http://sme.firewall-services.com/files/backuppc4SME7.pdf

For backuping remote windows machines with rsync, I haven't tested yet, I just know it uses cigwin+rsync. I think you can find it on sourceforge, in the rsync section.

For your howto, I'd like to have a look at it, can you put the url please?

If you still interested in helping me with correcting the mistakes in the panel, I will try to put all the text in one file, but I don't know when I will have the time to do it.

Well, thanks for helping me in this developpement, your comments are very usefull.
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on July 06, 2006, 11:04:20 PM
I am backing up Windoze clients with rsync on the local net.  It is fairly simple to do.

Download cygwin-rsyncd from the BackupPC Sourceforge file area as it is modified to work with BackupPC.  Put all the files in:  c:\rsyncd, set up your secret and conf files, then run service.bat to install as a service.

In the rsync.conf file there isn't too much to edit.  Set the path of the files you want to backup such as:

Code: [Select]
path = c:/Documents and Settings/username/My Documents

the authorized user is the same as in the secrets file. So...

Code: [Select]
auth users = userid

and I set hosts allow to only give access to my BackupPC server.

Code: [Select]
hosts allow = 10.1.1.1

In the secrets file, just list your userid and password separated by a colon such as:

Code: [Select]
userid:password

make sure you end the file with a blank line.

That's all it took me..... :pint:   I can get it running on a networked Windows box in under a minute and have had no problems.  I have all my users' My Documents directories automagically backed up without their even knowing it.  The only thing I have to change for each user is the username in the directory path in rsyncd.conf.

I'm having trouble getting backups across a WAN.  Any help there from you guys?

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on July 07, 2006, 10:10:10 AM
Thank for your informations jcolman, I'll try this as soon as I can (I haven't any windows machine for now :/). For a backup through a wan, have you increase the PingMaxMsec parametre in the "how do we find client" section? It's 20ms by default for preventing a backup to start if a client is connected through a VPN but you can overide this variable in the per pc config.pl file. You should ping the remote machine to see the time it take to respond and and then setting the PingMaxMsec.
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on July 07, 2006, 06:19:49 PM
VIP-ire,

Thanks for the info on the ping latency.  Sounds like a good idea.  I'll give it a try in the next few days and report back.  I really want to thank you for your work on this project.

BackupPC on SME is a great thing!

Cheers,

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: jfarschman on July 13, 2006, 07:30:37 PM
First... thank you very much.

  This is a useful system that I had never looked at.

Second my question -- The localhost 127.0.0.1 job that on the system by default.  It's excludes the /home/e-smith/files directories

$Conf{BackupFilesExclude} = 'files';

I keep IMAP email and want to make it back this email up.  I would like to backup /home/e-smith/files/users  but not ibays

Do I change the Exclude to be ibays?

$Conf{BackupFilesExclude} = 'ibays';

If so... what happens if there is a directory in the users $HOME called ibays?  Thanks.  

 :hammer:   Again... brilliant work... and brilliant sourceforge project.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on July 14, 2006, 03:08:04 AM
Well, that's right, I should have put something in the howto about that.
But if you have just the 'file' directory in exclude that mean that you don't have the lastest release, you should redownload it and follow the howto for the upgrade.

http://sme.firewall-services.com/files/smeserver-backuppc_v1.1.tar.gz (the contrib)

http://sme.firewall-services.com/files/backuppc4SME7.pdf (the how-to)


In fact the default configuration of the host 127.0.0.1 (in the old release) doesn't backup the user's files and the ibay 'cause sometimes they are very large and it could fill up all the disk if you don't pay attention the first time. If you wan't to backup the user's directorys, you can exclude explicity the ibay directory with the absolut path:

$Conf{BackupFilesExclude} = ['/home/e-smith/files/ibays']

In the lastest release, the default job backups all the server but these directorys:
'/proc','/sys','/dev','/tmp','/home/e-smith/files/ibays'

Yes, if you do not enter the absolut path but just enter 'ibays', all the directory of that name won't be save.
Title: [ANNOUNCE] smeserver-backuppc
Post by: jfarschman on July 14, 2006, 03:36:16 PM
:-o  Great!

  It makes sense now.  This is very good.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on July 18, 2006, 11:58:15 AM
Has anyone tested an upgrade from a previous version of the contrib to the last one?
Or just the save/restor function of the hosts list and the configuration. I've tested it on my server and it seems to work but I would like to know if there's problem on other configurations before announcing it as stable.

Anyone interested in helping me? I know there's a lot of mistakes in the interface, they don't bother me as I'm french but for english, I think they are ugly.

If you have any suggestions (new features, improvement etc...), let me know (daniel@firewall-services.com).
Title: [ANNOUNCE] smeserver-backuppc
Post by: arnoldob on July 19, 2006, 07:22:17 PM
There's a HOW-TO for adding a drive and using a symlink to an ibay in English:

http://mirror.contribs.org/smeserver/contribs//mblotwijk/HowToGuides/AddExtraHardDisk.htm

I tried it with SME 7.0 final and it worked correctly.  It would make a useful addition to your HOW-TO
Thanks,
:)
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on July 20, 2006, 09:52:17 AM
Well, in my howto, I put a link to another howto from grand-pa to add an extra disk, but the difference between the two is that in grand-pa's howto the disk is directly mounted in the ibay directory without any simlink. I don't know what is the best. I will put this link to if you have tested successfully. Thanks
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on July 20, 2006, 05:05:21 PM
VIP-ire,

I just checked the howto referenced by arnoldbob using the symlinks.  While this is more work, I think it's a good idea.  It makes sense to me to keep my operating system files on a different disk than the data.

I'm thinking a RAID1 OS partition with a large RAID5 data disk subsystem would make a great backup appliance.  RAID5 is good enough as the system does not have to be fast.  Add remote offsite backup of the local backuppc system and you've got a reasonably robust system without spending a lot of money.

This is just getting better and better...thanks for all of your work on this contrib.

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on July 21, 2006, 06:32:11 PM
I'm working on an function (in the panel) to setup a cron job that can export all the backup data (the /home/e-smith/files/ibays/backup/files directory) to an offsite server using rsync over ssh. It's almost working, I just need to make a few more tests. It will normally be ready the next week.
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on July 21, 2006, 06:52:01 PM
Quote
I'm working on an function (in the panel) to setup a cron job that can export all the backup data (the /home/e-smith/files/ibays/backup/files directory) to an offsite server using rsync over ssh.


That is excellent.  Let me know when you have it working and I'll test it with you.

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on July 26, 2006, 12:41:12 PM
The next release of the contrib is available.
You can get it at:

http://firewall-services.com/sme/files/backuppc/smeserver-backuppc_v1.2.tar.gz        (edited)

and it's how-to

http://firewall-services.com/sme/files/backuppc/backuppc1.2_4SME7.pdf        (edited)

In the changes, there's:
    * the panel has been moved to Configuration section
    * Added the patch level 2 to backuppc itself (have a look at http://backuppc.sourceforge.net)
    * Added a function to setup cron jobs that can export data to an offsite server (or several servers) using rsync over ssh
    * the default 127.0.0.1 configuration file include as pre event the command signal-event pre-backup to save the mysql db

I saw that backuppc v3beta is available and that it include in the CGI page the modification of the configuration just like my contrib does. I'm a bit discouraged 'cause maybe most of my work won't be usefull anymore. I'll try to integrate v3 in SME when it would be available as stable.
Title: cannot download the files
Post by: aniston on August 01, 2006, 02:05:47 PM
hello VIP-ire, the files dont seem to be available anymore from your server ? any other place where i can find them , or if possible can you e-mail them ?

- looking forward to test your work on a dedicated backupserver running SME 7.0

thanks in advance.
aniston
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 01, 2006, 02:19:44 PM
yeah, sorry, I have moved the files and haven't edited the links yet.

backuppc is available from here:

http://firewall-services.com/sme/files/backuppc/smeserver-backuppc_v1.2.tar.gz

and here for the how-to

http://firewall-services.com/sme/files/backuppc/backuppc1.2_4SME7.pdf
Title: [ANNOUNCE] smeserver-backuppc
Post by: jahlewis on August 01, 2006, 03:26:26 PM
Firstly, thanks for the effort put into this.  I'm excited to get it going and help test.  I"m running an updated version of 7.0

Just followed the latest instructions, without any install errors (you may want to add in the ibay creation step that "local, no password required" for internet access)

However, when trying to access smeserver/backup, after authenticating, I get the following error in the browser:

Can't locate BackupPC/Lib.pm in @INC (@INC contains: /usr/share/backuppc/lib /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /home/e-smith/files/ibays/backup/cgi-bin/BackupPC_Admin line 54.
BEGIN failed--compilation aborted at /home/e-smith/files/ibays/backup/cgi-bin/BackupPC_Admin line 54.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 01, 2006, 03:38:37 PM
Well, looks like you have modified the ibay after the installation. This cause the different permissions to be changed. Go in the server-manager->backuppc->reset the permission and it should be ok.

I don't see the problem in the how-to, there's an image wich shows that the ibay must have ftp/web access on local network with no password

Anyway, thanks for testing. I'm trying hard to make it stable and to provide it as an rpm with the time I got. Your help is very apreciated
Title: [ANNOUNCE] smeserver-backuppc
Post by: jahlewis on August 02, 2006, 07:17:16 AM
Resetting permissions from the server-manager page seems to have done it.  Thanks.

Testing a full backup of 127.0.0.1 using your defaults now.

How would we set backuppc to a disaster recovery point of view following SMEServer's philosophy of backing up only datafiles and e-smith config stuff so that a restore would take place after reinstalling the OS (and the backuppc contrib).

Merci beaucoup for all this work.  Really looking forward to getting it working for multiple hosts (laptops) and doing a remote rsynch of some key stuff.

-JL
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 02, 2006, 09:56:36 AM
Well, as my default configuration for the localhost save all the server, you can restor what ever you want. I'm discovering SME server for only a few months so, I don't know exactly but according to darell may's contrib (backup2), only these files and directorys are necessary:

/etc/e-smith/templates-custom
/etc/e-smith/templates-user-custom
/etc/group
/etc/gshadow
/etc/passwd
/etc/samba/secrets.tdb
/etc/samba/smbpasswd
/etc/shadow
/etc/smbpasswd
/etc/ssh
/etc/sudoers
/home/e-smith
/opt
/root
/var/cache/yum

You can change the default configuration files or you can let it and select only these files for restoration after a crash. Anyway, you should use a dedicated hard drive for the ibay and even export the data to an offsite server for a strong backup solution.
Title: [ANNOUNCE] smeserver-backuppc
Post by: jahlewis on August 02, 2006, 04:19:48 PM
Agreed.  I'm just focusing now on getting some good backups to work without screwing up with looping... (including the backups and /mnt dirs in the backup...).

I'll keep you posted.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 04, 2006, 10:45:36 AM
Oups, I've just saw an error in the archive v1.2. Those how have downloaded it before the 04/08/06 should run these commands to repair it:

mkdir -p /etc/e-smith/templates-custom/etc/cron.d
mv /etc/cron.d/export_backuppc /etc/e-smith/templates-custom/etc/cron.d

Without it, the export of the data won't work because I stupidly install the template in the wrong directory :/

Those how download the archive after the 04/08/06 shouldn't be concerned.

Once again sorry for this stupid mistake, please try the feature and repport your comment
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 11, 2006, 07:20:46 PM
ok, I've just finished the packaging of my contrib. It's my very first rpm, so I post here before anouncing it's stable.

The how-ti is up-to-date too.

rpm:

http://sme.firewall-services.com/files/backuppc/smeserver-backuppc-1.0-1.noarch.rpm

srpm

http://sme.firewall-services.com/files/backuppc/smeserver-backuppc-1.0-1.src.rpm

how-to

http://sme.firewall-services.com/files/backuppc/smeserver-backuppc-1.0-1.pdf

There were some changes:

* As I consider older release as beta, the version number is 1.0

* You needn't anymore to create the user backuppc or the group backups (you must delete them before installing it if they exists)

* The differents binarys are now in the /usr/local/bin directory

* The rsync function has been review as there were several problems

* The save/restore function is totally different that's why you will loose your configuration (not the per pc configuration but the general one) if you were using an old version and you want to install this one. you can try to save it before uninstalling the old one:

cp /home/e-smith/db/backuppc /home/e-smith/files/ibays/backup/files/save/backuppc_db

it should work if you were using v1.2 but before, you may enconter problem. Then to restore the configuration, go in the panel and choose 'restore the configuration'

I think that's all for now.
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on August 12, 2006, 03:51:04 AM
Just installed your new rpm on my 7 server.  First did a backup of the config db and then uninstalled the old version using your uninstall script.

On re-install I got some errors about dependencies and had to add the perl modules manually.  OK so far.  

I then got the following error messages on install...

Code: [Select]
WARNING in /etc/e-smith/templates//etc/httpd/conf/httpd.conf/86WebShareAlias: *WARNING* esmith::config(/home/e-smith/WebShare) called with old database path. The following package needs to be updated:  at /usr/lib/perl5/site_perl/esmith/config.pm line 374
        esmith::config::TIEHASH('esmith::config', '/home/e-smith/WebShare') called at /etc/e-smith/templates//etc/httpd/conf/httpd.conf/86WebShareAlias line 6
        eval 'package esmith::__TEMPLATE__::1; ;
#line 1 /etc/e-smith/templates//etc/httpd/conf/httpd.conf/86WebShareAlias

    use esmith::config;
    use esmith::db;

    local %WebShare;
    tie %WebShare, \'esmith::config\', \'/home/e-smith/WebShare\';

        my $webshare;

        foreach $webshare (db_get(\\%WebShare))
        {
            my $type = db_get_type(\\%WebShare, $webshare);

            if ($type eq "WebShare")
                {
                $OUT .= "# webshare\\/$webshare\\n";
                $OUT .= "Alias \\/webshare\\/$webshare \\/opt\\/webshare\\/$webshare\\n";
                $OUT .= "<Directory \\/opt\\/webshare\\/$webshare>\\n";
                {
                use esmith::util;
                my $release = esmith::util::determineRelease();
                if ("$release" ge "7.0")
                        {
                        $OUT .= "    SSLRequireSSL\\n";
                        }
                        else
                        {
                        $OUT .= "    RequireSSL on\\n";
                        }
 }
                $OUT .= "    Options +Indexes\\n";
                $OUT .= "    AllowOverride None\\n";
                $OUT .= "    order deny,allow\\n";
                $OUT .= "    deny from all\\n";
                $OUT .= "    allow from all\\n";
                $OUT .= "    AuthName \\"Restricted $webshare access only\\"\\n";
                $OUT .= "    AuthType Basic\\n";
                $OUT .= "    AuthUserFile \\/etc\\/httpd\\/conf\\/htpasswd\\.$webshare\\n";
                $OUT .= "    Require valid-user\\n";
                $OUT .= "    AddType application\\/x-httpd-php \\.php \\.php3\\n";
                $OUT .= "    php_flag  magic_quotes_gpc  on\\n";
                $OUT .= "    php_flag  track_vars        on\\n";
                $OUT .= "<\\/Directory>\\n";
                $OUT .= "\\n";
                }
        }
;' called at /usr/lib/perl5/vendor_perl/5.8.5/Text/Template.pm line 319
        Text::Template::fill_in('Text::Template=HASH(0x8eb839c)', 'HASH', 'ARRAY(0x8cf0f80)', 'PACKAGE', 'esmith::__TEMPLATE__::1', 'BROKEN', 'CODE(0x8e46608)', 'UNTAINT', 1, ...) called at /usr/lib/perl5/vendor_perl/5.8.5/Text/Template.pm
line 382
        Text::Template::fill_in_file('/etc/e-smith/templates//etc/httpd/conf/httpd.conf/86WebShareA...', 'HASH', 'ARRAY(0x8cf0f80)', 'PACKAGE', 'esmith::__TEMPLATE__::1', 'BROKEN', 'CODE(0x8e46608)', 'UNTAINT', 1, ...) called at /usr/lib/perl5/site_perl/esmith/templates.pm line 528
        esmith::templates::processTemplate('HASH(0x8b1c430)') called at /sbin/e-smith/expand-template line 45
WARNING: Template processing succeeded for //etc/httpd/conf/httpd.conf: 1 fragment generated warnings
 at /sbin/e-smith/expand-template line 45
Restarting httpd-e-smith [  OK  ]
Starting BackupPC: [  OK  ]


While the db restores and the backuppc deamon appears all good, I now get a segmentation fault at any signal-event post-update or reboot call.

Pretty clear that it doesn't like the webshare contrib, but do you see a recovery option here?

Cheers,

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on August 12, 2006, 04:11:55 AM
Update -

Removed backuppc rpm via rpm -e.  Removed webshare rpm via rpm -e.  Reboot.

Next - test signal-event post-update and reboot.  Both work properly.

Reinstall smeserver-backuppc rpm without webshare on system....

On install the rpm tells me that the backuppc user and group are there.  This should not be true as they were supposed to be removed by prior uninstall.  Install proceeds without error and all works, except....

In server-manager neither the user nor the group shows.  The user and group db? is no longer in sync with server-manager.  

Any ideas?

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 12, 2006, 01:35:17 PM
Well I have no idea for the conflict between backuppc and webshare. Where can I download the webshare contrib to look further and try to arrange this thing?

The user and the group backuppc are now craeted by the rpm as system user and group (uid<500) that's why you do not see them anymore in the server-manager. This prevent the user to have a home directory and all that a normal user have, for example, backuppc do not have access anymore to the openvpn server.
Title: [ANNOUNCE] smeserver-backuppc
Post by: raem on August 12, 2006, 02:26:29 PM
jeff

> Pretty clear that it doesn't like the webshare contrib....

The webshare contrib is broken for sme7, it points at the wrong db path
See http://bugs.contribs.org/show_bug.cgi?id=1175

As a workaround I edited
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/86WebShareAlias line 6 to:

tie %WebShare, \'esmith::config\', \'/home/e-smith/db/WebShare\';
and did
expand-template /etc/httpd/conf/httpd.conf
/etc/init.d/httpd-e-smith restart


As Charlie points out though, this leaves the contrib subject to breakage at upgrade time, and it needs a good rewrite as well for other reasons.
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on August 12, 2006, 03:13:44 PM
Quote
The user and the group backuppc are now craeted by the rpm as system user and group (uid<500) that's why you do not see them anymore in the server-manager. This prevent the user to have a home directory and all that a normal user have, for example, backuppc do not have access anymore to the openvpn server.


VIP-ire...that makes sense to me and definately reduces the anxiety level  :-) Thanks for letting me know.

Quote
The webshare contrib is broken for sme7, it points at the wrong db path


Thanks Ray, I had thought Darrell had released this version for SME 7 but evidently not.  While webshare is convenient, it is pretty easy to give up for the functionality of Backuppc.

This is a great addition to the SME community.  I am really glad to have this app available.  It makes the drugery of trying to backup user data disappear.

Thanks for the quick responses.....

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: raem on August 12, 2006, 03:24:00 PM
jeff

> While webshare is convenient, it is pretty easy to give up for the functionality of Backuppc.

Well webshare does work OK if you make the changes I mentioned.
Hopefully someone capable will release a revised webshare later.
Title: [ANNOUNCE] smeserver-backuppc
Post by: raem on August 12, 2006, 03:34:52 PM
VIP-ire

> http://sme.firewall-services.com/files/backuppc/smeserver-backuppc-1.0-1.pdf

The link is broken
Not Found
The requested URL /files/backuppc/smeserver-backuppc-1.0-1.pdf was not found on this server.
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on August 12, 2006, 05:40:02 PM
Daniel,

New issue:  

For the first time backuppc errored out on the localhost with the following log message:

Code: [Select]
Executing DumpPreUserCmd: /usr/bin/sudo /sbin/e-smith/signal-event pre-backup
/usr/bin/sudo: /etc/sudoers is mode 0644, should be 0440
Running: /usr/bin/sudo /bin/tar -c -v -f - -C / --totals --newer=2006-08-09 22:00:02 --exclude=./proc --exclude=./sys --exclude=./dev --exclude=./tmp --exclude=./home/e-smith/files/ibays/backup .
Xfer PIDs are now 6937,6936
/usr/bin/sudo: /etc/sudoers is mode 0644, should be 0440
tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 sizeTotal
Tar exited with error 256 () status
Got fatal error during xfer (Tar exited with error 256 () status)
Backup aborted (Tar exited with error 256 () status)


Looks like the sudoers cmd has the wrong permissions?  

BTW, it's great that you have included pre-backup in the script!

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 14, 2006, 01:59:24 AM
Quote from: "RayMitchell"
VIP-ire

> http://sme.firewall-services.com/files/backuppc/smeserver-backuppc-1.0-1.pdf

The link is broken
Not Found
The requested URL /files/backuppc/smeserver-backuppc-1.0-1.pdf was not found on this server.


ok, I don't know where this file has gone, I've put it again and it's now available
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 14, 2006, 02:13:41 AM
Quote from: "jcoleman"
Daniel,

New issue:  

For the first time backuppc errored out on the localhost with the following log message:

Code: [Select]
Executing DumpPreUserCmd: /usr/bin/sudo /sbin/e-smith/signal-event pre-backup
/usr/bin/sudo: /etc/sudoers is mode 0644, should be 0440
Running: /usr/bin/sudo /bin/tar -c -v -f - -C / --totals --newer=2006-08-09 22:00:02 --exclude=./proc --exclude=./sys --exclude=./dev --exclude=./tmp --exclude=./home/e-smith/files/ibays/backup .
Xfer PIDs are now 6937,6936
/usr/bin/sudo: /etc/sudoers is mode 0644, should be 0440
tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 sizeTotal
Tar exited with error 256 () status
Got fatal error during xfer (Tar exited with error 256 () status)
Backup aborted (Tar exited with error 256 () status)


Looks like the sudoers cmd has the wrong permissions?  

-jeff


Well, I don't know how this permission could have change as the modification of /etc/sudoers are done through templates. the expanding of this file should give it the right permissions. Maybe it's while uninstall, the script delete the file /etc/sudoers, delete the templates of backuppc and then expand /etc/sudoers to make sure the modifications has been removed.
I'll try to change this by flushing the file with a echo '' > /etc/sudoers instead of deleting it
Title: [ANNOUNCE] smeserver-backuppc
Post by: jahlewis on August 17, 2006, 04:08:47 AM
Successfully backing up localhost and a WinXP laptop.

I'm having trouble connecting to a Mac OS X to use the tar method.  From what I can tell it is a SSH key issue.

What is the best method to allow the backuppc user to log into *nix clients?

To get it to work, I had to allow backuppc to use a bash shell, generate a rsa key, then copy the public key into the client's authorized_keys2 file.

Could you use the RPM to generate keys for the backuppc user during install?  Then instructions on what to past into clients will be much easier, especially if made available via the server-manager...

Thanks.

-JL
Title: [ANNOUNCE] smeserver-backuppc
Post by: del on August 17, 2006, 05:09:26 AM
Hi,

I have installed and used D. Mays webshare for SME 7.x  and it works OK without any mods, it can be found here: http://mirror.contribs.org/smeserver//contribs/dmay/smeserver/7.x/smeserver-webshare-1.0.0-6dmay.noarch.rpm

Hope this helps,
Del :pint:
Title: [ANNOUNCE] smeserver-backuppc
Post by: raem on August 17, 2006, 06:00:54 AM
del

> I have installed and used D. Mays webshare for SME 7.x  and it works
> OK without any mods, it can be found here:

Well that's the funny thing, it does install OK without errors and you can actually configure a webshare and use it OK, but....when you install some other contrib that expands templates, you will get webshare related errors, and will need to make the mods I suggested earlier in this thread.
Also see the bugtracker for feedback.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 17, 2006, 09:53:42 AM
Quote from: "jahlewis"
Successfully backing up localhost and a WinXP laptop.

I'm having trouble connecting to a Mac OS X to use the tar method.  From what I can tell it is a SSH key issue.

What is the best method to allow the backuppc user to log into *nix clients?

To get it to work, I had to allow backuppc to use a bash shell, generate a rsa key, then copy the public key into the client's authorized_keys2 file.

Could you use the RPM to generate keys for the backuppc user during install?  Then instructions on what to past into clients will be much easier, especially if made available via the server-manager...

Thanks.

-JL


For remote *nix access, I use rsync, wich use by default ssh. I'll try to see if it's possible to ask during the installation for the generation of an ssh key, or maybe a section in the panel to do this. I'm still working on improving this so your suggest is welcom.
Title: [ANNOUNCE] smeserver-backuppc
Post by: del on August 17, 2006, 03:08:09 PM
Hi Ray,

Well I only have sail installed on the same test server and it appears to still work although I am having a few problems with sail I don't think they are related to webshare, I will do further tests thanks for the warning.

Del :-)
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 17, 2006, 05:03:58 PM
just finished a new rpm package wich correct some errors of the first:

* Creation of the user backuppc now create its home directory (usefull for ssh keys)
* Remove the mod_rewrite to force https, now you need to enter https://yourserver/backup
* Correction of the cleaning of /etc/sudoers during uninstall

Now, all my work on this contrib can be find at:

http://sme.firewall-services.com/backuppc

You will find all from the first beta archive (old-beta directory), to the latest rpm. You also have access to the srpm and the howto. Dont forget to download the howto corresponding to the release of the rpm.

Maybe you'll have problem with the backup of your configuration if upgrading, it will be ok for futur upgrades between smeserver-backuppc-1.0-2.noarch.rpm to a newer version.

If you see a bug in this rpm, please repport it to me 'cause I think I will put it in the contrib section soon.
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on August 17, 2006, 09:24:30 PM
Daniel,

Works just fine on a stock SME7 VM.  Also worked on my production server doing an rpm -e for the prior version and then installing the new rpm.

Config settings that had been saved were able to be restored.

Good job!

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: jahlewis on August 17, 2006, 10:24:27 PM
I just installed the 1.0-2 rpm after deleting the .gz version using your uninstall script, and removing the backuppc user and backups group, then following directions in your 1.0-2 howto.

Now BackupPC is in french... Pardon moi, but I don't speak the language of love.  Any chance I can change it back to english?

Thanks!!!!
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on August 17, 2006, 11:48:52 PM
You can change the language from the server-manager panel.

Configuration > Backuppc > Change config > CGI Interface > choose EN

Cheers mon ami :>

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: raem on August 18, 2006, 04:20:10 AM
del

>... I will do further tests thanks for the warning.

It probably just depends which contrib & which templates are expanded, see the full report here
http://myezserver.com/phpBB2/viewtopic.php?t=724
Title: [ANNOUNCE] smeserver-backuppc
Post by: jahlewis on August 18, 2006, 04:23:44 PM
Merci, in English now.

Now that I've upgraded, I'm not able to get any backups to work on my tar clients.  My 127.0.0.1 client is failing, and I'm not sure if its a permissions issue, or some configuragion screwup (see error below).

Is there a way to restore default config.pl settings?  I've made so many changes that I'm not sure where the error is, and can't interpret where the problem is from this error message.

Executing DumpPreUserCmd: /usr/bin/sudo /sbin/e-smith/signal-event pre-backup
Running: /usr/bin/sudo /bin/tar -c -v -f - -C  --totals --newer=2006-08-16 19:00:07 --exclude=./proc --exclude=./sys --exclude=./dev --exclude=./tmp --exclude=./home/e-smith/files/ibays/backup --exclude=./mnt ./etc/e-smith/templates-custom ./etc/e-smith/templates-user-custom ./etc/group ./etc/gshadow ./etc/passwd ./etc/samba/secrets.tdb ./etc/samba/smbpasswd ./etc/shadow ./etc/smbpasswd ./etc/ssh ./etc/sudoers ./home/e-smith ./opt ./root ./var/cache/yum ./var/lib/mysql
Xfer PIDs are now 22694,22693
/bin/tar: : Cannot chdir: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Tar exited with error 512 () status
tarExtract: /usr/local/bin/BackupPC_tarExtract: bad share name ''
Got fatal error during xfer (Tar exited with error 512 () status)
Backup aborted (Tar exited with error 512 () status)

I'd be happy to post my config.pl and host config as well if interested.

-JL
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 18, 2006, 04:52:34 PM
I don't see where the error comes from, maybe you could mail me the host config.pl and the general config.pl (to prevent the forum from being overcrowded).My mail: daniel@firewall-services.com. I'll mail you the default 127.0.0.1 config.pl file and I'll try to find out on my test server why your config does not work.
Best regards,

daniel
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on August 18, 2006, 06:23:24 PM
Daniel,

I have had exactly the same problem so that you know it isn't an isolated case......

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 21, 2006, 05:21:13 PM
Quote from: "jcoleman"
Daniel,

I have had exactly the same problem so that you know it isn't an isolated case......

-jeff


It wasn't the same problem (if you refer to the sudoers permission problem), it was some shareName configuration issue, so I don't think it's usefull to put the solution here.

But I saw another problem and everyone is concerned. The pre-backup event do not work, so the mysql db are not saved because when called by another user that root (even with sudo), the connexion to the mysql server fail. I'm looking for a solution. If someone got an idea...
Title: [ANNOUNCE] smeserver-backuppc
Post by: lepounet on August 22, 2006, 10:54:20 AM
Hi,
The links seems to be broken :
http://sme.firewall-services.com/backuppc

Alain
Title: [ANNOUNCE] smeserver-backuppc
Post by: Landry on August 22, 2006, 12:25:19 PM
Server is currently down and offline due to a move of the infrastructures of firewall-services, and problems with the ISP.

Sorry for this.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 23, 2006, 04:28:55 PM
The server is online now !
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 24, 2006, 12:48:32 PM
Third release available. Several things has been corrected:

- HTML documentationn problem fixed (wasn't available)
- Pre-backup event now works (thanks to CharlieBrady)
- CGI interface of backuppc now accessible directly from the server-manager
- Correction of rsync default args so that repports can be sent by mail
- Added a K99backuppc links in rc6.d to stop backuppc properly
- Some default configuration adjusted (now default language is en for exemple)
- Modifiation of the upgrade scriplet so that it's very faster if you already have a large pool of backup

Don't forget to save your config (in the panel) before upgrading and to restore it after.
Just one other thing, if you have modified the 127.0.0.1 config file, then run this before the upgrade:

Code: [Select]
cp /home/e-smith/files/ibays/backup/files/pc/127.0.0.1/config.pl /home/e-smith/files/ibays/backup/files/save/127.0.0.1.config

and after, restore the configuration through the server-manager.

Then change the DumpPreUserCmd to this one:

Code: [Select]
$Conf{DumpPreUserCmd} = '/usr/local/bin/BackupPC_pre-backup';

http://sme.firewall-services.com/backuppc
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on August 24, 2006, 04:07:38 PM
Hi Daniel,

Great work.  Thanks.

I have just uninstalled/reinstalled the latest rpm and still have an issue with getting a local backup on 127.0.0.1.

Here are the log errors:

Code: [Select]
2006-08-24 07:02:29 full backup started for directory /
2006-08-24 07:02:32 Got fatal error during xfer (Tar exited with error 256 () status)
2006-08-24 07:02:37 Backup aborted (Tar exited with error 256 () status)


I am not sure what is going on here but this has been consistent thru the last several revs.

Any ideas?

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 24, 2006, 04:27:05 PM
Well, I had several time this error for different reasons, if you send me your main config.pl and the 127.0.0.1's one I could help you. Did you changed the default config of the 127.0.0.1 host?
Title: [ANNOUNCE] smeserver-backuppc
Post by: jcoleman on August 24, 2006, 04:37:09 PM
I created a new 127.0.0.1 entry from defaults.  I had deleted the old one in the prior version since it did not work and therefore it did not restore.

The only thing I changed was to the "exclude" portion where I added a specific ibay (backup) instead of all ibays.

I will be glad to send you my configs.  What is yuor email address?

And many thanks for the help.

-jeff
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 24, 2006, 04:45:09 PM
daniel@firewall-services.com

If you only changed the Exclude portion, the problem probably comes from the main configuration file.

I'm glad I can help.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 29, 2006, 10:49:27 AM
I've just saw a little bug wich prevent archive backup to occure normally.
If you want to use archive methode, just type the following commands and it will be ok then:

Code: [Select]
db backuppc setprop general InstallDir /usr/local
expand-template /home/e-smith/files/ibays/backup/files/conf/config.pl
/etc/init.d/backuppc reload
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on September 19, 2006, 10:28:02 AM
Hello everyone. I'm back as I've been away from a couple of days. I've done some hard work on my contribution and now the last release (smeserver-backuppc-1.0-4.i386.rpm) is available with some improvements:

http://sme.firewall-services.com/backuppc

-  backups aren't anymore stored in an ibay (I got too many problem with the files permissions), they are now in /opt/backuppc
-  a new function in the panel of the server-manager let you setup an periodical archive of the selected host. This function create tar or tar.gz archives localy and then can move it in another directory, local or remote using rsync over ssh. You can also use it for tape archiving (not tested, I haven't any tape device).
- par2 is now included that's why the rpm is only for i386 now (as par2 is comiled for i386 arch)
-  I've modified all the panel for the support of several languages (only english is provided). That means the text is separated from the panel (I used gettext as I don't like Formmagick). You can find the text file in the lang directory so if you wan't to correct some mistakes, you're welcom. It uses the gettext syntax:

you don't have to touch msgid
you can correct msgstr

If you correct some mistakes, please send it back to me: daniel@firewall-services.com
Title: [ANNOUNCE] smeserver-backuppc
Post by: sonoracomm on September 20, 2006, 01:25:20 AM
Hi Daniel,

Thanks again for all your hard work.  I, for one, am taking advantage of your contrib and I have it installed in production at several sites.

I had written a howto that's a little more detailed than your own.  It was written for internal use, however, I have just updated it and posted it on our web site for others to use.

I'm sure there are omissions and inaccuracies as this is still a work in progress.  If anyone has any suggestions or corrections for the howto, PLEASE e-mail me.

http://www.sonoracomm.com/index.php?option=com_content&task=view&id=86&Itemid=32

Thanks again, Daniel.

p.s.  I'll take a look at the English text to see what errors I might find and correct when I have a little time.

G
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on September 20, 2006, 09:51:06 AM
yeah, thanks a lot for your how-to, it's much more complete than mine, because I only explain how to install and not how to use it. I didn't take the time to write a detailed how-to as I haven't got to much time and  it's still a little hard for me to explain some technical things in english.

Don't know if you use or even tried the export and archive functions. If you do, maybe it could be added in your how-to.

Dani
Title: What a killer contrib!
Post by: JackNoyes on September 25, 2006, 06:56:24 PM
I'd just like to say first off, this is a beautiful piece of software and a well done contrib. This, along with the well detailed how-to-use just posted, has me up and running and testing. Really nice.

I'm not sure if this is a bug, something I'm missing, or just a consequence of sme peculiarities, but when I log in as a backuppc user (in other words the "owner" as specified in each host backup) I don't have permission. Even stranger, if that user has rights to other hosts, he can see those just fine. The only backup page the user can't see is his own.

For example, for the host "machine1" I define the owner to be user1, a normal user account in SME, and user2 as an additional SME user with rights to view the backups. If user1 logs in to https://server.sample.net/backup, he cannot access his backup page for machine1. If user2 logs in, he can see the machine1 backup page just fine.

I don't get it. Is there something simple I'm doing wrong?
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on September 25, 2006, 08:36:43 PM
Well, you're write, that's strange, I hadn't see this problem before. On my own personnal server I hav'nt got this problem. On all other servers wich are running this contrib, the only owner is admin for all the hosts so I cannot verify. I'll try to test on other test machin. Thanks for reporting this.
Are you using the 4th release ?

There is another little bug in this release, I will put a patch online soon.

I'll keep you informed.

dani
Title: [ANNOUNCE] smeserver-backuppc
Post by: JackNoyes on September 26, 2006, 11:25:16 PM
dani,

Yes, it's strange. I am running the 4th release. The install proceeded without any visible errors and seems to work well otherwise. Please let me know if there's any further information I can provide to help troubleshoot the issue.

Some basic specs on the server:
Pentium 3 1GHz (SME installed with smei586 option)
500MB memory
10GB IDE drive (no second drive for mirroring)
Contribs installed: backuppc(version 4), dungog's smeserver-userpanel, smeserver-userpanels, smeserver-userremoteaccess, smeserver-awstats, and sme7admin.

The server is a test box so I'd be willing to give you access if it would help troubleshoot. Let me know.

Hope that helps

JackNoyes
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on September 27, 2006, 01:04:40 PM
I'm using almost the same contribs exept the awstat's one. I realy don't know where the problem comes from. If you mail me how I can have an ssh access to your server, I'll try to look further.

daniel@firewall-services.com
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on October 13, 2006, 10:55:15 AM
smeserver-backuppc-1.0-5.i386.rpm is ready. I think it's now enough stable to be used in a prod environment. The main change is some language correction done by John Kardaras, thanks to him. A little bug has also been corrected.

http://sme.firewall-services.com/backuppc/

I'd like to post it in the contrib page of the phpwiki but I cannot login, does anyone know if it's working or not?
Title: [ANNOUNCE] smeserver-backuppc
Post by: EdelingF on October 30, 2006, 09:41:19 AM
I've un-installed backuppc but every week I get an email from backuppc@myserver.com about a backuppc-cron:

Subject: Cron < backuppc@myserver
 /usr/bin/rsync -e /usr/bin/ssh --delete --delete-after --ignore-errors -azv -H  /home/e-smith/files/ibays/backup/files/  /var/log/backuppc/export/copy_backup.log; /bin/mail -s 'copy_backup export'  
 < /var/log/backuppc/export/copy_backup.log
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/e-smith/files/users/backuppc>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=backuppc>
X-Cron-Env: <USER=backuppc>

ssh: connect to host xx.x.x.xxx port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]


Didn't I uninstall backuppc completly or do I have to remove the cron by hand (if yes, how? and where?)

Freek
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on October 30, 2006, 09:51:08 AM
Well, you'll have to delete it by hand, there's two cron job for backuppc:

/etc/cron.d/archive_backuppc

and

/etc/cron.d/export_backuppc
Title: I've deleted the localhost, but need the config.pl
Post by: jahlewis on December 20, 2006, 05:05:33 PM
Where can i find the config.pl needed to backup a smeserver?  I know it is generated by default with installing your awesome backuppc rpm, but i removed localhost by mistake, and now want to configure backuppc to backup another smeserver...

can you post it here?  or point me where I can find it on my system?

thanks.

here are some old notes I had from earlier versions.  is the latest the same?

Code: [Select]
$Conf{BackupFilesOnly} = ['/etc/e-smith/templates-custom','/etc/e-smith/templates-user-custom','/etc/group','/etc/gshadow','/etc/passwd','/etc/samba/secrets.tdb','/etc/samba/smbpasswd','/etc/shadow','/etc/smbpasswd','/etc/ssh','/etc/sudoers','/home/e-smith','/opt','/root','/var/cache/yum','/var/lib/mysql',];                                                                                                                    
$Conf{BackupFilesExclude} = ['/proc','/sys','/dev','/tmp','/home/e-smith/files/ibays/backup','/mnt'];
$Conf{XferMethod} = 'tar';                                                                        
$Conf{TarClientCmd} = '/usr/bin/sudo'                                                                
                   . ' $tarPath -c -v -f - -C $shareName'                                          
                   . ' --totals';                                                                  
$Conf{TarFullArgs} = '$fileList';                                                                    
$Conf{CompressLevel} = 3;                                                                            
$Conf{TarIncrArgs} = '--newer=$incrDate $fileList';                                                  
$Conf{TarClientRestoreCmd} = '/usr/bin/sudo'                                                        
  . ' $tarPath -x -p --numeric-owner --same-owner'                                              
  . ' -v -f - -C $shareName+';                                                                  
$Conf{DumpPreUserCmd} = '/usr/local/bin/BackupPC_pre-backup';
[/code]
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on December 20, 2006, 05:15:45 PM
this is the config file I use for the local host:

Code: [Select]
# Sample configuration file for localhost. release 4

$Conf{TarShareName} = ['/'];

$Conf{BackupFilesExclude} = ['/proc','/sys','/dev','/tmp','/home/e-smith/files','/opt/backuppc'];

$Conf{XferMethod} = 'tar';

$Conf{TarClientCmd} = '/usr/bin/sudo $tarPath -c -v -f - -C $shareName  --totals';

$Conf{TarFullArgs} = '$fileList';

$Conf{TarIncrArgs} = '--newer=$incrDate $fileList';

$Conf{TarClientRestoreCmd} = '/usr/bin/sudo $tarPath -x -p --numeric-owner --same-owner -v -f - -C $shareName';

$Conf{DumpPreUserCmd} = '/usr/local/bin/BackupPC_SME_pre-backup';


and here is what I use to backup another SME server:
Code: [Select]
$Conf{XferMethod} = 'rsync';

$Conf{RsyncShareName} = ['/'];

$Conf{RsyncClientPath} = '/usr/bin/rsync';

$Conf{RsyncClientCmd} = '$sshPath -q -x -l backuppc $host /usr/bin/sudo $rsyncPath $argList+';

$Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l backuppc $host /usr/bin/sudo $rsyncPath $argList+';

$Conf{BackupFilesExclude} = ['/proc','/sys','/dev','/tmp','/home/e-smith/files'];

$Conf{DumpPreUserCmd} = '$sshPath -l backuppc sas "/usr/local/bin/BackupPC_SME_pre-backup"';


Maybe you'd like to tweak the include/exclude part. If you're interested, I wrote this morning a how-to for a complete restore (on the same server after a crash or on a different server with different hardware). With this you can test if the restore process goes ok on a test server.

For this to work you'll need to create a user 'backuppc' on the remote server, give him sudo access to rsync and signal-event pre-backup without password and place the script /usr/local/bin/BackupPC_SME_pre-backup with execut permission.
This script is something like:
Code: [Select]

HOME=/root /usr/bin/sudo /sbin/e-smith/signal-event pre-backup
Title: [ANNOUNCE] smeserver-backuppc
Post by: pippin on December 25, 2006, 09:30:14 PM
Where do this backups go to?
I am not familar with rsync :D
Title: [ANNOUNCE] smeserver-backuppc
Post by: sonoracomm on December 25, 2006, 11:31:39 PM
Hi Pippin,

To make sense of this, you will need to read up on BackupPC in general...not rsync specifically.

Here is a howto I wrote that may help:
http://www.sonoracomm.com/index.php?option=com_content&task=view&id=86&Itemid=32

Here is the BackupPC info page:
http://backuppc.sourceforge.net/info.html

Here is the BackupPC FAQ, which is very helpful:
http://backuppc.sourceforge.net/faq/index.html

To answer your question, the backed-up data gets stored in a very clever 'pool' on the BackupPC (SME) server.  The main goal is to back up various other machines in an efficient manner to your BackupPC (SME) server and it works quite well.

G
Title: [ANNOUNCE] smeserver-backuppc
Post by: pippin on December 26, 2006, 09:27:22 PM
I get this message and i think i have done it right

Backup failed on 192.168.1.3 (Unable to read 4 bytes)
Title: [ANNOUNCE] smeserver-backuppc
Post by: sonoracomm on December 26, 2006, 09:45:00 PM
I suggest you search the BackupPC mailing list archives for help with BackupPC.

This error is fairly generic in that it implies the backup didn't happen, often because of a basic communication failure.

Please look in the troubleshooting section of the howto I already pointed you to.

G
Title: [ANNOUNCE] smeserver-backuppc
Post by: pippin on December 26, 2006, 10:59:23 PM
I think i know the problem,but i dont know how
Its because it ask for the root password on the remote machine and i dont know how to fix it
Title: [ANNOUNCE] smeserver-backuppc
Post by: sonoracomm on December 26, 2006, 11:04:06 PM
It's in the howto.

Again, this isn't really a BackupPC issue.  

http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html

G
Title: only with simple password
Post by: fpausp on December 31, 2006, 12:55:25 PM
Hi,

I can run a backup only when i use a simple password ???


before with a strengh password :

Connected to ap001:873, remote version 29
Error connecting to module C at ap001:873: auth failed on module C
Got fatal error during xfer (auth failed on module C)
Backup aborted (auth failed on module C)


after a change to a simple password it works, is this a bug ?


regards
fpausp
Title: [ANNOUNCE] smeserver-backuppc
Post by: pippin on December 31, 2006, 02:02:00 PM
Error: Unable to read config.pl or language strings!!

What have i done :wink:

You don't have permission to access /backup/cgi-bin/BackupPC_Admin on this server.

Ooops defenetly something wrong here please help :wink:
Title: change temp space for archives?
Post by: jahlewis on December 31, 2006, 03:09:09 PM
Is there any way to change the default temp space for archives to be built from the default /opt/backuppc/files/archive?

I tried to change it in config.pl to
Code: [Select]
$Conf{ArchiveDest} = '/media/usbdisk/archives';
but that does not seem to do the trick.

My primary disk is running out of room when the archives are built on the same disk as the backups.  I need the archives, but would like them to be built and stored on a separate disk or disks.  Is this possible?

THanks.
Title: Re: only with simple password
Post by: Daniel B. on January 02, 2007, 10:26:23 AM
Quote from: "fpausp"
Hi,
I can run a backup only when i use a simple password ???
before with a strengh password :
Connected to ap001:873, remote version 29
Error connecting to module C at ap001:873: auth failed on module C
Got fatal error during xfer (auth failed on module C)
Backup aborted (auth failed on module C)
after a change to a simple password it works, is this a bug ?
regards
fpausp


Which password are you talking about? the password of the admin to connect to the interface? The password on the host to backup? Please, give more details.

Quote from: "pippin"
Error: Unable to read config.pl or language strings!!

What have i done Wink

You don't have permission to access /backup/cgi-bin/BackupPC_Admin on this server.

Ooops defenetly something wrong here please help

This means there's something wrong with the file /opt/backuppc/files/conf/config.pl
You have done some changes in the configuration (I think through the interface in the server-manager) which are not correct. Try to see what you have changed, or at least, which line and which parameters are concerned.

Quote from: "jahlewis"
Is there any way to change the default temp space for archives to be built from the default /opt/backuppc/files/archive?

THere's a way but not with a parameter. You have to edit the file /etc/e-smith/templates-custom/usr/local/bin/BackupPC_SME_archiveHosts

line 24

Code: [Select]
my $tempArchive = "$progpath/files/archive";

Just replace it by the full path you want to use (user backuppc must have write access)

for exemple
Code: [Select]
my $tempArchive = "/tmp";

Then, you must expand the template:

Code: [Select]
expand-template /usr/local/bin/BackupPC_SME_archiveHosts
Title: [ANNOUNCE] smeserver-backuppc
Post by: OzMoosis on January 02, 2007, 11:54:49 AM
Hi,

Is there an easy way to temporarily disable making backups with BackupPC without shutting down the program completely? The machines I'm backing up are moving to a different location, I want to stop backups until they're online again.

Thanks,

Oz
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on January 02, 2007, 11:59:41 AM
Quote from: "OzMoosis"
Hi,

Is there an easy way to temporarily disable making backups with BackupPC without shutting down the program completely? The machines I'm backing up are moving to a different location, I want to stop backups until they're online again.

Thanks,

Oz


To stop the automatic backups of an host, I add this directive in the per-pc configuration file:

$Conf{FullPeriod} = -1;

This way, you can still perform manual backups through the interface but the automatic ones should be ignored
Title: [ANNOUNCE] smeserver-backuppc
Post by: pippin on January 02, 2007, 07:22:48 PM
Does anybody have the backuppc directory because i have deleted it by a mistake and i dont know how to uninstall this contrib
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on January 03, 2007, 09:36:06 AM
Quote from: "pippin"
Does anybody have the backuppc directory because i have deleted it by a mistake and i dont know how to uninstall this contrib


To uninstall the contrib:
Code: [Select]
rpm -e smeserver-backuppc
Title: [ANNOUNCE] smeserver-backuppc
Post by: pippin on January 03, 2007, 04:00:14 PM
I get this error (tree connect failed: NT_STATUS_BAD_NETWORK_NAME

What am i doing wrong?

And when you backup a client which user? root? backuppc? or a name on that machine that have access to samba?
Title: [ANNOUNCE] smeserver-backuppc
Post by: jahlewis on January 03, 2007, 05:35:10 PM
I realize this is most likely a backuppc issue and not related to this contrib, but I'll ask anyway.

I've configured a Mac OS X host for tar backups of just the /Users directory with some typical Mac OS X excludes... I got it to work on my test system, but on another in the field, I'm getting the following error on the server with Backuppc running:

Code: [Select]
Jan  3 06:00:07 fileserver sudo(pam_unix)[9017]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=backuppc

/etc/sudoers has the following:
Code: [Select]
backuppc ALL=(root) NOPASSWD:/bin/tar,/sbin/e-smith/signal-event pre-backup

And backuppc is saying the backups are erroring with a tar 256 error...

I can't find out what the difference is between my working setup and the broken one...  Any suggestions?  Do I need to "unlock" the backuppc account in server-manager?

I can provide details if interested.
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on January 03, 2007, 06:28:06 PM
Quote from: "pippin"
I get this error (tree connect failed: NT_STATUS_BAD_NETWORK_NAME

What am i doing wrong?

And when you backup a client which user? root? backuppc? or a name on that machine that have access to samba?


You need to specify a user (an its password) who can at least read the SMB share, it can be a user of the domain, or of the host to backup.

Quote from: "jahlewis"

I realize this is most likely a backuppc issue and not related to this contrib, but I'll ask anyway.

I've configured a Mac OS X host for tar backups of just the /Users directory with some typical Mac OS X excludes... I got it to work on my test system, but on another in the field, I'm getting the following error on the server with Backuppc running:

Code:
Jan  3 06:00:07 fileserver sudo(pam_unix)[9017]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=backuppc


/etc/sudoers has the following:
Code:
backuppc ALL=(root) NOPASSWD:/bin/tar,/sbin/e-smith/signal-event pre-backup


And backuppc is saying the backups are erroring with a tar 256 error...

I can't find out what the difference is between my working setup and the broken one... Any suggestions? Do I need to "unlock" the backuppc account in server-manager?

I can provide details if interested.


Well, I never tried to backup MAC OS X system, but there's a problem in the configuration of the host I think: you have an error related to sudo on the server running backuppc but the command wich need sudo should be ran on the MAC host. can you post the config file for this host please, I'll try to understand how to make it. Maybe you should suscribe and ask on the user mailing list of backuppc:
https://lists.sourceforge.net/lists/listinfo/backuppc-users
Title: [ANNOUNCE] smeserver-backuppc
Post by: pippin on January 03, 2007, 07:14:55 PM
I give up on this contrib its for the pros
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on January 04, 2007, 09:52:39 AM
Well, if you are looking for a simple contrib to backup your server, maybe this contrib is not for you. I agree it can seem hard to use and configure, but once we understand how it works, it's very powerfull (I don't speek about my contrib but backuppc itself, my contrib just try to simplify the configuration).
Title: [ANNOUNCE] smeserver-backuppc
Post by: jahlewis on January 04, 2007, 03:58:51 PM
I agree totally.  Complex to initially grasp (you need to understand about tar, rsync etc., do ssh keys with linux/macosx boxes), but once set up, it is a very cool application.  

VIP-ire's contrib makes it MUCH easier to install and configure, so I can't thank you enough for doing this.

Also thank you to Sonora Communications for the excellent howto.
http://www.sonoracomm.com/index.php?option=com_content&task=view&id=86&Itemid=32
Title: [ANNOUNCE] smeserver-backuppc
Post by: pippin on January 06, 2007, 11:20:44 AM
Are you supposed to write som numbers in the config for SMB becasue 192.168.1.3 is in my orange zone behind a smoothie with static adress and dns from my ISP(basic setup in smoothie).I can reach the machine otherwise so i cant imagine what i get this error.

And its working with no password with ssh so why is it not working with rsync and samba?
Title: [ANNOUNCE] smeserver-backuppc
Post by: sonoracomm on January 06, 2007, 07:50:04 PM
Hi Pippin,

I don't understand your question very well, but I'll try to help.

You should probably be looking on the 'net for general BackupPC info, rather than here.  There's a lot more info there:

http://backuppc.sourceforge.net/info.html#lists

BackupPC will use EITHER the rsync, rsyncd OR the smb method to do the backup.  The methods don't combine.

The smb method will not normally work or be used for anything but Windows hosts ON THE LOCAL LAN.  SMB is not a firewall-friendly (or NAT-friendly) protocol.  Use rsync for Linux hosts.  Use the rsyncd method for Windows hosts not on the local LAN (DMZ or WAN hosts).  The rsync protocol goes through firewalls much easier as it only uses (by default) port 22.

See the howto previously mentioned as there are useful, working examples.

G
Title: [ANNOUNCE] smeserver-backuppc
Post by: sonoracomm on February 18, 2007, 08:03:27 PM
Hi Daniel,

I know you are busy with other things...but have you given any thought to upgrading the BackupPC contrib to the new version 3 of BackupPC?

The reason I ask is that it would (supposedly) solve a couple of problems I have with BackupPC.  It may even make the contrib simpler as it (supposedly) now includes config.pl editing in the CGI (?).

Anyway, thanks again for all the work you've done.  I appreciate it a lot.

G
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on February 19, 2007, 09:35:57 AM
Yes, I'm actually working on the integration of BackupPC v3. I haven't finished the scriplet for the rpm, and I need to find a clean way to upgrade from the old contrib. But V3 works on my test box (SME 7.1) and I think it'll be ready soon. The first release won't include any panel because, BackupPC 3 has its own configuration editor now, but I think I'll release a panel later to configure the copy of the data. (on a local folder, on a remouvable media or on a remote host). Don't worry, I'll post as soon as it's ready.
Title: backuppc in the standard repos
Post by: mrkiwi on April 28, 2007, 12:54:46 AM
Hi,

That sounds great - let me know if you want any testing done.

Is there a way to get this into the repos that are enabled by default? I gave a demo to a linux users group last week, and they were all mostly impressed - but it would be nice to have great apps like this installable from the repos rather than command line + wget + yum + vi etc

MrKiwi
Title: [ANNOUNCE] smeserver-backuppc
Post by: russs on May 04, 2007, 12:25:28 PM
Quote from: "jahlewis"
I agree totally.  Complex to initially grasp (you need to understand about tar, rsync etc., do ssh keys with linux/macosx boxes), but once set up, it is a very cool application.  

VIP-ire's contrib makes it MUCH easier to install and configure, so I can't thank you enough for doing this.

Also thank you to Sonora Communications for the excellent howto.
http://www.sonoracomm.com/index.php?option=com_content&task=view&id=86&Itemid=32



Just like to add my thanks for this excellent Howto and also for the fantastic contrib that is SME-Backuppc which makes me wish we hadn't spent so much cash on Veritas Backup Exec for our Windows servers last year!   :D
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on May 04, 2007, 03:48:43 PM
Hi. I just want to tell the new release based on backuppc 3 is ready. I've opened a new thread 'cause this one is quite different from 1.0-5. The configuration is now much more easy with the built-in CGI configuration editor (so my panel has gone). You can test it, any feedback is appriciated.

Cheers, Daniel
Title: [ANNOUNCE] smeserver-backuppc
Post by: mrkiwi on May 09, 2007, 01:58:08 AM
Quote from: "VIP-ire"
Hi. I just want to tell the new release based on backuppc 3 is ready. I've opened a new thread 'cause this one is quite different from 1.0-5. The configuration is now much more easy with the built-in CGI configuration editor (so my panel has gone). You can test it, any feedback is appriciated.

Cheers, Daniel


For those who want to try this ; i have hacked a quick script to save the typing ...

log onto your sme server as root.
Code: [Select]
#wget http://smtp.kawhai.net:81/smeserver-backuppc3.sh
#chmod 700 smeserver-backuppc3.sh
#./smeserver-backuppc3.sh


This will download the prerequisites, install them (yum will ask you for a Y before actually doing anything) and then install Daniels package.
It will then reboot the box so that backuppc starts properly.

As always - works for me but YMMV and use at your risk.
Cat smeserver-backuppc3.sh if  you want to see the script before you run it.

MrKiwi
Title: [ANNOUNCE] smeserver-backuppc
Post by: russs on June 01, 2007, 12:49:55 PM
Hi Guys,

this is probably just me....

I'm now using BackupPc 3 on SME 7.
It's a great program, just one thing though. On version 2 you had the option within the SME interface for Backuppc to send a backup to an external location, i.e. another server. I can't find this option in the new version though.

I have looked at the BackupPc documentation and just can't find this info!

As I said, I'm sure it's just me but what am I missing?

Thanks

Russ
Title: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on June 01, 2007, 02:33:10 PM
Quote from: "russs"
Hi Guys,

this is probably just me....

I'm now using BackupPc 3 on SME 7.
It's a great program, just one thing though. On version 2 you had the option within the SME interface for Backuppc to send a backup to an external location, i.e. another server. I can't find this option in the new version though.

I have looked at the BackupPc documentation and just can't find this info!

As I said, I'm sure it's just me but what am I missing?

Thanks

Russ


Hi. I haven't implemented this function in 3.0. Some scripts are ready but I need to fix some issues before the next release. I'll post when it'll be ready.

Cheers, Daniel
Title: [ANNOUNCE] smeserver-backuppc
Post by: russs on June 01, 2007, 02:49:42 PM
That's fine, I just thought I'd missed it!
Title: Re: [ANNOUNCE] smeserver-backuppc
Post by: Bud on August 12, 2008, 07:08:08 PM
Hi Guys

Hope you assist me.

I have Followed the how to from Sonora Communications on how to install BackupPC 3. Everything is up and running on my SME 7.3 Server.

For the Life of me I cannot seem to Figure it our on how to setup the Client on 3 Windowz XP Boxes to Backup 4 Different Folders (Not Shared) from each Box to the BacupPC Server. How do you do it?

Please Help  :???:
Title: Re: [ANNOUNCE] smeserver-backuppc
Post by: Daniel B. on August 13, 2008, 01:56:08 PM
Hi. This is not SME specific, you'll find more help here: http://backuppc.wiki.sourceforge.net/

I think the best option is to use cygwin+rsyncd on the windows boxes, and to configure 4 different modules (one for each directory you want to backup)

Cheers, Daniel
Title: Re: [ANNOUNCE] smeserver-backuppc
Post by: Bud on August 13, 2008, 07:01:22 PM
Thanks VIP-ire for your reply and advice

Wel I seem to be able to get One of Two Things Done with the Windowz XP Boxes.

1. Backup the Whole Drive from Each Windowz PC to the BackupPC Server.

                           or

2. Backup One Folder from Each Windowz PC to the BackupPC Server.

Please I need help an Example script " rsyncd " for my Windowz PC's to Backup Four Folders from Each Machine. I have looked at the Website Mentioned and I cannot seem to Find an Example.

Thanks again  :-)