LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 07-28-2006, 01:04 AM   #1
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Rep: Reputation: 31
Howto Backup 3.4 To Install 6.0?


can anyone help here by pointing out a tutorial link or posting quick cookbook instructions?

tia...
 
Old 07-28-2006, 04:31 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
What information do you need to backup? Your home directory, presumably, but something else? The apps you don't have to backup since you can get them from the net, and I'd think most of your configurations and stuff reside under /home/$USER

If you mean by what means you do the backup, the simplest way is just to create a file archive and possibly compress it a bit. For archiving I'd use tar (if you only have normal files) or cpio (that's an easy one). After archiving, use some other program to compress the file so it becomes smaller and so easier to move around; I'd use either bzip2 or gzip (bzip2 is a bit slower, but produces smaller package).

Since your personal configurations mostly reside under your home directory, you could create a backup using cpio and bzip2 (provided you have those installed) by

Code:
find /home/$USER -print -depth | cpio -oc > /tmp/backup.cpio
bzip2 /tmp/backup.cpio
After this you'd have your home directory compressed into a /tmp/backup.cpio.bz2 file, which you'd then move to another place or perhaps burn on a DVD or some other media. After the installation of the new system, you'd copy the file to your home dir and use

Code:
bunzip2 backup.cpio.bz2
cat backup.cpio | cpio -iv
to extract the contents. If you extract the contents using absolute path names (like above), you better have the same username on the new system (or at least the same name homedirectory). If you use relative pathnames instead (--no-absolute-pathnames), you get a directory under your homedir which you can then use to copy the data off.

That's only one rude example. You've got multiple ways of doing that.

EDIT: and that, of course, is because in Unix and alike systems nearly everything, if not everything, is understood as files (files, directories, devices...) so all the configs usually reside in some sort of file too, and user data is almost always under the user's home dir. Unlike in Windows.

Last edited by b0uncer; 07-28-2006 at 04:34 AM.
 
Old 07-28-2006, 02:11 PM   #3
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by b0uncer
What information do you need to backup? Your home directory, presumably, but something else? The apps you don't have to backup since you can get them from the net, and I'd think most of your configurations and stuff reside under /home/$USER

If you mean by what means you do the backup, the simplest way is just to create a file archive and possibly compress it a bit. For archiving I'd use tar (if you only have normal files) or cpio (that's an easy one). After archiving, use some other program to compress the file so it becomes smaller and so easier to move around; I'd use either bzip2 or gzip (bzip2 is a bit slower, but produces smaller package).

Since your personal configurations mostly reside under your home directory, you could create a backup using cpio and bzip2 (provided you have those installed) by

Code:
find /home/$USER -print -depth | cpio -oc > /tmp/backup.cpio
bzip2 /tmp/backup.cpio
After this you'd have your home directory compressed into a /tmp/backup.cpio.bz2 file, which you'd then move to another place or perhaps burn on a DVD or some other media. After the installation of the new system, you'd copy the file to your home dir and use

Code:
bunzip2 backup.cpio.bz2
cat backup.cpio | cpio -iv
to extract the contents. If you extract the contents using absolute path names (like above), you better have the same username on the new system (or at least the same name homedirectory). If you use relative pathnames instead (--no-absolute-pathnames), you get a directory under your homedir which you can then use to copy the data off.

That's only one rude example. You've got multiple ways of doing that.

EDIT: and that, of course, is because in Unix and alike systems nearly everything, if not everything, is understood as files (files, directories, devices...) so all the configs usually reside in some sort of file too, and user data is almost always under the user's home dir. Unlike in Windows.
thank you! i'd call that a nice example, not a rude one. i appreciate your time.

from what i understand, it isn't advised to keep the same home directory when moving from 3.4.3 to 6.0. apparently, that can botch things up.

i think i'm resigned to synapticing most of my programs again. however, i think i might be able to update my firefox and some programming files by having access to them after the reinstall to 6.0. also, i'd like the backup just in case i end up moving back to 3.4.3.

thanks again for the useful help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto backup & recover many pc's bucovaina78 Linux - General 6 01-22-2006 02:30 AM
cron & backup howto ? crispyleif Linux - Software 4 11-23-2005 01:26 PM
Howto disable backup file cration VertX Linux - Newbie 1 02-05-2005 06:56 AM
DVD backup: howto copy subtitle streams?? psychotron1 Linux - General 6 01-24-2005 01:34 PM
Howto use Mini-dv camrecorder (firewire) to backup my datas ? free_ouyo Linux - General 0 06-14-2004 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration