CN103176866A - File permission back-up method applied in new technology file system (NTFS) - Google Patents
File permission back-up method applied in new technology file system (NTFS) Download PDFInfo
- Publication number
- CN103176866A CN103176866A CN2013101121418A CN201310112141A CN103176866A CN 103176866 A CN103176866 A CN 103176866A CN 2013101121418 A CN2013101121418 A CN 2013101121418A CN 201310112141 A CN201310112141 A CN 201310112141A CN 103176866 A CN103176866 A CN 103176866A
- Authority
- CN
- China
- Prior art keywords
- file
- backup
- catalog
- information
- permission
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention provides a file permission back-up method applied in a new technology file system (NTFS). The system includes a centralized data acquisition module (1), a catalog data organization module (2), and a file access back-up recovery module (3). The centralized back-up data acquisition method is used for obtaining file permission and attribute information in the file system; file information data are organized into a catalog file and backed up to a medium server so as to prevent that domain user rights are lost because of system crash or abnormality; the file cannot be read or manual reconfiguration of the user rights is troublesome.
Description
Technical field
The present invention relates to the Computer Applied Technology field, specifically a kind of file permission backup method that is applied under new technology file system.
Background technology
Just as telephone directory provides the individual the same with mechanism phone information service, ActiveDirectory provides a kind of like this directory service, and it can be stored and access all networked resources (as computing machine, printer, user, Shared Folders, message queue etc.) for information about easily.ActiveDirectory plays a part switchboard in network environment.It helps user and application program to search and access the resource of these networkings, and they are connected with each other.What is more important, it can guarantee that user or the application program of only obtaining the authorization could access these resources safely.Can be for each catalogue, file arrange corresponding file access authority under new technology file system, comprise AD territory authority, can manage resource more easily like this.And when operating system is collapsed or occur extremely needing refitting, be that the file access authority of file and catalogue configuration all can be lost, file resource will occur like this to access unsuccessfully, need to manually carry out configuration again. beforeEspecially in the time of the file permission very complex, carry out to waste a large amount of time from new configuration.Unresolved the problems referred to above, the present invention is separately for information such as file access authorities, and Adoption Network communication and the mode that the io operation separates utilize catalog storage file information data, and more reliable file permission backup and reset mode are provided.
Summary of the invention
The purpose of this invention is to provide a kind of file permission backup method that is applied under new technology file system.
The objective of the invention is to realize in the following manner; use centralized backup set data capture method to obtain file permission and attribute information under file system; file information data is organized into the catalog file backup to media server; in case locking system collapses or extremely causes the loss of territory user right; and file can't read or need to manually reconfigure territory user right trouble; system comprises: centralized data acquisition module (1), catalog Organization of Data module (2), the backup of file access authority recover module (3), wherein
Centralized data acquisition module (1) is used for concentrating the path list information of obtaining backup file, scan by recursive algorithm the backup source path that the user sets, compare file or the catalogue that determines whether as the needs backup by the path, form a backup file path list information, recover module (3) routing information to offer the backup of file access authority, be used for the backup operation of fileinfo;
Catalog Organization of Data module (2) is used for the information of each file of storage, and the catalog structure is as follows:
typedef struct _CATALOG_INFO {
DWORD dwSize;
DWORD dwFileType;
DWORD dwFileSizeHigh;
DWORD dwFileSizeLow;
DWORD dwFileAttribute;
FILETIME ftCreatedTime;
FILETIME ftLastAccessTime;
FILETIME ftLastWriteTime;
int nBackupSet;
DWORD dwFilePathLen;
DWORD dwFileDACLLen;
#define FilePath(ptr) ((char *)ptr + sizeof(struct _CATALOG_INFO))
#define FileDACL(ptr) ((char *)ptr + sizeof(struct _CATALOG_INFO) + ptr->dwFilePathLen)
}CATALOG_INFO, *PCATALOG_INFO;
member in structure represents respectively: the catalog file size, file type, the high byte of file size, the low byte of file size, file attribute information, the document creation time, the last access time of file, the last write time of file, backup set ID, file path length, the file permission message length, file path information, file permission information, each file can be stored as catalog information with above-mentioned relevant information, the catalog information of each file is written in the catalog file goes, write and whole catalog file is sent to media server after completing and preserve,
The backup of file access authority recovers the access rights that module (3) is used for the back up or restore file, the backup file path list information that provides according to centralized data acquisition module (1) offers to the corresponding file access control table of each path extraction information the tissue that catalog Organization of Data module (2) is carried out catalog information.
In whole backup procedure, Backup Data is buffered in client, but backup just can generate complete backup set after completing, and just can begin the transmission of data, to improve the transfer efficiency of network.
Described file permission information is ACL file access control table, is used for the log file access authority information.
Described catalog file is the relevant information of having stored one group of file, and this information comprises: catalog file size, file type, file access time, file attribute, backup set ID, file absolute path and file permission information.
File access authority restore funcitons is by original route information, extracts corresponding file information data and return in original from catalog, completes the rejuvenation of file access authority.
The invention has the beneficial effects as follows: use centralized backup set data capture method to obtain file permission and attribute information under file system; file information data is organized into the catalog file backup to media server; in case locking system collapses or extremely cause the loss of territory user right, and file can't read or need to manually reconfigure territory user right trouble.
Description of drawings
Fig. 1 is the schematic flow sheet of centralized data acquisition module;
Fig. 2 is the data flow schematic diagram of file permission backup.
Embodiment
With reference to Figure of description, method of the present invention is described in detail below.
As described in summary of the invention, architecture of the present invention mainly comprises: centralized data acquisition module (1), catalog Organization of Data module (2), the backup of file access authority recover module (3).
A kind of file permission backup method that is applied under new technology file system is generally used for backing up the fileinfo of existence domain user right under new technology file system.It is characterized in that using centralized backup set data capture method to obtain file permission and attribute information under file system; file information data is organized into the catalog file backup to media server; in case locking system collapse or extremely cause the loss of territory user right, to such an extent as to file can't read or need manually from new configuration territory user right.This system of systems comprises: centralized data acquisition module (1), catalog Organization of Data module (2), the backup of file access authority recover module (3).
Centralized data acquisition module (1) is used for concentrating the path list information of obtaining backup file, scan by recursive algorithm the backup source path that the user sets, compare file or the catalogue that determines whether as the needs backup by the path, form a backup file path list information, recover module (3) routing information to offer the backup of file access authority, be used for the backup operation of fileinfo.
The information that catalog Organization of Data module (2) adopts structure to store each file, the catalog structure is as follows:
typedef struct _CATALOG_INFO {
DWORD dwSize;
DWORD dwFileType;
DWORD dwFileSizeHigh;
DWORD dwFileSizeLow;
DWORD dwFileAttribute;
FILETIME ftCreatedTime;
FILETIME ftLastAccessTime;
FILETIME ftLastWriteTime;
int nBackupSet;
DWORD dwFilePathLen;
DWORD dwFileDACLLen;
#define FilePath(ptr) ((char *)ptr + sizeof(struct _CATALOG_INFO))
#define FileDACL(ptr) ((char *)ptr + sizeof(struct _CATALOG_INFO) + ptr->dwFilePathLen)
}CATALOG_INFO, *PCATALOG_INFO;
Member in structure represents respectively: the high byte of catalog file size, file type, file size, the low byte of file size, file attribute information, document creation time, last access time of file, last write time of file, backup set ID, file path length, file permission message length, file path information, file permission information.Each file can be stored as above relevant information, the catalog information of each file is written in the catalog file goes, and writes whole catalog file to be sent to media server after completing and preserve.
The backup of file access authority recovers the access rights that module (3) is used for the back up or restore file, the backup file path list information that provides according to centralized data acquisition module (1) offers to the corresponding file access control table of each path extraction information the tissue that catalog Organization of Data module (2) is carried out catalog information.
Except the described technical characterictic of instructions, be the known technology of those skilled in the art.
Claims (5)
1. file permission backup method that is applied under new technology file system, it is characterized in that using centralized backup set data capture method to obtain file permission and attribute information under file system, file information data is organized into the catalog file backup to media server, in case locking system collapses or extremely causes the loss of territory user right, and file can't read or need to manually reconfigure territory user right trouble, system comprises: centralized data acquisition module (1), catalog Organization of Data module (2), the backup of file access authority recovers module (3), wherein:
Centralized data acquisition module (1) is used for concentrating the path list information of obtaining backup file, scan by recursive algorithm the backup source path that the user sets, compare file or the catalogue that determines whether as the needs backup by the path, form a backup file path list information, recover module (3) routing information to offer the backup of file access authority, be used for the backup operation of fileinfo;
Catalog Organization of Data module (2) is used for the information of each file of storage, and the catalog structure is as follows:
typedef struct _CATALOG_INFO {
DWORD dwSize;
DWORD dwFileType;
DWORD dwFileSizeHigh;
DWORD dwFileSizeLow;
DWORD dwFileAttribute;
FILETIME ftCreatedTime;
FILETIME ftLastAccessTime;
FILETIME ftLastWriteTime;
int nBackupSet;
DWORD dwFilePathLen;
DWORD dwFileDACLLen;
#define FilePath(ptr) ((char *)ptr + sizeof(struct _CATALOG_INFO))
#define FileDACL(ptr) ((char *)ptr + sizeof(struct _CATALOG_INFO) + ptr->dwFilePathLen)
}CATALOG_INFO, *PCATALOG_INFO;
member in structure represents respectively: the catalog file size, file type, the high byte of file size, the low byte of file size, file attribute information, the document creation time, the last access time of file, the last write time of file, backup set ID, file path length, the file permission message length, file path information, file permission information, each file can be stored as catalog information with above-mentioned relevant information, the catalog information of each file is written in the catalog file goes, write and whole catalog file is sent to media server after completing and preserve,
The backup of file access authority recovers the access rights that module (3) is used for the back up or restore file, the backup file path list information that provides according to centralized data acquisition module (1) offers to the corresponding file access control table of each path extraction information the tissue that catalog Organization of Data module (2) is carried out catalog information.
2. file permission backup method according to claim 1, is characterized in that, in whole backup procedure, Backup Data is buffered in client, but just can generate complete backup set after backup is completed, just can begin the transmission of data, to improve the transfer efficiency of network.
3. file permission backup method according to claim 1, is characterized in that, described file permission information is ACL file access control table, is used for the log file access authority information.
4. file permission backup method according to claim 1, it is characterized in that, described catalog file, be the relevant information of having stored one group of file, this information comprises: catalog file size, file type, file access time, file attribute, backup set ID, file absolute path and file permission information.
5. file permission backup method according to claim 1, it is characterized in that file access authority restore funcitons is by original route information, extract corresponding file information data and return in original from catalog, complete the rejuvenation of file access authority.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101121418A CN103176866A (en) | 2013-04-02 | 2013-04-02 | File permission back-up method applied in new technology file system (NTFS) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101121418A CN103176866A (en) | 2013-04-02 | 2013-04-02 | File permission back-up method applied in new technology file system (NTFS) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103176866A true CN103176866A (en) | 2013-06-26 |
Family
ID=48636765
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013101121418A Pending CN103176866A (en) | 2013-04-02 | 2013-04-02 | File permission back-up method applied in new technology file system (NTFS) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103176866A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103605586A (en) * | 2013-11-21 | 2014-02-26 | 浪潮电子信息产业股份有限公司 | Data recovery method for tape media |
CN104281503A (en) * | 2014-09-30 | 2015-01-14 | 华为数字技术(成都)有限公司 | Data backup method and related system |
CN107451486A (en) * | 2017-06-30 | 2017-12-08 | 华为技术有限公司 | The authority setting method and device of a kind of file system |
CN109416717A (en) * | 2016-02-08 | 2019-03-01 | 利弗莱姆有限公司 | For the variation fingerprint identification of database table, text file and data feeding |
CN112764972A (en) * | 2021-01-27 | 2021-05-07 | 上海英方软件股份有限公司 | Cross-platform file attribute backup and recovery method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040019615A1 (en) * | 2002-07-23 | 2004-01-29 | Hitachi, Ltd. | Method for backing up a disk array system |
CN102799503A (en) * | 2012-08-08 | 2012-11-28 | 浪潮(北京)电子信息产业有限公司 | Recover method applied to large quantity of small files |
-
2013
- 2013-04-02 CN CN2013101121418A patent/CN103176866A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040019615A1 (en) * | 2002-07-23 | 2004-01-29 | Hitachi, Ltd. | Method for backing up a disk array system |
CN102799503A (en) * | 2012-08-08 | 2012-11-28 | 浪潮(北京)电子信息产业有限公司 | Recover method applied to large quantity of small files |
Non-Patent Citations (1)
Title |
---|
TKO263: "服务器设置:共享文件夹的移动和权限设置备份(备份ACL)、共享属性、共享权限的保留", 《百度文库》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103605586A (en) * | 2013-11-21 | 2014-02-26 | 浪潮电子信息产业股份有限公司 | Data recovery method for tape media |
CN104281503A (en) * | 2014-09-30 | 2015-01-14 | 华为数字技术(成都)有限公司 | Data backup method and related system |
CN109416717A (en) * | 2016-02-08 | 2019-03-01 | 利弗莱姆有限公司 | For the variation fingerprint identification of database table, text file and data feeding |
CN107451486A (en) * | 2017-06-30 | 2017-12-08 | 华为技术有限公司 | The authority setting method and device of a kind of file system |
CN107451486B (en) * | 2017-06-30 | 2021-05-18 | 华为技术有限公司 | Permission setting method and device for file system |
US11238175B2 (en) | 2017-06-30 | 2022-02-01 | Huawei Technologies Co., Ltd. | File system permission setting method and apparatus |
CN112764972A (en) * | 2021-01-27 | 2021-05-07 | 上海英方软件股份有限公司 | Cross-platform file attribute backup and recovery method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11429305B2 (en) | Performing backup operations using replicas | |
CN106407356B (en) | Data backup method and device | |
US10565071B2 (en) | Smart data replication recoverer | |
US20170344433A1 (en) | Apparatus and method for data migration | |
CN107256182B (en) | Method and device for restoring database | |
CN102521072B (en) | Virtual tape library equipment and data recovery method | |
CN107528872B (en) | Data recovery method and device and cloud storage system | |
CN103176866A (en) | File permission back-up method applied in new technology file system (NTFS) | |
CN102981933A (en) | Method and system for data increment backup of sensing layer of Internet of Things | |
WO2020063600A1 (en) | Data disaster recovery method and site | |
CN102508886B (en) | Extensive makeup language (XML)-based method for synchronously updating increment of spatial data | |
CN111651275A (en) | MySQL cluster automatic deployment system and method | |
CN104461773A (en) | Backup deduplication method of virtual machine | |
CN109144785A (en) | Method and apparatus for Backup Data | |
CN102508740A (en) | Remote replication method of file system | |
CN112380067B (en) | Metadata-based big data backup system and method in Hadoop environment | |
CN102799503B (en) | Recover method applied to large quantity of small files | |
CN104965835B (en) | A kind of file read/write method and device of distributed file system | |
CN101937378B (en) | Method for carrying out back-up protection on data of storage equipment and computer system | |
CN106326082A (en) | Method and device for recording log in network system | |
CN103176867A (en) | Fast file differential backup method | |
KR100912127B1 (en) | System and method for managing meta-data | |
US20220413971A1 (en) | System and Method for Blockchain Based Backup and Recovery | |
CN102684928B (en) | The method and apparatus of a kind of service backup and recovery | |
CN104391760A (en) | Data backup method, server and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130626 |
|
WD01 | Invention patent application deemed withdrawn after publication |