Skip to content

Commit d650124

Browse files
author
Jesse Seldess
authored
Merge pull request cockroachdb#3365 from cockroachdb/copy-to-clipboard-updates
Copy to clipboard updates
2 parents 25ec78e + d9289cd commit d650124

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

v2.0/backup.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ The `BACKUP` process minimizes its impact to the cluster's performance by distri
7676

7777
For best performance, we also recommend always starting backups with a specific [timestamp](timestamp.html) at least 10 seconds in the past. For example:
7878

79+
{% include copy-clipboard.html %}
7980
~~~ sql
8081
> BACKUP...AS OF SYSTEM TIME '2017-06-09 16:13:55.571516+00:00';
8182
~~~
@@ -99,7 +100,7 @@ After the backup has been initiated, you can control it with [`PAUSE JOB`](pause
99100
## Synopsis
100101

101102
<div>
102-
{% include sql/{{ page.version.version }}/diagrams/backup.html %}
103+
{% include sql/{{ page.version.version }}/diagrams/backup.html %}
103104
</div>
104105

105106
{{site.data.alerts.callout_info}}The <code>BACKUP</code> statement cannot be used within a <a href=transactions.html>transaction</a>.{{site.data.alerts.end}}
@@ -132,6 +133,7 @@ Per our guidance in the [Performance](#performance) section, we recommend starti
132133

133134
### Backup a Single Table or View
134135

136+
{% include copy-clipboard.html %}
135137
~~~ sql
136138
> BACKUP bank.customers \
137139
TO 'gs://acme-co-backup/database-bank-2017-03-27-weekly' \
@@ -140,6 +142,7 @@ AS OF SYSTEM TIME '2017-03-26 23:59:00';
140142

141143
### Backup Multiple Tables
142144

145+
{% include copy-clipboard.html %}
143146
~~~ sql
144147
> BACKUP bank.customers, bank.accounts \
145148
TO 'gs://acme-co-backup/database-bank-2017-03-27-weekly' \
@@ -148,6 +151,7 @@ AS OF SYSTEM TIME '2017-03-26 23:59:00';
148151

149152
### Backup an Entire Database
150153

154+
{% include copy-clipboard.html %}
151155
~~~ sql
152156
> BACKUP DATABASE bank \
153157
TO 'gs://acme-co-backup/database-bank-2017-03-27-weekly' \
@@ -156,6 +160,7 @@ AS OF SYSTEM TIME '2017-03-26 23:59:00';
156160

157161
### Backup with Revision History<span class="version-tag">New in v2.0</span>
158162

163+
{% include copy-clipboard.html %}
159164
~~~ sql
160165
> BACKUP DATABASE bank \
161166
TO 'gs://acme-co-backup/database-bank-2017-03-27-weekly' \
@@ -166,6 +171,7 @@ AS OF SYSTEM TIME '2017-03-26 23:59:00' WITH revision_history;
166171

167172
Incremental backups must be based off of full backups you've already created.
168173

174+
{% include copy-clipboard.html %}
169175
~~~ sql
170176
> BACKUP DATABASE bank \
171177
TO 'gs://acme-co-backup/db/bank/2017-03-29-nightly' \
@@ -175,6 +181,7 @@ INCREMENTAL FROM 'gs://acme-co-backup/database-bank-2017-03-27-weekly', 'gs://ac
175181

176182
### Create Incremental Backups with Revision History<span class="version-tag">New in v2.0</span>
177183

184+
{% include copy-clipboard.html %}
178185
~~~ sql
179186
> BACKUP DATABASE bank \
180187
TO 'gs://acme-co-backup/database-bank-2017-03-29-nightly' \

v2.0/experimental-audit.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For a detailed description of exactly what is logged, see the [Audit Log File Fo
2222
## Synopsis
2323

2424
<div>
25-
{% include sql/{{page.version.version}}/diagrams/experimental_audit.html %}
25+
{% include sql/{{page.version.version}}/diagrams/experimental_audit.html %}
2626
</div>
2727

2828
## Required Privileges
@@ -89,6 +89,7 @@ If your deployment requires particular lifecycle and access policies for audit l
8989

9090
Let's say you have a `customers` table that contains personally identifiable information (PII). To turn on audit logs for that table, run the following command:
9191

92+
{% include copy-clipboard.html %}
9293
~~~ sql
9394
ALTER TABLE customers EXPERIMENTAL_AUDIT SET READ WRITE;
9495
~~~
@@ -112,6 +113,7 @@ For a more detailed example, see [SQL Audit Logging](sql-audit-logging.html).
112113

113114
To turn off logging, issue the following command:
114115

116+
{% include copy-clipboard.html %}
115117
~~~ sql
116118
ALTER TABLE customers EXPERIMENTAL_AUDIT SET OFF;
117119
~~~

0 commit comments

Comments
 (0)