backup Xandros
#1
Posted 30 January 2008 - 03:41 PM
Tnx,
cele
#2
Posted 30 January 2008 - 04:04 PM
#3
Posted 30 January 2008 - 05:37 PM
#4
Posted 30 January 2008 - 05:56 PM
#5
Posted 31 January 2008 - 06:41 AM
thanx for the help
#6
Posted 01 February 2008 - 01:56 PM
Default Xandros (Easy Mode + icewm start menu) on 1st SSD/2nd 16GB SSD added/SD/USB/
http://eeepc.fire.prohosting.com/
http://eeepc-albkwan.blogspot.com/
#7
Posted 02 February 2008 - 07:04 AM
Did I get it right?
Thanx for your patience...
Edited by MrEase, 02 February 2008 - 07:05 AM.
#8
Posted 02 February 2008 - 07:31 AM
Objective:
=======
If my Eee crashed for one reason or another, I need to be able to recover up to the last working image without the need to re-install all the updates I did such as Skype and VLC for example. In addition, I want to keep the changes I made to files like startsimple.sh and my files in the home folder.
Under Windows, it seems it is a lot more easier. I can easily use the supplied Backup program, and request to backup the entire OS and I can save the result on a CD or External Hard-Disk, and that is all what I need to do.
My Requirements:
============
1. Backup the Entire OS and Data of my Eee PC,
2. Backup the changed files since the last backup,
3. Be able to recover the entire OS and Data,
4. Recover selected files.
Notes:
=====
I was reading other posts, and based on my understanding, I will mention what I plan to do.
I have purchased a 2 GB USB Flash to install on it a mini Linux OS like Puppy Linux or something like that. I also purchased 120GB External UDB Hard Disk for the Backup, and for my huge files (videos and photos). I was told that this is a must, because:
1. In order to backup the entire OS, I must boot from a different drive like USB or SD.
2. If the Eee cannot boot from the default Disk, then I can boot from the USB.
3. Once I boot from the USB, I can perform full Backup/Restore for the OS and Data.
4. In this case, there is no need to purchase USB DVD Reader/Write in this case to use the supplied DVD with the Eee. And, it is easier to move around with the USB.
5. I need the External Hard Disk because the USB 2GB Flash is not enough for the backup.
My Plan:
======
1. Create the Bootable Image of the mini OS on the USB.
2. Boot the Eee form USB and perform Full Backup on the External Hard Disk (must use DD ?).
3. Perform backup of changed filed sine last time on the External Hard Disk,
4. Every time there is a major change on the Eee, do the complete backup again using DD.
Help:
====
I have not made anything yet.
Please tell me if this is the correct and practical approach for backup on the Eee.
If you could give me details, I appreciate it.
Tarek.
#9
Posted 02 February 2008 - 11:22 AM
tarekahf: I wanted something similar, and I currently use a 2GB USB stick with my own backup program on it. It's a bootable stick with options to backup and restore full disk images or individual partition images, along with a few rescue utilities in case the backup program itself doesn't work. (A full disk image of the SSD takes up nearly 2GB, compressed, and takes about 20 minutes to make.)
You can get my backup program here: http://www.glost.ecl.../eee/eeebackup/
Edited by gfoot, 07 February 2008 - 12:52 AM.
#10
Posted 02 February 2008 - 12:57 PM
Quote
Furthermore, you can further reduce the size of the image by writing zero to empty space in your hard disk before you compress it. Do something like this:
sudo bash mkdir /mnt/sda2 mount -t ext3 /dev/sda2 /mnt/sda2 dd if=/dev/zero of=/mnt/sda2/bigfile # this will take a while sync rm /mnt/sda2/bigfile sync umount /mnt/sda2 dd if=/dev/sda2 | gzip -c9 > /PATH/TO/BACKUP.gz
Default Xandros (Easy Mode + icewm start menu) on 1st SSD/2nd 16GB SSD added/SD/USB/
http://eeepc.fire.prohosting.com/
http://eeepc-albkwan.blogspot.com/
#11
Posted 03 February 2008 - 12:46 AM
Quote
tarekahf: I wanted something similar, and I currently use a 2GB USB stick with my own backup program on it. It's a bootable stick with options to backup and restore full disk images or individual partition images, along with a few rescue utilities in case the backup program itself doesn't work. (A full disk image of the SSD takes up nearly 2GB, compressed, and takes about 20 minutes to make.)
You can get my backup program here: http://www.glost.ecl...ckup-0.3.tar.gz
It seems after all that I am not the only person on this earth who have this kind of thinking !!!
I downloaded the ZIP file and now reading the instructions. I have the following comments,
I hope you understand my worries, since you mentioned there that this program is not yet fully tested and some bugs or errors may prevent correct/full backup. Actually, I am from IT background (Windows !) and completely new to Linux, and you know what I mean. I need a spare Eee PC to test it before I go live on my Eee, as I really cannot afford messing up my Eee at this point in time. I have made a lot of updates and configuration changes, and it will be very bad to start from zero, if something goes wrong.
I truly appreciate you help in the following;
I am looking for a simple manual procedure to create a bootable image on my 2GB USB Stick, and perform full backup on my 120GB External Hard Disk.
In the mean time, is it possible to do full system backup on the 120FB HD without booting from USB or SD ? This step will give me some relief !! What is the minimum step I can do now so that at least I can be on the safe side ?
To create the bootable image on USB, I was following the WiKi :
http://wiki.eeeuser....stallpuppylinux
..to install Puppy Linux on USB Flash, but the link to the download page does not work, I am getting URL Not found error !! Any idea if this link requires update ?
Also, I checked this WiKi here:
http://wiki.eeeuser....drosbootfromusb
But I realized that the 2GB USB Stick I have is not enough (need at least 4GB). So, I decided to go for Puppy Linux. But, the download link does not work !!
So, I found there another link to install Breeezy for the Eee:
http://minipc.org/sa...20the%20eee.htm
Do you think that going with Breeezy will do for my requirements ?
The method you follow to create a bootable image, what does it do exactly ? It is not clear to me Which Linux it uses: Eee or Puppy or Breeezy or ..... ?
Thank you again for your help.
Tarek.
#12
Posted 03 February 2008 - 01:49 AM
Quote
DM
Edited by danMdan, 03 February 2008 - 01:58 AM.
And a Mac Mini using OS X 10.5.6 plus an HP 2133 using Vista Business.
#13
Posted 03 February 2008 - 05:17 AM
Quote
Furthermore, you can further reduce the size of the image by writing zero to empty space in your hard disk before you compress it. Do something like this:
sudo bash mkdir /mnt/sda2 mount -t ext3 /dev/sda2 /mnt/sda2 dd if=/dev/zero of=/mnt/sda2/bigfile # this will take a while sync rm /mnt/sda2/bigfile sync umount /mnt/sda2 dd if=/dev/sda2 | gzip -c9 > /PATH/TO/BACKUP.gz
Questions:
- I understand that /dev/sda is the internal Eee Hard Disk. So what is /dev/sda1, .dev/sda2, ...etc ? I mean, why you did not use /dev/sda3 ?
- You created a mount point at /mnt/sda2, correct ?
- ...mounted /dev/sda2 onto /mnt/sda2 .... fine ...
- Used "dd" to copy Zeros to a new file named "bigfile" .. not clear to me why ?
- Then did a "sync", so what does this do ?
- deleted "bigfile" and sync ... why ?
- unmounted /dev/sda2 and created a compressed file of it to a backup file, where "/PATH/TO" is the absolute location of the backup file "BACKUP.gz" which could be the External USB Hard Disk, correct ?
- Do these steps give you a complete backup of the entire OS, or only part of the system ?
Thank you for clarifying the above points ...
Tarek.
Edited by tarekahf, 03 February 2008 - 05:25 AM.
#14
Posted 03 February 2008 - 05:47 AM
Quote
Quote
Quote
- ...mounted /dev/sda2 onto /mnt/sda2 .... fine ...
- Used "dd" to copy Zeros to a new file named "bigfile" .. not clear to me why ?
- Then did a "sync", so what does this do ?
- deleted "bigfile" and sync ... why ?
sudo bash # change user to root mkdir /mnt/sda2 #create a mounting point for to mount sda2 mount -t ext3 /dev/sda2 /mnt/sda2 dd if=/dev/zero of=/mnt/sda2/bigfile #write zero to all empty space sync #sync as Linux somethings keep things in buffer rm /mnt/sda2/bigfile #remove "bigfile" created out of the zeroed empty space sync umount /mnt/sda2 #good practice to umount drive before you dd dd if=/dev/sda2 | gzip -c9 > /PATH/TO/BACKUP.gz
Quote
Quote
dd if=/dev/sda | gzip -c9 > /PATH/TO/BACKUP.gzIf you replace sda with sda2 in the above command, you only backup sda2, the USER partition. This is what I do because sda1 is always mounted read only, all your custom changes go to sda2. And after all, the DVD restore image is just sda1 + MBR, so there is really no need to backup sda1.
Default Xandros (Easy Mode + icewm start menu) on 1st SSD/2nd 16GB SSD added/SD/USB/
http://eeepc.fire.prohosting.com/
http://eeepc-albkwan.blogspot.com/
#15
Posted 03 February 2008 - 06:14 AM
Thanks a lot ! This has clarified many concepts for me.
You said I can use this command to backup the entire OS and User Data:
dd if=/dev/sda | gzip -c9 > /PATH/TO/BACKUP.gz
In order to execute this command, do I have first to boot from USB using say Puppy Linux ?
Do I have to unmount /dev/sda first ?
Will this backup cover the Updates I made to Skype and the new VLC I installed and all other config files I changed ?
To do full restore, I think I have to boot from a USB Stick, and do the reverse dd, meaning:
gzip -c9 < /PATH/TO/BACKUP.gz | dd of=/dev/sda
Is the above command correct, or it is @@##$$ total mess ?
I really appreciate your patience ...
Tarek.
#16
Posted 03 February 2008 - 09:54 AM
Now above is why it seems to me to be possibly dangerous to fill the Eee SSD with zeros, because if wiping out the zeros file goes wrong, then you end up with a totally full SSD, making the system unbootable next time you turn the Eee on - don't you ?
So, assuming that you should do the back-up (as the wiki says) when running from a live-CD or bootable USB drive, how, when that is running, do you use it to connect with the Eee content and output the backup to a big SD card in either the card reader or another USB slot ?
DM
Edited by danMdan, 03 February 2008 - 10:40 AM.
And a Mac Mini using OS X 10.5.6 plus an HP 2133 using Vista Business.
#17
Posted 03 February 2008 - 11:21 AM
#18
Posted 03 February 2008 - 11:21 AM
Quote
Now above is why it seems to me to be possibly dangerous to fill the Eee SSD with zeros, because if wiping out the zeros file goes wrong, then you end up with a totally full SSD, making the system unbootable next time you turn the Eee on - don't you ?
Quote
DM
The thing that really puzzels me is that whether I should (or must) boot from USB or SD in order to make full backup, and if YES, why ?
It appears to me that when you boot from USB, then the internal /dev/sda partitions are not yet mounted, and hence they are free and you can safely do the backup using "dd", as nothing will be locked by any app or OS process.
I hope that some one could do me a favour and clarify this part to me.
#19
Posted 03 February 2008 - 11:34 AM
Quote
Ok, I did follow that part and it is working fine with me. I can do a rescue boot using F9 and I managed to mount/unmount devices while in that mode.
So, you are saying that I cannot do a full backup using "dd" unless I am in XANDROSBOOTDEBUG mode or I boot from USB for example?
I am just trying to make sure I understand what I am doing.
So, I need the USB Bootable Disk only for the in case the Eee is crashed and cannot boot normally.
Also, keep in mind that if I could do a full backup (using "dd" or any other tool) without the need to boot into XANDROSBOOTDEBUG or from a USB, then it will be much more easier and practical to take full backups when needed.
Also, some one could write a simple script that will manage to take different backup cycles (with date/time stamp for example) to a Network Share (or USB Hard Disk) at certain times or events. If you always have to boot using a different method in order to make backup, then there is no chance you could automate this process.
I am really surprised that I am nearly the only user on this forum who is concerned about this limitation of Linux which is "You must boot from a different partition in order to take a backup of another partition" for the purpose of disaster recovery.
Tarek.
#20
Posted 03 February 2008 - 12:27 PM
Quote
So as I understand it we should boot from a USB stick or external "live" CD in a USB drive. My question was - once the USB stick or live CD has started some version of Linux, (any version ?), how then do you use *its* console to get into the Eee system and make it produce a backup out to a second USB stick or to an SD card in the Eee's card reader ?
(On my Mac system I use cloning software to clone the entire internal HDD content to an external HDD, which I then keep outside my house in a secure location. Surely doing the same thing in Linux is possible ?)
Dan
Edited by danMdan, 03 February 2008 - 12:29 PM.
And a Mac Mini using OS X 10.5.6 plus an HP 2133 using Vista Business.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


This topic is locked









