Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 596  / 2 Years ago, mon, october 31, 2022, 12:36:28

I found this on an old posting from 2006 about how to back up and restore your Ubuntu machine.
http://www.arsgeek.com/2006/10/18/how-to-back-up-and-restore-your-ubuntu-machine/



First they suggest changing to your external hard drive with:



cd/media/Free* (Freeagent is my external hard drive.)



Then mkdir ubuntu_backup or some such name.



Change to that directory and then:
sudo tar cvpzf ubuntusettings.backup.tgz2 --exclude="/tmp/" / (The ubuntusettings is my backup's name.)



The switches are:




  • c = create

  • v = verbose

  • p = preserve permission

  • z = bzip2

  • f = file

  • --exclude is just the folders you want to exclude.



I tried it out, and it does begin to back-up; but what I noticed is that it was backing up my entire laptop...that includes Windows. I did not want that but rather I am wondering if anyone knows how to modify this so that it only backs up the Ubuntu section of my laptop? I have Ubuntu for Windows installed on a Vista machine.


More From » backup

 Answers
0

To preform a complete wubi system backup copy your root.disk file from your ubuntu folder within windows to another location, if something bad happens you just need to replace the current file with the one you backed up and your system will be back to what it was at the time of the backup.



You can even mount the root.disk file within Ubuntu if you want to partially restore some files only:



sudo mkdir /mnt/rootdisk
sudo mount -o loop <path to share in windows>/root.disk /mnt/rootdisk


Will mount your root.disk to a the path /mnt/rootdisk.


[#42178] Monday, October 31, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rillrage

Total Points: 122
Total Questions: 120
Total Answers: 103

Location: Tokelau
Member since Thu, Aug 26, 2021
3 Years ago
;