checkBackup#
- swordfish.function.checkBackup()#
Check the data integrity of the backup files.
- Parameters:
backupDir (Constant) – A string indicating the directory to save the backup.
dbPath (Constant) – A string indicating the database path.
tableName (Constant, optional) – A string indicating the table name. If tableName is unspecified, all tables in the database are checked.
partition (Constant, optional) –
A string indicating the relative path of the backup partitions. Use “?” as a single wildcard and “%” as a wildcard that can match zero or more characters.
For a certain partition, specify the relative path or “%/” + “partition name”.
For all the partitions: specify “%”.
- Returns:
An empty table if all backup files are complete and accurate; otherwise return the information of abnormal backup files. You can set force=true for function backup to enable force backup to restore the corrupt backup partitions.
- Return type: