Scheduled backups to other harddisk

cwfie

Verified User
Joined
Aug 3, 2005
Messages
91
Dear Forum Members,

I have a question about making scheduled backups every night to my other harddisk.

At the moment I have got a server with two harddisk [2 x 80GB]. I want to backup all my user accounts and automatically move them to the other harddisk. At first I need to mounth the second harddisk. What are the steps I need to make to get this all done? I think DirectAdmin does not support this, but is there some kind of other tool who can make this work?

If you know what I need to do. Please explain it simple as I am not very technical.

Thank you in advance.

Kind regards,

Steven
 
maybe in backup_crons.list?

now&where=local

should be something like
now&where=/harddisk2/usr...

Please help me out :)
 
Have you installed the second drive? Have you partitioned and formatted it?

These steps are really beyond the scope of the DA forums, and they are hardware specific.

Once you've done that you can either backup directly to the new drive, or use a cronjob to move files to the new drive, or even ftp to an ftp account on your server with its userspace on the new drive.

Jeff
 
Here is a little script similar to what I use to do backups like that, this one also does a remote backup to a backup server. That way I need 3 drives to die at once in order to lose all the info. Of course, you might want to tweak the rsync parameters to suite your needs.

Code:
#!/bin/sh

export PATH=/usr/local/bin:/usr/bin:/bin
#This is the rsync password used for remote rsync
export RSYNC_PASSWORD=remote_password
export RSYNC_PARMS="-axz --delete"

# This does an fsck on the drive on the 1st of every month
# Mine is /dev/sdb4 change it to suite your server
dateofmo=`date +%d`
if [ $dateofmo -eq 1 ]
then
   /sbin/fsck -y /dev/sdb4
fi
mount /dev/sdb4 /backup
if [ $? -eq 0 ]
then 
   sleep 5
   # mirror whole drive to backup drive
   rsync $RSYNC_PARMS / /backup
fi
# unmount the drive
umount /backup

# remote server only mirrors up config and user data
/usr/bin/rsync $RSYNC_PARMS /home [email][email protected][/email]::remotedir/
/usr/bin/rsync $RSYNC_PARMS /etc [email][email protected][/email]::remotedir/
/usr/bin/rsync $RSYNC_PARMS /var [email][email protected][/email]::remotedir/
/usr/bin/rsync $RSYNC_PARMS /usr/local [email][email protected][/email]::remotedir/
/usr/bin/rsync $RSYNC_PARMS /usr/lib/apache [email][email protected][/email]::remotedir/
/usr/bin/rsync $RSYNC_PARMS /usr/share/ssl [email][email protected][/email]::remotedir/
/usr/bin/rsync $RSYNC_PARMS /root [email][email protected][/email]::remotedir/
 
the most simple way you can do is...

mount the harddisk onto /home/admin/user_backups

:D
 
rsync.net

I have been thinking of using Rsync.net's service to do something like this.

Does anybody have any experience using their service?

It is 1.80 per Gigabyte, and let's you mount on your filesystem.

They also offer a more expensive Geo-redundant system at $3.15 per gig.

From their site:

Our network is quintuple homed, gigabit speed, connected with IPV4 and IPV6.

All accounts have unlimited bandwidth, no setup fees, and no lock-in contracts.

Discounts exist for open source developers, educators, and quantity. Contact us for details.

Standard Offsite Filesystem
Full featured account, data stored in one backup location. $1.80
GB/mo
Geo-Redundant Filesystem
Data is automatically replicated to a second, redundant location. $3.15
GB/mo

Then, I would sign up for, say 10 gigs or so and mount to /home/admin/user_backups and use a cron job for the automated backups to that partition.

Does this sound workable?

I was also looking at S3 from Amazon (List of Amazon S3 Backup Tools) which is cheaper, but the solutions that have come out do not "seem" to be that well developed yet. Having barely-lived through a hard drive meltdown on one of my servers, I need something rock-solid. It gets old downloading stuff to my home on my very slow connection, plus god forbid I had to upload them all on one night.
 
Back
Top