LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
  Search this Thread
Old 05-05-2024, 06:29 AM   #1
JASlinux
Member
 
Registered: Oct 2020
Posts: 385

Rep: Reputation: Disabled
Question Is 7-zip not recommended for Windows partition backup?


I recently .tar'd a Windows partition, then compressed it in 7-zip .7z format splitting at about 4gb.

.7z is a container format (like .zip) that does not need an extra container for multiple files/spanned archives.

In one way, .tar.7z is redundant, because .7z does not need .tar to create these archives, but that is what I did because .tar has a reported history of effective backup & because I needed to split the archive & compression process into two steps.

What I don't know:

Is .7z or .zip good for Windows partition backups?

Windows hidden & system files/folders are correctly archived by default?

Restorations functional?

There's a 7-zip forum on SourceForge (https://sourceforge.net/p/sevenzip/discussion/) but I do not have an account there yet, here more.

Similar question elsewhere:
https://forums.whirlpool.net.au/archive/1827562
7zip Entire Windows Partition
 
Old 05-05-2024, 07:56 AM   #2
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 703
Blog Entries: 1

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
I assume you did that from a Running Linux system.

I know nothing about Windows links and hidden files or file attributes. But it is tar(1) that would have would be concerned about file attributes, not 7zip.

If you did "tar pcf" maybe it would work. But I think dd(1) would be a better option, then compress and split it.
 
1 members found this post helpful.
Old 05-05-2024, 11:50 AM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,714

Rep: Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734
7z is compression software, not backup software.
Tar is archive software, not backup software.
Either or both can be used as part of a process for backing up data, but they are not optimal for partition backups.
There is software made for backups that might serve better, but if you are creating a backup in one OS of data on a file system designed for a different OS backup software may not understand the data involved properly.
Your BEST option is imaging software, designed to image a partition or an entire device. Certainly dd can be used for that, it is a primary purpose of that software. There are other partition backup tools that are specific to this situation that should work as well or better.

Have you considered backing up the Linux stuff in Linux, and the Windows stuff in Windows, instead of trying to cross the two?
 
2 members found this post helpful.
Old 05-06-2024, 08:21 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
Windows apparently used to have a cumbersome tool called "Microsoft Backup." (Which never had the simple grace and elegant utility of Apple's "Time Machine.") Nevertheless, I would now seek out a "true backup utility," running in the Windows native environment.

Because: "the true test of a 'backup utility' is when everything has just crashed and you are now actually tasked with restoring from it."
 
Old 05-06-2024, 08:59 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,981

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Quote:
Originally Posted by JASlinux View Post
In one way, .tar.7z is redundant, because .7z does not need .tar to create these archives, but that is what I did because .tar has a reported history of effective backup & because I needed to split the archive & compression process into two steps.
If you use both tar and 7zip better to name it .tar.7z. Otherwise you can give it any extension, like .t7z or .qdfsfd too. Irrelevant.

Quote:
Originally Posted by JASlinux View Post

Is .7z or .zip good for Windows partition backups?
if you compress a tar file with 7zip it is completely irrelevant. a tar file is just a file and not a partition an you can use whatever compression tool you like on it. Nobody knows which compression tool will give you better result, it depends on the content.
Quote:
Originally Posted by JASlinux View Post
Windows hidden & system files/folders are correctly archived by default?
file attributes like system/hidden files are just attributes, in general tar does not care about those attributes. But if you want to manage a windows partition (ntfs) properly you need to use a tool which can manage these attributes too.
Quote:
Originally Posted by JASlinux View Post
Restorations functional?
I still think tar cannot manage all the ntfs attributes properly, but probably I missed something.'
Quote:
Originally Posted by JASlinux View Post
There's a 7-zip forum on SourceForge (https://sourceforge.net/p/sevenzip/discussion/) but I do not have an account there yet, here more.
if it is important to you, register.

Similar question elsewhere:
https://forums.whirlpool.net.au/archive/1827562
7zip Entire Windows Partition[/QUOTE]

And as it was already recommended several times use windows and windows based tools to backup/restore windows.
 
Old 05-06-2024, 09:40 AM   #6
JASlinux
Member
 
Registered: Oct 2020
Posts: 385

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post

Have you considered backing up the Linux stuff in Linux, and the Windows stuff in Windows, instead of trying to cross the two?
Not sure how alone I am on this, but I am motivated by fear.

A restoration process might not be available or the archive itself might not restore properly.

So I use multiple formats, usually content with builtin Windows Image, AOMEI Backupper .adi, & dd.

Thoroughness

Linux can be tricky with file permissions but does not have Windows version of hidden & system attributes, so I do not worry about it much.

I have been adding tarballs to the repertoire, but based on this feedback I might rethink my options.

Why tarballs? dd wants the whole partition despite usage (vs. free space) & that is a bane.
 
Old 05-06-2024, 12:33 PM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,714

Rep: Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734
You can zero empty space, and if you do then the dd image can be compressed with any compression tool effectively.
 
Old 05-07-2024, 03:59 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
There used to be a command line switch in zip to preserve extended attributes. No sure if that's a thing anymore.
 
Old 05-07-2024, 10:55 PM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,714

Rep: Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734Reputation: 2734
Quote:
Originally Posted by jefro View Post
There used to be a command line switch in zip to preserve extended attributes. No sure if that's a thing anymore.
And that may not preserve MICROSOFT file system attributes, it understands the LINUX file system extended attributes.
 
Old 05-08-2024, 01:05 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,981

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Quote:
Originally Posted by wpeckham View Post
You can zero empty space, and if you do then the dd image can be compressed with any compression tool effectively.
this is just the duplicate of https://www.linuxquestions.org/quest...ce-4175736356/
it was already discussed. I don't really understand why do we need two (or more) threads about something which is completely pointless.
Discussing tar, 7z and similar tools to backup and restore windows partitions (and ntfs) is just wrong. If you want to have a reliable backup/restore solution us what is recommended for the given OS, do not even try to create a new solution. You will fail, and you will only realize it when you have no chance to recover.
 
  


Reply

Tags
7zip, archive, backup, tar, windows 10



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
[SOLVED] How can I have zip -d file.zip "__MACOSX*" work on all zip files in directory? thomwblair Linux - Newbie 10 10-08-2018 02:30 PM
PHP ZIP MYSQL - open zip without writing it to disk benjalien Programming 2 01-15-2010 05:14 AM
uncompress .zip with "tar -ixz Filename.zip" , can it be done ??? htetnaing Linux - Newbie 2 08-17-2008 05:10 AM
Zip gives error "-bash: /usr/bin/zip: Argument list too long" konathamsrinu Programming 3 07-06-2006 10:08 AM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:00 AM.

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