FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Tue Jun 15, 2021 15:52



Post new topic Reply to topic  [ 2 posts ] 
ntfsclone equivalent in ntfs-3g? 
Author Message

Joined: Fri May 07, 2010 19:28
Posts: 10
Post ntfsclone equivalent in ntfs-3g?
ntfsclone --save-image can be used to create a sort of compressed ntfs image, holding just the data
and omitting the unused space. The problem is, there is no way to verify such an image other than by restoring it to an empty partition. If the special save-image option isn't used a partition image results, and that can be mounted and checked, but it is huge.

One could mount the NTFS partition with ntfs-3g and use tar, but then while the binary image of each file would be retained it would lose all the ACLs and Windows ownerships. Does ntfs-3g support some sort of tar like program such that this would work?

mount -t ntfs-3g -o ro /dev/sda1 /tmp/dir1
ntfstar -cf - /tmp/dir1 >gzip -c image.tar.gz
gunzip -c image.tar.gz | ntfstar -tf -

and verify that the expected files are there? Perhaps using secaudit somehow to restore the ntfs
information on top of the usual tar files?


Fri Jun 04, 2010 23:53
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfsclone equivalent in ntfs-3g?
Hi,

Quote:
One could mount the NTFS partition with ntfs-3g and use tar, but then while the binary image of each file would be retained it would lose all the ACLs and Windows ownerships. Does ntfs-3g support some sort of tar like program such that this would work?

There is "fsarchiver" (independent of ntfs-3g) whose purpose is to backup file systems. When saving an ntfs partition, it uses extended attributes defined by ntfs-3g to save internal data such as ACLs, junction points, etc.

I have no opinion about its effectiveness, and you will also have to do a restore to check the correctness of the backup.
Quote:
One could mount the NTFS partition with ntfs-3g and use tar, but then while the binary image of each file would be retained it would lose all the ACLs and Windows ownerships. Does ntfs-3g support some sort of tar like program such that this would work?

Not really. Specific code would have to be added to tar to manage conflicts between standard attributes and ntfs-specific attributes (permissions, junction points). You would also have to do a restore to check the backup.
Quote:
Perhaps using secaudit somehow to restore the ntfs information on top of the usual tar files?

secaudit has options limited to saving and restoring the ntfs ACLs. This does not lead to a solution to backup a full system partition.

Regards

Jean-Pierre


Sat Jun 05, 2010 09:09
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.