diff --git a/examples/backup_all_tables_and_schema.sh b/examples/backup_all_tables_and_schema.sh index 06b9370..d8f5aa7 100755 --- a/examples/backup_all_tables_and_schema.sh +++ b/examples/backup_all_tables_and_schema.sh @@ -2,7 +2,7 @@ mkdir -p backups for i in `startree table listTables | jq -r '.tables | .[]'` do -echo | startree table getConfig --tableName $i | jq '.' > $i.json +echo | startree table getConfig --tableName $i | jq 'del(..|select(. == null))' > $i.json mv $i.json backups printf "$i backup created \n" done diff --git a/examples/backup_and_process_tableConfig.sh b/examples/backup_and_process_tableConfig.sh index fa0a5e4..35ce7ac 100755 --- a/examples/backup_and_process_tableConfig.sh +++ b/examples/backup_and_process_tableConfig.sh @@ -2,7 +2,7 @@ mkdir -p backups for i in `startree table listTables | jq -r '.tables | .[]'` do -echo | startree table getConfig --tableName $i | jq '.' > $i.json +echo | startree table getConfig --tableName $i | jq 'del(..|select(. == null))' > $i.json if [ `jq -r .realtime.tableType $i.json` = "REALTIME" ]