[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: general backup question/tar



hi ya...

my favorite topic for "flame wars"....next to dns flames...

I like tar for backups....
	- and i dont worry about restore too much...
	since if you need to restore...something else is probably
	(seriously) wrong too

	- restoring a file from tape is too too painful...

since tapes are expensive compared to $100 for 20Gb of disks
I only use disks for backup of systems...
	- disks backups are fast and can be almost hot swappable

	- remember too that you have stuff on the original cdrom
	so i rarely if ever backup /usr/X11R6 /lib etc..etc...

I run incremental and full backups from cron:

- Backups should be done on a different machine....and 
  different disk than the system disk
	/mnt/Backup.daily is the daly backup disks on system1
	/mnt/Backup.weekly is the weekly backup disk on system2
	/mnt/Backup.monthly is the montly backup disk on system3

for full backups.... i remove "modified files" from find

-----------

from cron...i call a script that does...something like this..

- daily incremental
  tar zcf /Backup.daily/month_date_week.tgz
     ` find /home /etc /root /var -mtime -2 -prnt`

	- change -2, -3, -4, -5, -6, -7 for each
	successive daily incremental backup

- weekly incremental
  tar zcf /Backup.weekly/month_date_week.tgz
     ` find /home /etc /root /var -mtime -7 -prnt`
	- reset counters

- monthly incremental
  tar zcf /Backup.monthly/month_date_week.tgz
     ` find /home /etc /root /var -mtime -32 -prnt`

---------------------------------------------

also keep in mind.... incremental backups is only good if 
the previous incremental backup was good and saved too...
	so incremental backups is alwys done since "last full bckup"
----------------------------------------------

Reasons for backup failures...
	- disks gets full
	- network fails
	- tape was not changed
	- bad media

have fun linuxing
alvin


On Mon, 4 Sep 2000, Robert Waldner wrote:

> 
> Hi!
> 
> At the moment I´m cycling through a few tapes doing backups every 
> week or so with
>   tar cvz --exclude /proc --exclude /dev --exclude /tmp / >/dev/st0
> 
> Are there any precautions I should take that I have forgotten/not yet 
> heard about? I can do a recover to someplace (eg /tmp/recover) and get 
> the files I need but is this considered good practice or am I missing 
> something?
> 
> Also, is there a possibility to find out (rather than trying through 
> tar tv(Iz)) if a tape is tar.gz, tar.bz2 or plain tar?
> 
> Thanks for any advice,
> &rw
> -- 
> / Robert Waldner <Waldner@KPNQwest.at> | Phone: +43 1 89933 0 Fax x533 \
> \        KPNQwest/AT tech staff        | Diefenbachg. 35   A-1150 Wien / 
> 
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 



Reply to: