2008-02-14 14:25:49 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
B<tabdump> - display a database table in csv format.
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
I<tabdump [table]>
|
|
|
|
|
|
|
|
I<tabdump [? | -h | --help]>
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
The tabdump command displays the header and all the rows of the specified table in csv format.
|
|
|
|
Only one table can be specified. If no table is specified, the list of existing
|
|
|
|
tables will be displayed.
|
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
B<-?|-h|--help> Display usage message.
|
|
|
|
|
|
|
|
=head1 RETURN VALUE
|
|
|
|
|
|
|
|
0 The command completed successfully.
|
|
|
|
|
|
|
|
1 An error has occurred.
|
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
|
|
|
1. To display the contents of the site table:
|
|
|
|
|
2008-02-18 15:57:25 +00:00
|
|
|
tabdump site
|
2008-02-14 14:25:49 +00:00
|
|
|
|
|
|
|
2. To see what tables exist in the xCAT database:
|
|
|
|
|
2008-02-18 15:57:25 +00:00
|
|
|
tabdump
|
|
|
|
|
|
|
|
3. To see what tables exist in the xCAT database:
|
|
|
|
|
|
|
|
mkdir -p /tmp/xcatdb.backup
|
|
|
|
for i in `tabdump`;do echo "Dumping $i..."; tabdump $i > /tmp/xcatdb.backup/$i.csv; done
|
2008-02-14 14:25:49 +00:00
|
|
|
|
|
|
|
=head1 FILES
|
|
|
|
|
|
|
|
/opt/xcat/sbin/tabdump
|
|
|
|
|
|
|
|
=head1 NOTES
|
|
|
|
|
2008-02-18 15:57:25 +00:00
|
|
|
This command is part of the xCAT software product.
|