[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] Backing up your Linux Machines
From:       "Lonney Harper [IS/NHL]" <lonneyh () nhl ! co ! nz>
Date:       2002-02-27 1:13:12
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I actually solved my problem seconds before I was about to send this email,
I used winzip to untar the backup script files into a samba share on the
Linux server and got the errors below, I then used tar on the Linux box to
untar and the scripts worked.

We will only backup /home /root /var/www and /etc. We have a policy of
rebuilding machines from scratch and restoring the 'userdata'  from tape if
a system has a total disk fail.... I will continue to experiment with
different options and have a go at restoring a complete system from tape
with star on the test box... but need to learn more about restoring grub n
stuff... actually that's a hole gray area not covered, not to worry I enjoy
a Linux challenge as you learn better that way :)

I didn't find Linux Tape Cert very useful, for DLT drives I couldn't find
anything on block size, Quantum suggest 128k or at least 64k

There is at least one error, page 20 - A simple verify: # star -tv -f
bs=[blocksize] /dev/nst0 should read  # star -tv bs=[blocksize] -f /dev/nst0
( -f is in the wrong place :)

Apart from that I found your Article extremely practical, in the past we
just used dump as that's what we use on our DEC Alpha's (vdump) we will most
likely make the change to Star for our production Linux/Samba file servers.
Good to see someone finally writing some decent doco for Linux, keep it up
:)



(original message)

I have been using your article on IBM dW to test as a better backup solution
for our Linux systems.

I am testing with RedHat Linux 7.2 (ext3fs) and a DLT TZ88 Tape drive
(20/40gb) we use only DLT for their robustness.

all your example commands work nice, I made one small change, a sym link
called /dev/tape that points to /dev/nst0, mt expects /dev/tape if you don't
tell it what device, saves a bit of typing when playing around.

when I try to run your backup scripts I get errors, unfortunately I not much
of a script wizard.

here is the output of the unmodified scripts

[root@whg-data2-t backup-tools-1.0]# ls
backup  backup-tools.sh
[root@whg-data2-t backup-tools-1.0]# ./backup
: command not found
: No such file or directory
: command not found
'/backup: line 6: syntax error near unexpected token `{
'/backup: line 6: `bt_backup() {
[root@whg-data2-t backup-tools-1.0]#


________________________________________________
Lonney Harper
Computer Operations
Information Systems
Northland District Health Board
Whangarei
New Zealand

+64 9 430 4100
lonneyh@nhl.co.nz
http://www.northlanddhb.org.nz/


[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4912.300" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>I actually solved my 
problem seconds before I was about to send this email, I used winzip to untar 
the backup script files into a samba share on the Linux server and got the 
errors below, I then used tar on the Linux box to untar and the scripts worked. 
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>We will only backup 
/home /root /var/www and /etc. We have a policy of rebuilding machines from 
scratch and restoring the 'userdata'&nbsp; from tape if a system has a total 
disk fail.... I will continue to experiment with different options and have a go 
at restoring a complete system from tape with star on the test box... but need 
to learn more about restoring grub n stuff... actually that's a hole gray area 
not covered, not to worry I enjoy a Linux challenge as you learn better that way 
:)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>I didn't find Linux 
Tape Cert very useful, for DLT drives I couldn't find anything on block size, 
Quantum suggest 128k or at least 64k</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>There is at least 
one error, page 20 - A simple verify: # star -tv <STRONG>-f</STRONG> 
bs=[blocksize] /dev/nst0 should read&nbsp; # star -tv bs=[blocksize] 
<STRONG>-f</STRONG> /dev/nst0 ( -f is in the wrong place :)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>Apart from that I 
found your Article <STRONG>extremely practical</STRONG>, in the past we just 
used dump as that's what we use on our DEC Alpha's (vdump) we will most likely 
make the change to Star for our production Linux/Samba file servers. Good to see 
someone finally writing some decent doco for Linux, keep it up 
:)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>(original 
message)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>I have been using 
your article on IBM dW to test as a better backup solution for our Linux 
systems.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>I am testing with 
RedHat Linux 7.2 (ext3fs) and a DLT TZ88 Tape drive (20/40gb) we use only DLT 
for their robustness.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>all your example 
commands work nice, I made one small change, a sym link called /dev/tape that 
points to /dev/nst0, mt expects /dev/tape if you don't tell it what device, 
saves a bit of typing when playing around.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>when I try to run 
your backup scripts I get errors, unfortunately I not much of a script 
wizard.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>here is the output 
of the unmodified scripts</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=120111700-27022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=120111700-27022002>[root@whg-data2-t 
backup-tools-1.0]# ls<BR>backup&nbsp; backup-tools.sh<BR>[root@whg-data2-t 
backup-tools-1.0]# ./backup<BR>: command not found<BR>: No such file or 
directory<BR>: command not found<BR>'/backup: line 6: syntax error near 
unexpected token `{<BR>'/backup: line 6: `bt_backup() {<BR>[root@whg-data2-t 
backup-tools-1.0]#<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>________________________________________________</FONT></DIV>
<DIV><FONT face=Arial size=2>Lonney Harper</FONT></DIV>
<DIV><FONT face=Arial size=2>Computer Operations</FONT></DIV>
<DIV><FONT face=Arial size=2>Information Systems</FONT></DIV>
<DIV><FONT face=Arial size=2>Northland District Health Board</FONT></DIV>
<DIV><FONT face=Arial size=2>Whangarei</FONT></DIV>
<DIV><FONT face=Arial size=2>New Zealand</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>+64 9 430 4100</FONT></DIV>
<DIV><FONT face=Arial size=2><A 
href="mailto:lonneyh@nhl.co.nz">lonneyh@nhl.co.nz</A></FONT></DIV>
<DIV><FONT face=Arial size=2><A 
href="http://www.northlanddhb.org.nz/">http://www.northlanddhb.org.nz/</A></FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic