« Oh-point-forever releasesMore about the choice of blog software »

rsync backup to a hotsite

02/02/05

Permalink 11:06:32 pm, by fumanchu Email , 461 words   English (US)
Categories: IT

rsync backup to a hotsite

In an attempt to automate our backups (my PFY was doing manual DVD burning every day), we bought a Dell Poweredge SC420 with a pair of 250G SATA drives and no OS. It'll go either to our disaster hotsite, or a colo. The only thing the box will be doing is rsync over ssh. Our various nix and Windows servers (via cwrsync) will connect on a schedule and back up various top-level directories. Testing on a different server over the 'Net showed typical backup times of 5 to 10 minutes for one such directory, depending on how much had changed overnight. We expect to have backup traffic for about 1 hour each night, up to a max of 4 hours (rarely). Email will, of course, be the killer. We may go back to CD's/DVD's for that.

At any rate, here are the steps I went through to set up the Dell server:

  • Setup (F2): make box power on when power lost and restored.
  • Configure SATA by hitting Ctrl-A at boot, no RAID.
  • Insert sarge debian-installer CD and boot from it. I can't praise the Debian team enough--the debian-installer is fantastic! Thanks to Greg Folkert for recommending it!
  • At FIRST prompt (F1 for help or enter to boot), type "linux26", hit Enter (this selects the 2.6 kernel).
  • SATA drives should be auto-recognized. Partition them ext3 and mount to /data1, /data2.
  • Finish install normally.
  • CD ejects and box reboots. When Real Time Clock freezes (twice) during boot, hit Ctrl-C to kill the hung process and continue boot. This is an ACPI problem, which we'll fix in a minute.
  • Continue setting up Debian as prompted. linux.csua.berkeley.edu is a nice http mirror for me. Oh, and run the ssh server in protocol 2 only.
  • apt-get remove exim4, which won't work. But it's fun to try. Anyone know why it isn't removed (still shows up in ps after removal/reboot)?
  • Turn ACPI off, or the Real Time Clock will freeze on every boot:
    vi /etc/grub/menu.lst
    Change the lines starting with "kernel": append the text " acpi=off".
  • Mount the SATA drives:
    cd /
    mkdir /data1
    mkdir /data2
    vi /etc/fstab

    add the lines:
       /dev/sda1 /data1 ext3 defaults,errors=remount-ro 0 2
       /dev/sdb1 /data2 ext3 defaults,errors=remount-ro 0 2
  • Change the order in which discover and checkfs are called:
    cd /etc/rcS.d
    mv S36discover S29discover
  • Setup rsync
    apt-get install rsync
    vi /etc/default/rsync (set RSYNC_ENABLE=true)
    vi /etc/rsyncd.conf (see online docs)
    /etc/init.d/rsync start
  • Setup ssh
    vi /etc/ssh/sshd_config
     PermitRootLogin no
     RSAAuthentication no
  • make an rsync user

2 comments

Comment from: JP [Visitor]

I had the same freeze after the Real Time Clock text in boot up on an Optiplex GX280 and a PowerEdge 1425SC. Cntrl-C did not seem to work for me. However, all is not lost. After you reboot during the install, at the GRUB menu, Type 'e'. This lets you edit the boot up parameters. Append the "acpi=off" to the kernel line there, and you will start up fine.

04/08/05 @ 15:05
Comment from: GSCopy Pro v6.0 (RoboCopy Alternative) with Open File Agent [Visitor] Email · http://www.gurusquad.com/GOPYPRO

GSCopy Pro v6.0 (RoboCopy Alternative) with Open File Agent
GSCopyPro is a single command-line tool (CLI) that can copy, replicate and move files from one folder to another. This folder can be on the same machine/ server or another server elsewhere. What makes GSCopyPro stand out from other competitors is the fact it works on 32-bit as well as 64-bit systems and has no restrictions. It can easily be scheduled to run as a scheduled task and fully automated. GSCopyPro also comes with an open file agent which can copy files that are locked/ opened by other processes. This feature is supported in all windows vSCersions from widows XP/ 2003 and later.
Go To:>> http://www.gurusquad.com/GOPYPRO

11/10/13 @ 15:53

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.

Please enter the phrase "I am a real human." in the textbox above.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
September 2017
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Search

The requested Blog doesn't exist any more!

XML Feeds

powered by b2evolution