Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Aug 2003
    Location
    Texas
    Posts
    91

    Arrow CPanel Backup with SCSI Tape

    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. #2
    Member
    Join Date
    Sep 2003
    Posts
    389

    Default RE: CPanel Backup with SCSI Tape

    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. #3
    Member
    Join Date
    Aug 2003
    Location
    Texas
    Posts
    91

    Default 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. #4
    Member
    Join Date
    Dec 2007
    Posts
    30

    Default

    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 by HorburySchool; 02-03-2008 at 05:07 AM.

Similar Threads & Tags
Similar threads

  1. Backing up the system w/ SCSI Tape Drive
    By dceola in forum Data Protection
    Replies: 6
    Last Post: 11-27-2008, 01:20 PM
  2. Backup to Tape
    By kaejr00 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-17-2006, 05:06 PM
  3. How to use my old SCSI HDD on a new backup computer? (WinXPSP2)
    By goodgbb in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-23-2005, 11:23 AM
  4. 3 SCSI Drives
    By bjdea1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-14-2004, 03:20 PM
  5. IDE or SCSI
    By netlook in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-08-2004, 05:33 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube