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 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ ntfs-3g-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel
