You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrate spot restoration tool with CLI restore command (#52)
This commit integrates the SpotRestorationTool to RestoreFromBackupTool: when user triggers a restore command using ZK CLI, if a znode path is specific, it will run spot restoration on top of an offline restoration of backup files, the spot restoration will use the restored backup files.
+ ": the connection information for the backup store\n For GPFS the format is: gpfs:<config_path>:<backup_path>:<namespace>\n "
148
-
+ OptionFullCommand.SNAP_DESTINATION
149
-
+ ": local destination path for restored snapshots\n "
150
-
+ OptionFullCommand.LOG_DESTINATION + ": local destination path for restored txlogs\n "
151
-
+ OptionFullCommand.TIMETABLE_STORAGE_PATH
152
-
+ ": Needed if restore to a timestamp. Backup storage path for timetable files, for GPFS the format is: gpfs:<config_path>:<backup_path>:<namespace>, if not set, default to be same as backup storage path\n "
181
+
+ OptionFullCommand.RESTORE_ZXID
182
+
+ ". Required for both offline restoration and spot restoration.\n "
183
+
+ OptionFullCommand.BACKUP_STORE
184
+
+ ": the connection information for the backup store\n "
185
+
+ "For GPFS the format is: gpfs:<config_path>:<backup_path>:<namespace>\n "
186
+
+ "Required for both offline restoration and spot restoration.\n "
187
+
+ OptionFullCommand.SNAP_DESTINATION + ": local destination path for restored snapshots. "
188
+
+ "Required for offline restoration.\n " + OptionFullCommand.LOG_DESTINATION
189
+
+ ": local destination path for restored txlogs. "
190
+
+ "Required for offline restoration.\n " + OptionFullCommand.TIMETABLE_STORAGE_PATH
191
+
+ ": Needed if restore to a timestamp. Backup storage path for timetable files. "
192
+
+ "For GPFS the format is: gpfs:<config_path>:<backup_path>:<namespace>. "
193
+
+ "If not set, default to be same as backup storage path\n "
153
194
+ OptionFullCommand.LOCAL_RESTORE_TEMP_DIR_PATH
154
-
+ ": Optional, local path for creating a temporary intermediate directory for restoration, the directory will be deleted after restoration is done\n "
195
+
+ ": Required for spot restoration, and optional for offline restoration. "
196
+
+ "The restore tool will use this local path to stage temporary files needed for restoration work, "
197
+
+ "this directory will be deleted after restoration is done\n "
0 commit comments