You are not logged in.

#1 2005-03-06 21:47:00

nehsa
Member
Registered: 2003-01-14
Posts: 159

backing up stuff

Whats a good way to back things up?  I want to cp certain files to another computer so that incase I screw something up I can recover quickly.  While I'm at it I'd like to backup mail and other things too.  Is that something I'd use cron for?  Sounds like that's what rsync does to.

Don't need any indepth respond, just general direction.

Thanks

Offline

#2 2005-03-06 21:50:42

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: backing up stuff

I use tar to manually back things up. I don't have alot of super important data that requires consistent automation..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-03-06 21:56:39

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: backing up stuff

Someone recommended hdup somewhere.

Offline

#4 2005-03-06 22:23:20

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

Offline

#5 2005-03-06 23:03:35

oscar
Member
From: Linköping, Sweden
Registered: 2004-08-13
Posts: 457

Re: backing up stuff

I use a application called flexbackup to go regular backups (with a cronjob) on some important things on a server of mine.

You can find it http://www.edwinh.org/flexbackup/ <--- there.
I used http://gentoo-wiki.com/HOWTO_Backup <--- that guide to set everything up - but the conf is pretty well documented.

Good luck!


To err is human... to really foul up requires the root password.

Offline

#6 2005-03-06 23:04:55

chane
Member
Registered: 2003-12-02
Posts: 93

Re: backing up stuff

We are using a relatively new backup utility called boxbackup (http://www.fluffy.co.uk/boxbackup/).   We've been using it for a while now and really like it.

I have a package build for it at work if your interested.  I can post it here, just let me know....

Chris....

Offline

#7 2005-03-07 08:04:36

jerem
Member
From: France
Registered: 2005-01-15
Posts: 310

Re: backing up stuff

I would use good ol' tar.

Don't forget to tar your /etc, that's the most important.

And if disk space is not a problem, you could even tar up your whole system (you could use gzip, it's faster yet bigger)

tar -cvjpf /mnt/whatever/whatever.tar.bz2 / --exclude=/mnt/* --exclude=/var/run/* --exclude=/var/cache/* --exclude=/sys/* --exclude=/proc/* --exclude=whatever.tar.bz2

To recover your backup, dont forget to set up grub and to have enough space on your partitions. You will have to edit your fstab if you changed you disk layout.

You could also try to use dd if you want to save your partitions in a ghost-like manner

dd if=/dev/hda1 of=disk.img | gzip

or something like that

Offline

#8 2005-03-07 08:23:13

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: backing up stuff

I made myself a bash script that copies set folders to my external drive every night at 9pm - why then? cause my computer is always on smile

#! /bin/bash
backupdir=`grep -c backup /etc/mtab`
if [ $backupdir==1 ]; then
  echo `date +%d/%m/%Y - %k:%M` : Starting backup >> /home/iphitus/.backup/log
  backupdate=/mnt/backup/`date +%d.%m.%Y`
  mkdir $backupdate
  for directory in `cat /home/iphitus/.backup/dirs`
  do
    echo `date +%d/%m/%Y - %k:%M` : Copying Directory: $directory >> /home/iphitus/.backup/log
    cp -a $directory $backupdate
    echo `date +%d/%m/%Y - %k:%M` : $directory Complete. >> /home/iphitus/.backup/log
  done
  echo `date +%d/%m/%Y - %k:%M` : Backup Complete >> /home/iphitus/.backup/log
  rm -r /mnt/backup/backup
  mkdir /mnt/backup/backup
  cp /home/iphitus/.backup/* /mnt/backup/backup/
fi
if [ $backupdir==0 ]; then
    echo `date +%d/%m/%Y - %k:%M` : Backup failed: Partition Not mounted. >> /home/iphitus/.backup/log
fi

config file:

/home/iphitus/Documents/Documents/
/home/iphitus/pycast
/home/iphitus/Graphics
/home/iphitus/serverb

How it works?
checks if partition is mounted, then copies the stuff listed in the config file ~/.backup/dirs to the set place. yeah i know it sucks, but it works and maybe it'll work for whoever else uses it.

Offline

#9 2005-04-20 21:42:57

marcob
Member
From: B-town USA
Registered: 2004-11-10
Posts: 38
Website

Re: backing up stuff

chane wrote:

We are using a relatively new backup utility called boxbackup (http://www.fluffy.co.uk/boxbackup/).   We've been using it for a while now and really like it.

I have a package build for it at work if your interested.  I can post it here, just let me know....

Chris....

Boxbackup submitted to AUR.

Server:

http://aur.archlinux.org/packages.php?d … SB=n&PP=25

Client:

http://aur.archlinux.org/packages.php?d … SB=n&PP=25

Offline

Board footer

Powered by FluxBB