var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Step by Step guide - externeal backup?
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:
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.
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
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!
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
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?
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.
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?
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
By thehostinglist in forum Web Hosting Tutorials
Last Post: 06-29-2012, 12:29 PM
By hellmet in forum Web Hosting
Last Post: 01-30-2007, 03:48 PM
By Northtrex in forum Web Hosting
Last Post: 01-10-2005, 10:40 AM
By perpetual in forum Hosting Security and Technology
Last Post: 01-24-2002, 09:57 AM