Koozali.org: home of the SME Server

BackupPC

Offline meelis

  • ****
  • 112
  • +0/-0
BackupPC
« 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)?

Offline Daniel B.

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

Offline meelis

  • ****
  • 112
  • +0/-0
Re: BackupPC
« Reply #2 on: November 07, 2007, 01:23:50 PM »
ok, but how, can't find eny cood topic for this

Offline Daniel B.

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

Offline meelis

  • ****
  • 112
  • +0/-0
Re: BackupPC
« Reply #4 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

Offline meelis

  • ****
  • 112
  • +0/-0
Re: BackupPC
« Reply #5 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

Offline Daniel B.

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

Offline meelis

  • ****
  • 112
  • +0/-0
Re: BackupPC
« Reply #7 on: November 08, 2007, 09:20:03 AM »
If i add exterenal (usb) disk to server, then i can mnt backup files?

Offline Daniel B.

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

Offline gollum

  • *
  • 11
  • +0/-0
Re: BackupPC
« Reply #9 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

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:



configuring this:



- All I get is this :sad:




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!
« Last Edit: November 11, 2007, 01:38:39 PM by gollum »