Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Menu
9 Votes
If you dont keep your data separate from your operating system, i.e. on another
volume, then when you distro hop you need to be able to backup you Home folder
before you install your new OS. This is the problem Ive recently faced when moving
from XFCE based Xubuntu to CrunchBang.
If you have a second hard disk (internal or external) then this is relatively easy,
alternatively assuming you have space you cold use Gparted to create an additional
partition on your hard drive and use this, although as it is all on the same physical
disk it is more risky and therefore not my preference.
Whilst you can use rsync, TAR is the traditional way of backing up in Linux / Unix /
MAC OSX and ships as standard with all Linux distros.
For my purposes I have used the rather helpful instructions on Ubuntu forums
http://ubuntuforums.org/archive/index.php/t-93193.html provided by James
Fryman. Although dated, they still work. Ive distilled the forum post below
To Backup
In terminal type:
In addition, when doing a tar backup, its also good to add the following flags : p &
(z/j)
-z will compress using gzip (medium cpu usage, but less space)
In place of the .gz file name extension you could also use bz2.
For more info on tar command parameters, from Terminal enterman tar.
In terminal type:
tar x(z/j)vf <name of archive>.tar.gz
In place of the .gz file name extension you could also use bz2.
A Real Example
To backup my home directory to a tar file located in the root of a second hard disk I
did the following:
sudo fdisk -l
cd /media
cd disk1
To restore, all I did under Crunchbang was to mount the second disk (as above) and
from my Home directory enter:
This restores the contents of the tar file into the root of my home directory. It
includes the folder structure from root, but that is fine as it then allows me to copy
over what I need for my new distro. I can then delete what is not needed.
Furthermore, file permissions are maintained.
=-=-=-=-=
Powered by Bilbo Blogger
Share this:
Loading...
Related
Reply
Carl
March 3, 2015 at 12:42
Very good description. I too moved to #! and just run it on an external USB chip. Its
perfect.
Its so easy to use and avoids the dread and complexities of using Clonezilla.
Reply
Just me
November 18, 2017 at 13:36
Hey dude, thanks for this, you literally saved my home folder from my mistakes
Reply
Leave a Reply
Enter your comment here...
Blog Stats
558,161 hits
Follow
Recent Posts
Mini How To. Installing MINIDLNA in Ubuntu
Dual Booting the HP Pavilion Sleekbook 15 with Windows 8.1 and Ubuntu 13.10
RSS
RSS - Posts
RSS - Comments
Most Popular
Posts | Pages | Comments
Mini How to Manipulate Images from within Dolphin in KDE4 without using an
external program!
5/5 (4 votes)
Archives
Select Month
Recent Comments
Just me on How to
John Fitzpatrick on
Mythbuntu 10.10
PART 3
VirtualBox | reboot
on Creating a MS-DOS
Virtual PC u
Sys
Clavius Walker on
Mini How To.
Installin
Utilities
Register
Log in
Entries RSS
Comments RSS
WordPress.com
Create a free website or blog at WordPress.com.