You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Daniel Curry <da...@arrayent.com> on 2014/02/08 00:08:09 UTC
cqlsh backup
Does cassandra have a backup command like mysqldump and oracle "alter
tables hot" to backup the schema files?
--
Daniel Curry
Sr Linux Systems Administrator
Arrayent, Inc.
2317 Broadway Street, Suite 20
Redwood City, CA 94063
daniel@arrayent.com
Re: cqlsh backup
Posted by DuyHai Doan <do...@gmail.com>.
*For CQL3 tables*
>echo "describe keyspace <your_keyspace_name>;" > command.cql
>cqlsh -3 -f command.cql > /tmp/schema.txt
*For Thrift column families*
>echo "describe keyspace <your_keyspace_name>;" > command.txt
>cassandra-cli -f command.txt > /tmp/schema.txt
On Sat, Feb 8, 2014 at 12:08 AM, Daniel Curry <da...@arrayent.com>wrote:
> Does cassandra have a backup command like mysqldump and oracle "alter
> tables hot" to backup the schema files?
>
>
>
>
> --
> Daniel Curry
> Sr Linux Systems Administrator
> Arrayent, Inc.
> 2317 Broadway Street, Suite 20
> Redwood City, CA 94063
> daniel@arrayent.com
>
>