The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CPanel Backup with SCSI Tape

Discussion in 'General Discussion' started by wsenter, Oct 3, 2003.

  1. wsenter

    wsenter Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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:
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    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,
     
  3. wsenter

    wsenter Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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
     
  4. HorburySchool

    HorburySchool Active Member

    Joined:
    Dec 14, 2007
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    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
     
    #4 HorburySchool, Feb 1, 2008
    Last edited: Feb 3, 2008
Loading...

Share This Page