CPanel Backup with SCSI Tape

wsenter

Well-Known Member
Aug 5, 2003
88
0
156
Texas
Has anyone tried to backup their CPanel server to a SCSI tape device ? If so, what is best way to do this ?

I have a Compaq Proliant server with Smart Array Controller. I need to add drives to the existing RAID5 array. I will have to "re-partition" the array after adding the new drives. Then perfom a tape restore.

Any help or advice would be greatly appreciated. Thanks in advance.



Low Cost, High Quality Reseller Hosting
http://www.netlinkinfo.com

cPanel.net Support Ticket Number:
 

mickeymouse

Well-Known Member
Sep 16, 2003
389
0
166
Dear wsenter,

As tape drives get faster the need to reduce backup times and optimise the tape drive performance start to become paramount. Many backup software packages allow multiple streams of data from multiple sources to be streamed concurrently to the tape drive(s) thus ensuring the device continues to stream rather than stopping and starting. This causes unnecessary wear and tear on the drive mechanism which can over a prolonged period create a backup failure.

For more information regarding tape backups,refer the URL:

http://www.linux-backup.co.uk/

Regards,
 

wsenter

Well-Known Member
Aug 5, 2003
88
0
156
Texas
What ??

Mickeymouse,

Did you get someone else's post mixed up with mine ?

I didn't ask for the history of Tape Backup Units. Did you read my post ?

Thanks,
wsenter
 

HorburySchool

Active Member
Dec 14, 2007
30
0
56
Code:
#!/bin/sh
  TARGET=/dev/sa0
  FILESYSTEMS=/:/var:/usr:/home
  DUMPLEVEL=0
  DUMPOPTIONS=au
  MTACTION=rewind
 
  MT=/usr/bin/mt
  SED=/usr/bin/sed
  DUMP=/sbin/dump
 
#Rewind the tape
  echo "${MT} ${MTACTION}"
  ${MT} ${MTACTION}
#Do the dump for each file system
  for i in `echo $FILESYSTEMS | ${SED} 's/:/ /g'`
  do
          echo "${DUMP} ${DUMPLEVEL}${DUMPOPTIONS}f ${TARGET} $i"
          ${DUMP} ${DUMPLEVEL}${DUMPOPTIONS}f ${TARGET} $i
  done
#Rewind the tape
  echo "${MT} ${MTACTION}"
  ${MT} ${MTACTION}
Copy n' paste that into notepad, save as fullbackup.sh, then copy it to incrementalbackup.sh. Open incrementalbackup.sh and change DUMPLEVEL=0 to =1

Make sure TARGET=/dev/sa0 is correct target for your tape drive - it should be listed in dmesg - set target to /dev/[whatever it's listed as in dmesg]

Upload both files as ascii to your server.

Use Cron to schedule when you want them to run, or just SSH in, su to root, and run manually...

sh fullbackup.sh

or

sh incrementalbackup.sh

Make sure your tape drive has enough capacity to hold the entire filesystems that are listed as FILESYSTEMS=

See http://www.freebsddiary.org/dump-restore.php#restore
 
Last edited: