Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: meelis on November 07, 2007, 12:34:53 PM

Title: BackupPC
Post by: meelis on November 07, 2007, 12:34:53 PM
How to use backupPc, save backup files to network share (change topdir, I made change config.pl but not work)?
Title: Re: BackupPC
Post by: Daniel B. on November 07, 2007, 01:11:13 PM
You cannot save the data on a samba network share. The FS where backuppc stores everything must support hardlink. The only one I know which support this feature is NFS (there may be some others). If you want your backups to be stored on a NFS share, you should mount your NFS share on /opt/backuppc before installing backuppc.
Title: Re: BackupPC
Post by: meelis on November 07, 2007, 01:23:50 PM
ok, but how, can't find eny cood topic for this
Title: Re: BackupPC
Post by: Daniel B. on November 07, 2007, 06:38:00 PM
Before installing BackupPC's contrib:

Code: [Select]
mkdir -p /opt/backuppc
mount -t nfs //server/share /opt/backuppc (man mount for all the options)

Then, install backuppc, check everything is ok. Once this is done, add an entry in /etc/fstab so the share will be automatically mounted each time the server boots.
Title: Re: BackupPC
Post by: meelis on November 08, 2007, 07:06:27 AM
mount -t nfs //192.168.2.248/pcbackup /opt/backuppc
Give this error: mount: directory to mount not in host:dir format
Title: Re: BackupPC
Post by: meelis on November 08, 2007, 07:41:57 AM
 mount -t smbfs //192.168.2.248/backuppc /opt/backuppc
Ask password(only), but eny password not works, share backuppc access read&write everyone
Title: Re: BackupPC
Post by: Daniel B. on November 08, 2007, 09:01:16 AM
As I said in the previous post, a samba share (smbfs) cannot work because it doesn't support hardlinks
Title: Re: BackupPC
Post by: meelis on November 08, 2007, 09:20:03 AM
If i add exterenal (usb) disk to server, then i can mnt backup files?
Title: Re: BackupPC
Post by: Daniel B. on November 09, 2007, 02:15:11 PM
Yes, you can use an external USB hard drive to store the backups. Here's a how-to (in french):

http://smeserver.fr/astuces.php?astuce=fs_add_hd
Title: Re: BackupPC
Post by: gollum on November 11, 2007, 01:02:15 PM
I tried this: Configure SME to use USB External drive for Backuppc at http://www.sonoracomm.com/index.php?option=com_content&task=view&id=209&Itemid=32 (http://www.sonoracomm.com/index.php?option=com_content&task=view&id=209&Itemid=32)

After installing USB Drive Manager I formatted and labelled /dev/sda1 running this:
Quote
mkfs.ext3 -L MyLabel /dev/sda1

I mounted /opt/backuppc on /dev/sda1:

(http://www.freewebtown.com/smeserver/images/backuppc111.jpg)

configuring this:

(http://www.freewebtown.com/smeserver/images/backuppc113.jpg)

- All I get is this :sad:

(http://www.freewebtown.com/smeserver/images/backuppc112.jpg)


Why this?
Is it necessary to run
Quote
signal-event post-upgrade; signal-event reboot
after installing these contribs? - I simply don't wanted to restart because of the delay SME use to mount USB-Drive before BackupPC starts...

Anyone an idea? Thx for help!