Find the answer to your Linux question:
Results 1 to 7 of 7
I have two servers going one is a linux box and the other a vista 64 box. I am wondering if there is anyway I can back my linux box ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    4

    Is it possible to back up my linux server onto my vista server?

    I have two servers going one is a linux box and the other a vista 64 box. I am wondering if there is anyway I can back my linux box up onto my vista box? My vista box sees and access the linux box just fine, I'm not familiar enough yet with linux to set up so my linux box sees and accesses the vista box.

    At this point I'm making backups excluding the media folder where I create the backup file and then copying them to my vista server. But I'd like to have the whole linux drive saved in one file that I could use to restore the system if it crashed for some reason.

    Right now I use this command:

    tar zcvpf /media/disk/Bak_latest.tar --directory=/ --exclude=media .
    this is saved to a thumbdrive.

    But I'm not sure if the system crashed I could restore from this copy on a thumb drive?

    If I had to do a reinstall from this copy I'm worried it would fail?

    maybe someone can explain better what I need to do or point me to a place that has the info I need?

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    dd command will do this job for you, here is a link with examples, scroll down and look at copying a partition, it shows you how to create an exact copy of a partition and compress it, and also take that copy of the partition and restore it!

    Learn the DD command - LinuxQuestions.org

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    4
    Quote Originally Posted by coopstah13 View Post
    dd command will do this job for you, here is a link with examples, scroll down and look at copying a partition, it shows you how to create an exact copy of a partition and compress it, and also take that copy of the partition and restore it!

    Learn the DD command - LinuxQuestions.org
    Thank you coopstah for your response and the link. Though I am having troubles understanding the information at that link. I have never used the dd command and did not quite figure out it's usage from the posts at that link. I am researching further. Thank you again for you assist.

  4. #4
    anj
    anj is offline
    Just Joined! anj's Avatar
    Join Date
    Feb 2009
    Location
    china,zhengzhou
    Posts
    9
    Learn the !

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    make sure you execute this from another partition, replace /dev/sdb2 with whatever partition you want to make a copy of
    Code:
    dd if=/dev/sdb2 ibs=4096 | gzip > partition.image.gz conv=noerror
    Makes a gzipped archive of the entire partition. To restore use:
    Code:
    dd if=partition.image.gz | gunzip | dd of=/dev/sdb2

  6. #6
    Just Joined!
    Join Date
    Feb 2009
    Posts
    54
    If you are just trying to backup data, tar is a better option. You can put in excludes as you have in your tar command. But if you want to create a replica of your linux partition, dd is a better idea.

    You have to decide whether you want "backups" or "disaster recovery" - they are not quite the same thing! Perhaps you could combine the two - take a dd of your disk such that you can simply rebuild the server, and create periodical backups such that you always have "backups".

  7. #7
    Just Joined!
    Join Date
    Feb 2009
    Posts
    4

    Thank you again!

    Quote Originally Posted by coopstah13 View Post
    make sure you execute this from another partition, replace /dev/sdb2 with whatever partition you want to make a copy of
    Code:
    dd if=/dev/sdb2 ibs=4096 | gzip > partition.image.gz conv=noerror
    Makes a gzipped archive of the entire partition. To restore use:
    Code:
    dd if=partition.image.gz | gunzip | dd of=/dev/sdb2
    I appreciate the code bits. I have been actually pondering the question druidmatrix posed. Deciding whether I need to back up the partition or just certain folders. I don't know that there is an easy way to restore the complete system without doing a complete partition backup.

    During this discussion I have found myself with another dilema, what filesystem to use for backups from one linux box and one vista 64 box?

    As to that last question, I'm thinking if I do the backup through networking It'll be a moot question.

    AAaaaaaaaaaaah!

    Thanks for all the input everyone!

Posting Permissions

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