start:dumpxCATdb_h description:dumpxCATdb -h cmd:dumpxCATdb -h check:rc==0 check:output=~dumpxCATdb end start:dumpxCATdb_v description:Command Version cmd:dumpxCATdb -v check:rc==0 check:output=~Version end start:dumpxCATdb_p_nullskiptables description:dumpxCATdb -p path,not skiptables cmd:chtab key=skiptables site.value="" check:rc==0 cmd:dumpxCATdb -p /tmp/db check:rc==0 cmd:ls /tmp/db check:rc==0 check:output=~site.csv check:output!~eventlog.csv check:output!~auditlog.csv cmd:rm -rf /tmp/db check:rc==0 end start:dumpxCATdb_a_p_nullskiptables description:dump all,without this flag the eventlog and auditlog will be skipped cmd:chtab key=skiptables site.value="" check:rc==0 cmd:dumpxCATdb -a -p /tmp/db.all check:rc==0 cmd:ls /tmp/db.all check:rc==0 check:output=~site.csv check:output=~eventlog.csv check:output=~auditlog.csv cmd:rm -rf /tmp/db.all end start:dumpxCATdb_p_skiptables description:To have dumpxCATdb not backup the hosts or passwd table cmd:chtab key=skiptables site.value="hosts,passwd" check:rc==0 cmd:dumpxCATdb -p /tmp/db.skiptables check:rc==0 cmd:ls /tmp/db.skiptables check:output!~hosts check:output!~passwd cmd:rm -rf /tmp/db.skiptables check:rc==0 end start:dumpxCATdb_a_p_skiptables description:To have dumpxCATdb all but not backup the hosts or passwd table cmd:chtab key=skiptables site.value="hosts,passwd" check:rc==0 cmd:dumpxCATdb -a -p /tmp/db.skiptables check:rc==0 cmd:ls /tmp/db.skiptables check:output!~(hosts&&passwd) check:output=~eventlog.csv check:output=~auditlog.csv cmd:rm -rf /tmp/db.skiptables check:rc==0 end start:dumpxCATdb_p_nullskiptables_V description:test verbose and -p cmd:chtab key=skiptables site.value="" check:rc==0 cmd:dumpxCATdb -p /tmp/db -V check:rc==0 check:output=~Skipping eventlog check:output=~Skipping auditlog check:output=~Dumping site check:output=~Backup Complete cmd:rm -rf /tmp/db end start:dumpxCATdb_a_p_nullskiptables_V description:test -V and -a cmd:chtab key=skiptables site.value="" check:rc==0 cmd:dumpxCATdb -a -p /tmp/db -V check:rc==0 check:output=~Dumping eventlog check:output=~Dumping auditlog check:output=~Backup Complete cmd:rm -rf /tmp/db end start:dumpxCATdb_p_V description:test -p -V cmd:chtab key=skiptables site.value="passwd" check:rc==0 cmd:dumpxCATdb -p /tmp/db -V check:rc==0 check:output=~Skipping passwd check:output=~Backup Complete cmd:rm -rf /tmp/db end