Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/doc/4.1/_sources/operating/backups.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ In this section including sub-sections we shall demonstrate creating snapshots.
-t <tag>, --tag <tag>
The name of the snapshot

--ttl <ttl in TimeUnit>
Set ttl of snapshot

-u <username>, --username <username>
Remote jmx agent username

Expand Down Expand Up @@ -378,7 +381,19 @@ To take snapshots of multiple tables that are in different keyspaces the command
Requested creating snapshot(s) for [catalogkeyspace.journal,cqlkeyspace.t] with snapshot
name [multi-ks] and options {skipFlush=false}
Snapshot directory: multi-ks


Providing TTL for created snapshot
Comment thread
fibersel marked this conversation as resolved.
Outdated
++++++++++++++++++++++++++++++++++
One can provide ttl for created snapshot using ``--ttl`` option.TTL can be set in minutes (m), seconds (s), hours (h) and other TimeUnits. As an example, create snapshots for all tables in ``catalogkeyspace`` and ``cqlkeyspace`` keyspaces and set 3 minutes ttl.
Comment thread
fibersel marked this conversation as resolved.
Outdated

::

[ec2-user@ip-10-0-2-238 ~]$ nodetool snapshot
--tag catalog-cql-ks --ttl 3m catalogkeyspace cqlkeyspace
Requested creating snapshot(s) for [catalogkeyspace, cqlkeyspace] with snapshot
name [catalog-cql-ks] and options {skipFlush=false, ttl=3m}
Snapshot directory: catalog-cql-ks
Comment thread
fibersel marked this conversation as resolved.
Outdated

Listing Snapshots
***************************
To list snapshots use the ``nodetool listsnapshots`` command. All the snapshots that we created in the preceding examples get listed:
Expand Down
16 changes: 16 additions & 0 deletions src/doc/4.1/operating/backups.html
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ <h2>Snapshots<a class="headerlink" href="#snapshots" title="Permalink to this he
-t &lt;tag&gt;, --tag &lt;tag&gt;
The name of the snapshot

--ttl &lt;ttl in TimeUnit&gt;
Set ttl of snapshot

-u &lt;username&gt;, --username &lt;username&gt;
Remote jmx agent username

Expand Down Expand Up @@ -513,6 +516,19 @@ <h4>Taking Snapshot of Multiple Tables from Different Keyspaces<a class="header
</pre></div>
</div>
</div>
<div class="section" id="providing-ttl-for-snapshot">
<h4>Providing TTL for created snapshot<a class="headerlink" href="#providing-ttl-for-created-snapshot" title="Permalink to this headline">¶</a></h4>
<p>One can provide ttl for created snapshot using <code class="docutils literal notranslate"><span class="pre">--ttl</span></code> option.TTL can be set in minutes (m), seconds (s), hours (h) and other TimeUnits.
As an example, create snapshots for all tables in <code class="docutils literal notranslate"><span class="pre">catalogkeyspace</span></code> and <code class="docutils literal notranslate"><span class="pre">cqlkeyspace</span></code> keyspaces and set 3 minutes ttl.
</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>[ec2-user@ip-10-0-2-238 ~]$ nodetool snapshot
--tag catalog-cql-ks --ttl 3m catalogkeyspace cqlkeyspace
Requested creating snapshot(s) for [catalogkeyspace, cqlkeyspace] with snapshot
name [catalog-cql-ks] and options {skipFlush=false, ttl=3m}
Snapshot directory: catalog-cql-ks
</pre></div>
</div>
</div>
</div>
<div class="section" id="listing-snapshots">
<h3>Listing Snapshots<a class="headerlink" href="#listing-snapshots" title="Permalink to this headline">¶</a></h3>
Expand Down