Archive for the ‘backuppc’ Category

backuppc with ext3

March 8, 2008

I reformatted my /nasse as reiserfs since I ran out of inodes with ext3. Just move your data to /storage partition, create reiserfs partition and move your data back.

Please remember to use noatime and notail options.

root@nasse:/nasse/backuppc# mount -l /dev/sda1 on / type ext3 (rw,errors=remount-ro) []

proc on /proc type proc (rw,noexec,nosuid,nodev)

/sys on /sys type sysfs (rw,noexec,nosuid,nodev)

varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)

varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)

udev on /dev type tmpfs (rw,mode=0755)

devshm on /dev/shm type tmpfs (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)

/dev/hda1 on /storage type reiserfs (rw,noatime,notail) [Storage_400G]

/dev/mapper/nasse-nasse_store on /nasse type reiserfs (rw,noatime,notail) []

securityfs on /sys/kernel/security type securityfs (rw)

nfsd on /proc/fs/nfsd type nfsd (rw)

root@nasse:/nasse/backuppc#
Advertisements

Another backuppc wiki

March 4, 2008

Another backupc wiki write-up:

http://www.smop.co.uk/mediawiki/index.php/BackupPC

Useful backuppc blog entries

February 20, 2008

Here is good blog entry about backupc: http://stanlarson.com/wordpress/archives/50.
And here is another one http://wiki.nerdylorrin.net/wiki/Wiki.jsp?page=BackupPC.

Day 2: Ubuntu RAID-1 and LVM enabled filer on a USB stick with backuppc

February 20, 2008

Update after few weeks… Backuppc is pretty nice and useful.

Some minor pitfalls and tips on backuppc:

  1. There maybe existing username backup on your Linux system. Dont confuse it with backuppc.
  2. One some Linux systems backuppc user is BackupPC.
  3. Make sure you have enough inodes!!
  4. Its documentation on its website somehow is hard to understand. See /etc/backuppc/config.pl instead.
  5. Use prepackaged Cygwin rsyncd from backuppc web site over Samba on winblows systems
  6. Make sure ssh keys are set for backuppc and not for root user
  7. Run ‘sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -v -f backupclient’ on xterm to see what is really going wrong…
  8. Using backuppc make backups of your USB stick

Day 1: Ubuntu RAID-1 and LVM enabled filer on a USB stick with backuppc

January 9, 2008

Ok for the time being I decided to abandon freenas and openfiler (since I could not get backuppc installed in them) and install Ubuntu Gutsy Gibbon on 4GB A-Data USB stick ($20 from Fry’s).

It is super easy to install Ubuntu on USB stick. Make sure CDROM is the first boot device. Pop-in Ubuntu cdrom and reboot.

I used Ubuntu 7.10 alternate cd image (so no Ubuntu server or Ubuntu desktop cd image). This alternate has no X11 and supports LVM/RAID configs. During install I just picked /dev/sda as drive to partition and install on. It might be good idea to disconnect IDE drives during install no prevent accidentally installing on /dev/hdX drive.

No special usb modules loading andor rebuilding initrd.img tricks were required. Even though initially I thought so that I need to follow instructions outlined at http://www.pendrivelinux.com/

After reboot change boot device to USB HDD in BIOS settings and remove cd from cdrom drive. It takes a while to boot up…

Then just update Ubuntu and install swat, backuppc, samba, nfs, sshd, apache, webmin etc to help admin etc work.

In my box (Shuttle SK41G AMD Athlon XP 1800+) I have:

  • 2x160GB Hitachi Deskstars in RAID-1 array (file system: ext3 – mounted as /nasse)
  • 1x400GB Seagate (filesystem: ReiserFS – mounted as /storage)

Mount and df from box:

root@nasse:~# mount /dev/sda1 on / type ext3 (rw,errors=remount-ro)

proc on /proc type proc (rw,noexec,nosuid,nodev)

/sys on /sys type sysfs (rw,noexec,nosuid,nodev)

varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)

varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)

udev on /dev type tmpfs (rw,mode=0755)

devshm on /dev/shm type tmpfs (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)

/dev/hda1 on /storage type reiserfs (rw)

securityfs on /sys/kernel/security type securityfs (rw)

nfsd on /proc/fs/nfsd type nfsd (rw)

/dev/mapper/nasse-nasse_store on /nasse type ext3 (rw,noatime)
root@nasse:~#

root@nasse:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 3.5G 762M 2.6G 23% / varrun 236M 184K 236M 1% /var/run varlock 236M 0 236M 0% /var/lock udev 236M 88K 236M 1% /dev devshm 236M 0 236M 0% /dev/shm lrm 236M 34M 203M 15% /lib/modules/2.6.22-14-generic/volatile /dev/hda1 373G 35M 373G 1% /storage /dev/mapper/nasse-nasse_store 154G 2.2G 152G 2% /nasse root@nasse:~#

This link https://help.ubuntu.com/community/Installation/RAID1+LVM was super useful for me.

More on backuppc set up and config later.

Openfiler or FreeNAS with backuppc?

January 8, 2008

Well I have been testing them both. They are both very nice packages. My goal is to have backuppc to take care of backups in my homenetwork. Unfortunately none of them come with backuppc preloaded.

I somehow like openfiler more: it is under more active development, it is based on rpath and it is easier to load other packages on it.

Openfiler comes with bacula preloaded, but it is an overkill for my purposes. I somehow like backuppc approach and design a lot.

I tried to install backuppc on openfiler, but I could not get perl modules installed. I am not that familiar with conary pkg management and conary repositories did not have recent backuppc packages available so I gave up. I’m not sure if you can install backuppc on FreeNAS?

Also I tried to run backuppc on my other server and store backups on my openfiler over NFS. Backuppc caused my other linux server to crash when rsyncing large files. Not very good since this other server is my mythbackend…

Howto get Apache to respond on ports 80 and 8080 on same Linux server

January 8, 2008

Since httpd needs to run as user backuppc and my server already runs httpd as user apache on port 80 here are instructions how to get httpd to run on port 8080 also.

To be continued…