Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2008
    Location
    Ottawa, Canada
    Posts
    175

    Step by Step guide - externeal backup?

    Hi everybody,

    First of all this is not a guide, this is a request for an instruction on how to setup an external hard drive with USB port to a webserver with following configuration:

    Centos 5.3
    Cpanel (latest)

    What I want to do is to format and mount an external hard drive by USB port to my server and take my daily cpanel accounts on it.

    Would anybody plz take me step by step through this. I'm sure it will be useful for all newbie forum members like me.

    Thanks

  2. #2
    Join Date
    Mar 2009
    Location
    /usr/bin/perl
    Posts
    971
    here's the simplest setup possible.

    1. Find the new disk's device name in /dev
    2. "mkfs -t ext3 /dev/yourdevicenamehere"
    3. "mkdir /bak"
    4. "mount -t ext3 /dev/yourdevicenamehere /bak"
    5. to make this device mount on boot "echo "/dev/yourdevicenamehere /bak ext3 defaults 1 2" >> /etc/fstab"

    For the actual backup portion you can use rsync. This will make incremental copies of only the files that have changed.

    6. "yum install rsync"
    7. "man rsync" for some sample commands.
    8. once you've figured out a command that works well for you, simply make a cron job to repeat this command as often as you would like and you should be all set!
    Last edited by e-Sensibility; 10-29-2009 at 03:07 PM.

  3. #3
    Join Date
    Jul 2008
    Location
    Ottawa, Canada
    Posts
    175
    Thanks, but I'm stuck in the first part.

    There are too many things and I dont know how my 1.5 TB Seagate HD is displayed here!

  4. #4
    Join Date
    Jul 2008
    Location
    Ottawa, Canada
    Posts
    175
    Ok, I'm not sure If the HD is this or not:

    when I plug the USB port this message shows up:

    Vendor: Seagate Model: FreeAgent Rev:102D
    Type: Direct-Access
    sda: spinning up disk.....ready
    sda: write protect is off

    and so forth.

    Is sda my drive in this list?

    if yes, what are sda1, sg0 and sg1?
    Please advise

  5. #5
    Join Date
    Mar 2009
    Location
    /usr/bin/perl
    Posts
    971
    My guess would be that sda is the disk you want, but it seems likely that you've had it formated/partitioned before.

    sda is simply the first SATA drive to be detected on your system. sda1 is the first partition on that first drive. sdb2 would be the second partition on the second SATA drive, etc.

    sg0 is a scsi generic, which you don't need to concern yourself with here.

    if you want to investigate what's on it before formatting, simply mount it e.g. "mount /dev/sda1 /mnt" and then cd to /mnt and have a look around.

  6. #6
    Join Date
    Jul 2008
    Location
    Ottawa, Canada
    Posts
    175
    Great! Thanks.

    One more question. I tried to attach this drive to another server after making two account backups on it.
    every time that I detach and attach the device, I have to mount it?

  7. #7
    Join Date
    Mar 2009
    Location
    /usr/bin/perl
    Posts
    971
    That's correct so long as you're not rebooting your machine each time you reconnect the drive. Adding the line I mentioned in my first post to /etc/fstab will mount it on boot, though.

    By the way, you should unmount it using "umount" rather than just unplugging it

Similar Threads

  1. Step-by-Step Guide to Changing Web Hosting Providers
    By thehostinglist in forum Web Hosting Tutorials
    Replies: 64
    Last Post: 06-29-2012, 12:29 PM
  2. Replies: 8
    Last Post: 01-30-2007, 03:48 PM
  3. Step-by-Step guide to choose the perfect host!
    By Northtrex in forum Web Hosting
    Replies: 18
    Last Post: 01-10-2005, 10:40 AM
  4. Counter Hack: a step by step guide to computer attacks and effective defences
    By perpetual in forum Hosting Security and Technology
    Replies: 1
    Last Post: 01-24-2002, 09:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •