LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-29-2024, 01:30 AM   #16
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753

I can definitely believe that.

Just out of curiosity, what is FS on the USB ?
At home I always re-format to ext4 .
 
Old 05-29-2024, 08:56 AM   #17
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,612

Original Poster
Rep: Reputation: 180Reputation: 180
Quote:
Originally Posted by chrism01 View Post
I can definitely believe that.

Just out of curiosity, what is FS on the USB ?
At home I always re-format to ext4 .
Good question! It is NTFS.
 
Old 05-29-2024, 11:59 PM   #18
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
Can you get another (same) USB and format to ext4 and do a timing run on that and compare to the NTFS one?

Engineering experiment
Always test rather than assume.

Glad to see you did the timing experiment earlier
 
Old 05-30-2024, 04:17 AM   #19
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,918

Rep: Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035
By default GNU tar does a number of checks to ensure that an extracted file(s) do not manage to escape the root directory of where it's being extracted too. This can slow things down quite a bit if the archive contains a lot of links. If you trust the archive not to have any malicious content then extracting with the --absolute-names option turns off these checks and should speed things up.

Here's a blog post about the issue, and a follow-up hacker news thread. which also has some interesting comments.
 
Old 05-30-2024, 09:35 PM   #20
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,612

Original Poster
Rep: Reputation: 180Reputation: 180
Quote:
Originally Posted by chrism01 View Post
Can you get another (same) USB and format to ext4 and do a timing run on that and compare to the NTFS one?

Engineering experiment
Always test rather than assume.

Glad to see you did the timing experiment earlier
Yes, I do plan on trying the ext4 thing, but may not be for while. I needed to get this tarfile restored under system-down conditions, so I just grabbed a drive that was handy and used that. Normally most of our USB drives are formatted to ext4, but this particular one was a retired Windows workstation external drive used for Acronis image backups and was therefore NTFS. Usually, I recycle these for one-shot quarterly backup on Linux and do reformat to ext4, but hadn't done that on this one. I am curious if it would work faster as ext4.
Quote:
Originally Posted by GazL View Post
By default GNU tar does a number of checks to ensure that an extracted file(s) do not manage to escape the root directory of where it's being extracted too. This can slow things down quite a bit if the archive contains a lot of links. If you trust the archive not to have any malicious content then extracting with the --absolute-names option turns off these checks and should speed things up.

Here's a blog post about the issue, and a follow-up hacker news thread. which also has some interesting comments.
Wow! that fellow did some extensive research on tar! Very interesting stuff. Great post.

Now, if tar could only preserve ACLs!
 
Old 05-30-2024, 11:26 PM   #21
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,832

Rep: Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219
GNU tar has --acls option.
man tar
 
1 members found this post helpful.
Old 05-31-2024, 10:18 PM   #22
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,612

Original Poster
Rep: Reputation: 180Reputation: 180
Quote:
Originally Posted by MadeInGermany View Post
GNU tar has --acls option.
man tar
Awesome! Yes, I must have missed that. --acls is in the man page. I'm sticking that and --xattrs in my tar script right now!

Last edited by mfoley; 05-31-2024 at 10:26 PM.
 
  


Reply

Tags
restore, tar



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
mandrake 8.2 session dir restores itself khutze Linux - Software 0 07-30-2002 09:56 PM
How do I un tar a .tar, .tar.z, .tar.gz file vofkid Linux - Newbie 4 03-15-2002 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:21 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