-
Notifications
You must be signed in to change notification settings - Fork 34
Backup and Restore of metadata manually
To backup and restore the Delphix Engine metadata manually, execute the dxtoolkit scripts provided below.
Metadata Backup steps
-
Backup users
dx_get_users -d <SourceEngine> -export /backupdir/users.csv -profile /backupdir/profile.csv
Above command will generate two files
users.csv
andprofile.csv
profile.csv
contains role information for standard users only (if any) -
Backup policy
dx_get_policy -d <SourceEngine> -export -outdir /backupdir -mapping /backupdir/policy.mapping
Above command will generate multiple files, one for each policy with suffix
.policy
. Will also generate another file aspolicy.mapping
which contains policy to object mapping. -
Backup VDB Config templates
dx_get_template -d <SourceEngine> -export -outdir /backupdir
Above command will generate multiple files, one for each VDB config template with suffix .template
-
Backup Hook Operation templates
dx_get_op_template -d <SourceEngine> -exportHook -outdir /backupdir
Above command will generate multiple files, one for each hook operation template with suffix .opertemp
-
Generate environments script
dx_get_env –d <SourceEngine> -backup /backupdir
Above command will generate a file
backup_env.txt
-
Generate script for all dSources and VDB
dx_get_db_env -d <SourceEngine> -backup /backupdir
Above command will generate two files, one for dSource
backup_metadata_dsource.txt
and another one for vdbbackup_metadata_vdb.txt
-
Generate script for Self Service templates
dx_get_js_templates -d <SourceEngine> -backup /backupdir
Above command will generate a file
backup_selfservice_templates.txt
-
Generate script for Self Service containers
dx_get_js_containers -d <SourceEngine> -backup /backupdir
Above command will generate a file
backup_selfservice_containers.txt
Metadata Restore steps
Restore of metadata can be done by executing scripts manually which are generated by backup.
Make sure hostname entry in conf file for target engine must be same as source engine for restore scripts to execute. Else, update the hostname -d <engine>
in backup scripts to match target engine.
Update the password for OS users and DB users in backup scripts to actual passwords before restore.
Delphix