Koozali.org: home of the SME Server

BackupPC

CKConsulting

BackupPC
« on: February 08, 2005, 05:34:12 AM »
First a big thanks to Duncan for the work on getting BackupPC to work on SME.

I'm looking for a way to create an easier path to get to the web page.
Current:   http://server-address/backuppc/cgi-bin/BackupPC_Admin.cgi
I would like somthing like:
http://server-address/backuppc or http://backuppc/server-address Or
maybe a short cut in server-manager

question 2:
Could backupPC be used to backup data accross the WAN with out using a VPN??

question 3:
I've been use SMB to backup WIN clients any success/horror stories using cwRsync?

Thanks,
Rick

duncan

BackupPC
« Reply #1 on: February 09, 2005, 12:32:16 AM »
Coincidently I have built a new package that will simply have an address like https://server-address/backuppc/admin.

If you want to do it with the current package just edit
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99backup and change the entry to

Code: [Select]
ScriptAlias /backuppc/admin   /opt/backuppc/cgi-bin/BackupPC_Admin.cgi
                    Alias /backuppc              /opt/backuppc/html


You will need to expand the template and restart httpd.

I am doing remote offsite backups now using rsync over ssh. I switched to rsync as it is a lot more efficient than tar or smb. I just set my local machines to listen on different ports as well as the standard ssh port 22 and port forward those ports to the appropriate machine at the firewall. Data is encrypted via ssh.

Cygwin works well enough as a rsyncd server – it would be nice to do as rsync over ssh as an alternative – keep everything the same across the board.

duncan

BackupPC
« Reply #2 on: February 09, 2005, 12:33:39 AM »
And watch for the line wrapping in that code.

Damian

BackupPC
« Reply #3 on: February 09, 2005, 01:13:32 AM »
Hi Rick,

We back up 5 sites over the WAN using rsync over ssh. Pretty solid although the initial FULL is slow (one took 8 days).

Hats off to Duncan.

Damian

CKConsulting

BackupPC
« Reply #4 on: February 09, 2005, 04:57:41 AM »
Sounds like what I'm looking for.
Can this be done backing up a windows box?

If you have doc's on this I would love to see them!

Thanks again,
Rick

CKConsulting

BackupPC
« Reply #5 on: February 09, 2005, 05:24:02 AM »
I tried the suggestion above but what do you mean by expland the template.

I edited the file above and then restarted httpd.
I also restared the server but no luck.

Rick

duncan

BackupPC
« Reply #6 on: February 09, 2005, 08:15:18 AM »
Expand template

Code: [Select]
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/sbin/service httpd restart


Regards Duncan

Damian

BackupPC
« Reply #7 on: February 09, 2005, 05:37:48 PM »
I only back up SME or SUSE boxes using rsync over ssh. From the backuppc mailling list ....

The other reason I'd like to use ssh is that I use the -C flag to get compression with rsync transfers, but this isn't possible with windows because of the bug in the cygwin version of rsync/ssh.  My current workaround is to keep a Linux box at each remote office and first rsync the windows machines to samba shares on the Linux server, then let backuppc back up the Linux machine using rsync over ssh.
Les Mikesell   17/12/04 15:11

I haven't looked at stunnel though, only openssh.

Damian

CKConsulting

BackupPC
« Reply #8 on: February 10, 2005, 04:17:06 AM »
Here are my notes on installing backuppc.
99% stolen from multiple posts from DUNCAN, I'll take credit for the 1% of mistakes you may find below.

Code: [Select]
lat-users -a -c "backuppc|backup|pc|yourpassword"
mkdir /apps
cd /apps
wget http://mirror.contribs.org/smeserver/contribs/dthomas/smeserver/6.x/Beta/Backuppc/perl-File-RsyncP-0.52-8.i386.rpm
wget http://mirror.contribs.org/smeserver/contribs/dthomas/smeserver/6.x/Beta/Backuppc/smeserver-backuppc-2.1.0-3.noarch.rpm
rpm -Uvh smeserver-backuppc*
rpm -Uvh perl-File-RsyncP*
/sbin/e-smith/db configuration setprop backuppc status enabled
/sbin/e-smith/signal-event console-save
echo "--------Your done please reboot ----------"


****************************
If you need to uninstall
Code: [Select]
rpm -e smeserver-backuppc

****************************
To change the path to access BackupPC from http://server-address/backuppc/cgi-bin/BackupPC_Admin.cgi  to https://server-address/backuppc/admin edit the file below

/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99backup and change the entry to

Code: [Select]
ScriptAlias /backuppc/admin   /opt/backuppc/cgi-bin/BackupPC_Admin.cgi
                    Alias /backuppc            /opt/backuppc/html


Run the following commands
Code: [Select]
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/sbin/service httpd restart

You can now access backuppc via:
https://server-address/backuppc/admin

Thanks to everyone that helped a windoz guy see a little more light.  
Rick

mbachmann

BackupPC
« Reply #9 on: February 10, 2005, 11:03:44 AM »