Is 7-zip not recommended for Windows partition backup?
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
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."
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
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
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
Restorations functional?
I still think tar cannot manage all the ntfs attributes properly, but probably I missed something.'
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.