2008-03-18 18:13:34 +00:00
=head1 NAME
2008-04-02 21:42:29 +00:00
B<dumpxCATdb> - dumps the xCAT db tables .
=head1 SYNOPSIS
2008-03-18 18:13:34 +00:00
2011-04-19 13:59:33 +00:00
B<dumpxCATdb> [B<-a>] [B<-V>] [{B<-p>|B<--path>} I<path>]
2008-03-18 18:13:34 +00:00
2008-04-02 21:42:29 +00:00
B<dumpxCATdb> [B<-h>|B<--help>] [B<-v>|B<--version>]
2008-03-18 18:13:34 +00:00
=head1 DESCRIPTION
2011-05-26 17:42:45 +00:00
The dumpxCATdb command creates .csv files for xCAT database tables and puts them in the directory given by the -p flag. These files can be used by the restorexCATdb command to restore the database. The command will read the list of tables in the site.skiptables attribute and not backup those tables.
2011-10-25 13:26:38 +00:00
Supports using XCAT_SKIPTABLES env variable to provide a list of skip tables.
2008-03-18 18:13:34 +00:00
2011-11-10 18:50:39 +00:00
The command will never backup TEAL or ISNM tables, except isnm_config. To dump TEAL tables use the documented process for TEAL. For ISNM use tabdump, after using tabprune to get to prune unnecessary records.
2008-03-18 18:13:34 +00:00
=head1 OPTIONS
B<-h> Display usage message.
2008-04-02 21:42:29 +00:00
B<-v> Command Version.
2008-03-18 18:13:34 +00:00
2010-04-30 13:44:40 +00:00
B<-V> Verbose.
2011-04-19 13:59:33 +00:00
B<-a> All,without this flag the eventlog and auditlog will be skipped.
2011-05-26 17:42:45 +00:00
B<-p> Path to the directory to dump the tables. It will be created, if it does not exist.
2008-03-18 18:13:34 +00:00
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occurred.
=head1 EXAMPLES
2008-04-02 21:42:29 +00:00
1. To dump the xCAT database into the /tmp/db directory, enter:
2008-03-18 18:13:34 +00:00
2008-04-02 21:42:29 +00:00
B<dumpxCATdb -p /tmp/db>
2008-03-18 18:13:34 +00:00
2011-04-19 13:59:33 +00:00
2. To dump the xCAT database into the /tmp/db directory, including the auditlog and eventlog enter:
B<dumpxCATdb -a -p /tmp/db>
2011-05-26 17:27:40 +00:00
2. To have dumpxCATdb not backup the hosts or passwd table:
2008-03-18 18:13:34 +00:00
2011-05-26 18:34:25 +00:00
B<chtab key=skiptables site.value="hosts,passwd">
2008-03-18 18:13:34 +00:00
2011-10-25 16:13:34 +00:00
B<dumpxCATdb -p /tmp/db>
2. To have dumpxCATdb not backup the hosts or passwd table:
B<export XCAT_SKIPTABLES="hosts,passwd">
B<dumpxCATdb -p /tmp/db>
2008-03-18 18:13:34 +00:00
=head1 FILES
2008-04-02 21:42:29 +00:00
2008-03-18 18:13:34 +00:00
/opt/xcat/sbin/dumpxCATdb
2008-08-02 16:18:07 +00:00
=head1 SEE ALSO
2008-03-18 18:13:34 +00:00
2008-08-02 16:18:07 +00:00
L<restorexCATdb(1)|restorexCATdb.1>
2008-03-18 18:13:34 +00:00
2008-04-02 21:42:29 +00:00