Koozali.org: home of the SME Server

[ANNOUNCE] smeserver-backuppc

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc
« Reply #105 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?
C'est la fin du monde !!! :lol:

jcoleman

[ANNOUNCE] smeserver-backuppc
« Reply #106 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

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc
« Reply #107 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.
C'est la fin du monde !!! :lol:

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc
« Reply #108 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
C'est la fin du monde !!! :lol:

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc
« Reply #109 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
C'est la fin du monde !!! :lol:

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
[ANNOUNCE] smeserver-backuppc
« Reply #110 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

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc
« Reply #111 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
C'est la fin du monde !!! :lol:

JackNoyes

What a killer contrib!
« Reply #112 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?

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc
« Reply #113 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
C'est la fin du monde !!! :lol:

JackNoyes

[ANNOUNCE] smeserver-backuppc
« Reply #114 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

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc
« Reply #115 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
C'est la fin du monde !!! :lol:

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc
« Reply #116 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?
C'est la fin du monde !!! :lol:

Offline EdelingF

  • *****
  • 215
  • +0/-0
[ANNOUNCE] smeserver-backuppc
« Reply #117 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
...

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-backuppc
« Reply #118 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
C'est la fin du monde !!! :lol:

Offline jahlewis

  • *
  • 151
  • +0/-0
    • http://www.arachnerd.com/
I've deleted the localhost, but need the config.pl
« Reply #119 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]
............