Administration Guides
Golden Copy Open File Format Definition
Home
- Overview
- Use Cases
- How to view the file metadata
- MetaData Format Definition
- How can this metadata be used?
Overview
Golden Copy offers an open format to data for backup using native features within S3 target storage to enable self describing metadata architecture. This benefits customers by avoiding a data locking from a vendor and allows customers to build solutions that extract rich metadata contained within the file system. Examples of solutions that customers can leverage the metadata open format.
Use Cases
- Read the S3 properties to extracted created, modified, or last accessed date stamps from the backed up file system data
- View the owner and group of the backed up data directly from the object properties
- View Folder ACL's that were backed up separately from the from the data using a json representation of the data
- View the files mode bits that existed at the time of backup from the s3 object properties
- Restore S3 data to a file system and re-apply the metadata (owern,group, mode bits and folder ACL's)
- Validate the data integrity of backed up data using md5 checksum property stored as a property of the object. The MD5 checksum is stored during the backup process allowing automated data integrity validation or one time validation on specific files.
How to view the file metadata
- Numerous tools allow browsing objects in s3 and viewing the custom properties. Examples below show AWS console and Cyberduck
MetaData Format Definition
- File metadata baseline are fields that all files will have after upload by Golden Copy. A useful tool to convert epoch encoded dates to human readable dates is available here.
- owner - the active directory or linux user that owns the file
- group - the active directory or linux group that created the file
- mode - contains the mode bits from linux for read, write , execute for users and groups
- changetime - creation date of the file encoded in epoch time.
- createdtime - creation date of the file encoded in epoch time
- modifiedtime - last modified date of the file encoded in epoch time
- islongpathlink - true or false value that identifies if the file was present on a path that is longer than 1024 bytes path which cannot be uploaded to S3 due to limitations of S3 prefix length. This allows Golden copy to store this files path in json format preserve 4K length posix paths in S3 and allow the file to restored and preserve the entire path length.
- issymlink - (true/false) Media mode in Golden Copy preserve symlinks and hard links to store single instance of the data and preserve pointers to the real file. This has 2 benefits A) reduces the cost of storing duplicate data during the backup process B) ensures symlinks and hard links can be restored in the file system and avoids data expansion.
- ishardlink - (true/false) same as above but covers hard links
- inode - (inode from the file system) - stores the inode for symlink and hardlink when media mode is enabled to preserve links. The .gc_inodes prefix key under the backup folder path in the S3 bucket stores objects named after the inode and contains the real file the sym or hard links are pointing at. The links will be created in the path they were found and contain a json payload that lists the inode object path in the .gc_nodes prefix path.
- isfolder - indicates if the object in the bucket was a folder on the file system. Folders have a dedicated object created that contains json permissions from the file system, this flag indicates true or false for the objects that are folders
- checksum - If checksum mode is enabled the file checksum is an md5 created during the backup and stored as a property for future data integrity validations
- history_full - As data moves from on premise storage to object storage this property stores the data flow history showing Powerscale --> AWS or Azure or ECS etc.. and if data is recalled back on premise this workflow is appended to the property to show that data has been backed up and restored at some point.
How can this metadata be used?
- Automation tools can decode the metadata tags using the S3 Head api call to retrieve the tags and write application or logic that can re-apply owner,group, mode bits or folder level ACL's into an alternate file system. Golden Copy supports this automation for Dell PowerScale and fully integrates the Dell API to apply the metadata during a restore operation.
- This open format of metadata allows any developer to read the information and automate the same task for any file system.