Koozali.org: home of the SME Server

Backuppc contrib

mbachmann

Backuppc contrib
« Reply #15 on: October 04, 2004, 10:56:53 AM »
Uh, uh, the config files of this are really not for  faint-hearted chickens from Krautland.

mbachmann

Backuppc contrib
« Reply #16 on: October 07, 2004, 09:39:56 AM »
Code: [Select]
rpm -e smeserver-backuppc the (2.1.0-1 version), installed smeserver-backuppc-2.1.0-2, got:
              ##################################################
Oct  7 08:59:19 horus e-smith[22600]: backuppc: unrecognized service
Oct  7 08:59:19 horus e-smith[22600]: error: execution of %pre scriptlet from smeserver-backuppc-2.1.0-2 failed, exit status 1
Oct  7 08:59:19 horus e-smith[22600]: error:   install: %pre scriptlet failed (2), skipping smeserver-backuppc-2.1.0-2
...
##################################################

Removed, readded user backuppc, retried with 2.1.0-2, succesful this time, issued
Code: [Select]
/sbin/e-smith/db configuration setprop backuppc status enabled
/sbin/e-smith/signal-event console-save
reboot


Now onto the config-files.

It would be totally great if one can call backuppc from server-manager.

The default 127.0.0.1 backup setting worked just straight away without recursion.

Added remote SME with static IP to the hosts file, noticed the you have to reload the server configuration and got
Reply from server was: ok but then
backup failed (tree connect failed: NT_STATUS_BAD_NETWORK_NAME)
; it seems to think it is an Windows machine. Noticed that there is no config file for remote machine, copied config file from 127.0.0.1. Tried again.

Got fatal error during xfer (inet connect: Connection refused)
2004-10-07 10:05:20 Backup aborted (inet connect: Connection refused)


Then set the
$Conf{RsyncdAuthRequired} = 0;
no go, started to hate this.
Tried
$Conf{RsyncdUserName} = 'goodadminuser';
$Conf{RsyncdPasswd} = 'goodadminpw';

Now it's running.

/sbin/e-smith/user configuration mbachmann delprop faint hearted chicken status

duncan

Backuppc contrib
« Reply #17 on: October 07, 2004, 11:16:44 AM »
Hi,

The rpm might be a little flaky. There are some issues with shutting down the service etc. I am working on it for the next release.

I have edited this bit out - basically going into great detail on how to get your remote machine working - only to find you cheated and edited yours - glad you sorted it out. I will post some example configs in my contribs area later.

Because backuppc runs as user backuppc - the default 127.0.0.1 backup wont backup anything not readable to groups - I have changed this to sudo and tar for the next version - which gets everything.

A work in progress  :-)

mbachmann

Backuppc contrib
« Reply #18 on: October 07, 2004, 11:44:24 AM »
Unfortunately not, i was too hasty, now i got

Can't stat /opt/backuppc/files/pc/192.168.1.100/new: No such file or directory
Backup failed on 192.168.1.100 (inet connect: Connection refused)

Where 192.168.1.100 is the remote machine. Don't understand why backuppc needs to create a directory there.

duncan

Backuppc contrib
« Reply #19 on: October 07, 2004, 12:04:36 PM »
It doesnt.

/opt/backuppc/files/pc/192.168.1.100/new is a temporary directory on your backuppc machine - whilst the backup is running.

Do you have a rsyncd server running on your remote machine (I suspect not). If not - you will need to do rsync/tar over ssh - which is a little tricky. ;-)

mbachmann

Backuppc contrib
« Reply #20 on: October 07, 2004, 12:15:33 PM »
Grmpf, howto daemonize rsync? rsync -0 --daemon?
Found "rsync" in /etc/xinetd.d which reads

# default: off
# description: The rsync server is a good addition to am ftp server, as it \
#   allows crc checksumming etc.
service rsync
{
   disable   = yes
   socket_type     = stream
   wait            = no
   user            = root
   server          = /usr/bin/rsync
   server_args     = --daemon
   log_on_failure  += USERID
}

Should this be rsync.conf? I'm giving up for the moment.

duncan

Backuppc contrib
« Reply #21 on: October 07, 2004, 12:42:25 PM »
pico /etc/rsyncd.conf

Fill it in and save.

mbachmann

Backuppc contrib
« Reply #22 on: October 07, 2004, 01:06:55 PM »
In man pages the easiest things reads like Herculian labours.

Now there is daemonized rsync on the remote machine and the Backup machine is not complaining about a refused connection.

2004-10-07 13:41:19 User admin requested backup of 192.168.1.100 (192.168.1.100)
2004-10-07 13:41:20 Started full backup on 192.168.1.100 (pid=8198, share=home)
2004-10-07 13:41:25 192.168.1.100: Can't stat /opt/backuppc/files/pc/192.168.1.100/new: No such file or directory
2004-10-07 13:41:25 Backup failed on 192.168.1.100 (Unknown module 'home')

It cannot create the directory and there's a glitch with $Conf{RsyncShareName} = ['home','opt'];, regardless if i type ['/home','/opt'];.

The manual says "For $Conf{XferMethod} = rsyncd'' this should be the name of the module to backup (ie: the name from /etc/rsynd.conf)" - i esp. don't get the  statement in parenthesis.

duncan

Backuppc contrib
« Reply #23 on: October 08, 2004, 11:28:14 AM »
Perhaps this Howto might help. It uses tar over ssh as it's transport medium.

Regards Duncan

mbachmann

Backuppc contrib
« Reply #24 on: October 08, 2004, 07:46:38 PM »
Thank you duncan. I'll try it out on monday and report back.

Somehow i am also ambitious to get that rsyncd thing to work without much more asking, so wish me luck.

duncan

Backuppc contrib
« Reply #25 on: October 14, 2004, 03:26:36 AM »
Hi all.

Its been a couple of weeks, just curious if anyone had a go at this and how they went.

Regards Duncan

mbachmann

Backuppc contrib
« Reply #26 on: October 15, 2004, 12:51:50 PM »
I just followed the howto and it worked straight out. But if it is as complicated restoring the data back  i will be lost. Thank you, Duncan.

mbachmann

Backuppc contrib
« Reply #27 on: November 29, 2004, 04:19:20 PM »
Duncan, in the last line of the howto <i>...Create a new config.pl ...</i> you should point out, that the per-PC-config.pl is to be created in /opt/backuppc/files/pc/xxx.xxx.xxx.xxx (=ip-of-computer) directory.

There is a global config.pl in /opt/backuppc/files/conf and a local config.pl which can be easily messed up. This also is not not made very clear in the documentation - for me at least.

Useful commands i've found:
$Conf{Language} = 'de'; (supports de, en, fr, es, nl, it)
$Conf{CompressLevel} = 0; (2 or 3 is a good compromise)
$Conf{TarClientCmd} --one-file-system

Damian

Backuppc contrib
« Reply #28 on: January 19, 2005, 10:03:11 PM »
I have backuppc running great on SME 6.0 but am told by the restore page that I don't have the Archive::Zip package installed and cannot therefore offer ZIP files for restore. I contacted the backuppc maillist and was told where to get the CPAN stuff for this but it complains during install about missing Archive::Zlib. They said I need that too but installing that fails when gcc isn't found on SME :-(

Can't remember where I eventually grabbed the backuppc rpm from does anyone have experience of this ? Great package by the way  ;-)

Damian

Damian

Backuppc contrib
« Reply #29 on: January 20, 2005, 03:22:28 PM »
Just checked the contents of the contrib backuppc rpm and this doesn't contain these elements either. That probably means that anyone who installed this on SME can't restore to ZIP. Is this true ?

Damian