Koozali.org: home of the SME Server

[ANNOUNCE] smeserver-backuppc

Offline Daniel B.

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

pippin

[ANNOUNCE] smeserver-backuppc
« Reply #121 on: December 25, 2006, 09:30:14 PM »
Where do this backups go to?
I am not familar with rsync :D

Offline sonoracomm

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

pippin

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

Offline sonoracomm

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

pippin

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

Offline sonoracomm

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

Offline fpausp

  • *
  • 728
  • +0/-0
only with simple password
« Reply #127 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
Viribus unitis

pippin

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

Offline jahlewis

  • *
  • 151
  • +0/-0
    • http://www.arachnerd.com/
change temp space for archives?
« Reply #129 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.
............

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: only with simple password
« Reply #130 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
C'est la fin du monde !!! :lol:

Offline OzMoosis

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

Offline Daniel B.

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

pippin

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

Offline Daniel B.

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