Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have a linux server running lasest Ubuntu as our web server containg a database. I wanted to know what is the best way to have all the data ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    1

    Web Server


    Hi,

    I have a linux server running lasest Ubuntu as our web server containg a database. I wanted to know what is the best way to have all the data backed up in case of it crashes. I have a spare PC as well. Can I used that and somehow mirror the data once a day and i can switch the server over if it needed.

    Many thanks

  2. #2
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    The simplest solution would be to share some folder on the 2nd computer (preferably NFS, if not then Samba, if not that, then ftp or rsync can work)

    Write (or find) a simple script that does something like this

    tar cf backupweb.tar /path/to/webfiles
    gzip backupeweb.tar
    mv backupweb.tar.gz /path/to/NFS/mount

    run it nightly, weekly, monthly, however often you want, check this link
    http://www.linux-backup.net/App/

    for some good scripts and the like, theres alot of info out there on automating backups, and some nice GUI's should you want/need them.

    http://www.tldp.org/HOWTO/Linux-Comp...WTO/index.html

    a nice howto
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

Posting Permissions

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