Hi Jean-Pierre,
> What is the purpose of Procedure3 ?
The reason I want to backup by a file unit is to do
incrementtal backup.
There are two methods to do incremental backup a filesystem.
Method1:
At first time, Make backup data that consist of one object.
The object is a full dump of the target filesystem.
"full" means that the dump contains all files on the target filesytem.
After second time, Pickup and archive the files changed from the
previous backup.
Method2:
At first time, Make backup data that consist of two objects.
The first object is a empty dump of the target filesystem.
"empty" means that the dump contains no file. It contains
only the structure of the contarget filesytem.
The second object is an archive file that consists of all
files of the target filesystem.
After second time, Pickup and archive the files changed from the
previous backup.
I prefer Method2 rather than Meshod1. Because it decouples structure
and data better than the other. And I thought I could get an empty
dump from an empty NTFS filesystem. So I thougt those procedures.
But I cannot think those procedures are smart. I am planning to
investigate what ntfsinfo provides.
> The above procedure will restore the full partition
> to a new partition of the same size. If you want to
> do a partial restore (eg a subdirectory only), with all
> the NTFS parameters, you have to design a specific
> tool. In
> http://pagesperso-orange.fr/b.andre/tools.zip
> there is ntfscp.c which is an example of how you
> can do that.
You pointed me out another difficulty in my attempt.
Archiving and Restoring files on NTFS filesystems need special commands
for it. Because existing archive commands on Linux systems , such like
tar, cpio and so on, can't keep NTFS specific file attributes.
I will give a look to ntfscp.c.
Thanks for giving me useful information.
Sincerely Yours.
> Hi,
>
> Kazuhiro Takenaka wrote:
>> Hi All,
>>
>> I am trying to backup and restore a NTFS filesystem on a Linux system.
>>
>> I have two aims to do this.
>>
>> One is to backup and restore by a file unit.
>>
>> I read the man pages of the following commands: ntfs-3g, ntfs-3g.probe,
>> ntfs-3g.secaudit, ntfs-3g.usermap.
>>
>> And now I think I can do it with proper use of those commands.
>>
>> Another aim is to backup and restore filesystem parameters.
>>
>> What I can think of now is using ntfsclone by the following
>> procedures.
>>
>> Procedure1.
>> Backup a NTFS filesytem by ntfsclone with metadata.
>>
>> Procedure2.
>> Restore a NTFS filesytem by ntfsclone from the data producted by
>> Procedure1.
>>
>> Procedure3.
>> Remove all files in the NTFS filesystem restored by Procedure2.
>>
>
> What is the purpose of Procedure3 ?
>
>> My questiions are:
>>
>> Q1. Can the procedures I wrote above work according to my
>> expectation?
>>
>
> It very much depends on what your expectations are.
>
> The above Procedure1 and Procedure2 save and
> restore only the metadata, not the user parts of files.
> Is this what you want to do ?
>
> If you want to fully save and restore a partition, you
> need to use the options --save-image and --restore-image
> of ntfsclone.
>
>> Q2. Is there any other smart way to do this?
>>
>
> The above procedure will restore the full partition
> to a new partition of the same size. If you want to
> do a partial restore (eg a subdirectory only), with all
> the NTFS parameters, you have to design a specific
> tool. In
> http://pagesperso-orange.fr/b.andre/tools.zip
> there is ntfscp.c which is an example of how you
> can do that.
>
> Regards
>
> Jean-Pierre
--
Kazuhiro Takenaka
Open Source Business Unit
NTT DATA INTELLILINK CORPORATION
email Kazuhiro Takenaka <[email protected]>
URL http://www.intellilink.co.jp/
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel