Schedule Backup my server

Discussion in 'Suggest HOWTO' started by dipeshmehta, Mar 29, 2009.

  1. dipeshmehta

    dipeshmehta Member

    Hello all,

    I am running Ubuntu 8.04LTS Server, mainly as mailserver (postfix/courier), jabber (openfire), and OpenVPN server.

    I want to backup all config files + postfix/courier/openfire data, to Lacie Ethernet Disk, connected to same network.

    Suggestions for further reading about howto and other stuff are welcome.

    Dipesh
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. barney.parker

    barney.parker New Member

    sorry, answer found
     
  4. dipeshmehta

    dipeshmehta Member

    Hello all,

    I need your suggestions, regarding backingup my server.

    If I mount external drive's share using CIFS into my linux server, and schedule to copy all data on my harddisk /dev/sda using dd, how it would be?

    I want something like..
    Code:
    dd if=/dev/sda of=/mnt
    however, dd do not work like this, it would give error something like /mnt is directory.
     
    Last edited: Jun 14, 2009
  5. falko

    falko Super Moderator Howtoforge Staff

    You must specify another device (or image file) as the output file.
     
  6. dipeshmehta

    dipeshmehta Member

    Dear Falko,

    At great help, can you please give me exact command to run? Will dd if=/dev/sda of=/mnt/sdaimage will work?

    Moreover, in case I lose my server, how shall I be able to restore it from the image file?

    Dipesh
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Let's say you have a second hard drive, /dev/sdb. Then you'd use this command:

    Code:
    dd if=/dev/sda of=/dev/sdb
    Boot into a rescue system (e.g. Knoppix) and then dd from /dev/sdb to /dev/sda.
     
  8. dipeshmehta

    dipeshmehta Member

    Putting second harddrive is a nice option, but I wish my backup should not reside at the server itself, because if there is any physical damage to the server, I will lose both. I need similar solution for external storage like ethernet harddisk or NAS.

    Thanks anyway.

    Dipesh
     
  9. falko

    falko Super Moderator Howtoforge Staff

    Try iSCSI or GlusterFS. netcat might also be an option.
     

Share This Page