LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Thread Tools
Old 03-31-2004, 05:10 PM   #1
mikeybsae
LQ Newbie
 
Registered: Jun 2003
Location: albany, ny
Distribution: debian
Posts: 18
Thanked: 0
tar system backup...best pack/unpack order?


[Log in to get rid of this advertisement]
I am writing a script to backup my entire filesystem with tar. My entire system is on one / partition. What I would like to do is create a tar file of the entire system and then write unpack it to a different partition to create a copy of my system. I did this and changed fstab and lilo.conf, rewrote the boot record of the partition with lilo, and it booted and ran fine, but it was slow. I am thinking that it might be slow due to the order in which I packed and unpacked the old system. I had some problems figuring out what parts of the filesystem could(should) be moved, so ended up making individual tar files of all the directories below /. Then unpacked these individually onto a newly formatted and mounted ext3 partition.

I am running Archlinux with kernel 2.6.4 and the ext3 filesystem. I didn't move /dev, /sys, /proc, /mnt, /lost+found, /tmp, /var/cache, and /usr/src. But created new empty directories for all of them with the proper permissions on the new partition. I can't recall the order in which I unpacked everything, it was very haphazard.

So my question is what would be the best order to tar up my system? or is this even an issue? I know that tar can preferentially pack certain folders/files first in the file it creates, and I am thinking this is the way to go. So if someone can tell me what sections of the filesystem benefit the most by being near the front of the partition that would be great.

I would think that I should get around the same or better performance with the new partition I am using since it is the same size as the old and closer to the front of the disc.

mikeyb
mikeybsae is offline     Reply With Quote
Old 03-31-2004, 09:22 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: atop the Blue Ridge
Distribution: Debian Lenny, CentOS 5.2
Posts: 7,250
Thanked: 31
"So my question is what would be the best order to tar up my system? or is this even an issue?"

I use tar to back up my entire system to CD-ROM once a week. The process of packing large tar files is slow and has always been slow. I doubt that the file order has anything to do with it.

"I would think that I should get around the same or better performance with the new partition I am using since it is the same size as the old and closer to the front of the disc."

Actually, the fastest partition is the one nearest the center of the disc. It is a question of minimizing disc arm movement.

"So if someone can tell me what sections of the filesystem benefit the most by being near the front of the partition that would be great."

The files are not necessarily in the same physical order as creation order. Nor are files necessarily loaded into a partition contiguously. In fact you have absolutely no way to control where a file resides physically within a partition.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
jailbait is offline     Reply With Quote
Old 08-19-2004, 07:27 PM   #3
mikeybsae
LQ Newbie
 
Registered: Jun 2003
Location: albany, ny
Distribution: debian
Posts: 18
Thanked: 0

Original Poster
what bothers me about your explanation

so is the stuff mentioned in this article, about optimizing/increasing performance not true?

http://www.user.dccnet.com/jonleblan...dual_boot.html

this web page went away for a while, which is why it has taken me so long to get back to this post. I wanted to include it because it was what prompted my questions to begin with. I hope someone will be interested in clearing this up for me.
mikeybsae is offline     Reply With Quote
Old 08-20-2004, 11:12 AM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: atop the Blue Ridge
Distribution: Debian Lenny, CentOS 5.2
Posts: 7,250
Thanked: 31
"so is the stuff mentioned in this article, about optimizing/increasing performance not true?"

The article is true for Windows. It is irrelevent for Linux.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
jailbait is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
how to unpack .tar? g-string 3 Debian 8 11-29-2004 09:01 AM
Tar syntax to backup system... robbow52 Debian 5 08-05-2004 12:35 PM
system backup with tar tjay Linux - General 3 06-09-2004 12:32 PM
Backup entire system with tar sln Linux - General 2 04-30-2004 04:32 AM
what do i do after i unpack the tar.gz sanjaya Linux - Software 1 02-11-2004 08:58 PM


All times are GMT -5. The time now is 02:40 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration