In this tutorial we will learn how to export one table and restore it using vsql commands.
In this step we will make use of "EXPORT_TABLES" Vertica native function that will export the DDL of our table to the file we tell it to buy using the "-o" vsql option. Make sure you use full path description.
Next we will export the content of the table we choose to export and we zipp it in the same process.
Time to restore out objects.
First create the table by running the script. Next use the "COPY" command to load the table with the data from the file table_one.gz, good to remember that Vertica will work with zipped file.(gret option to save netwok IO).
More on how to export and import objects in Vertica in the next tutorials.