You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v2.0/backup.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@ The `BACKUP` process minimizes its impact to the cluster's performance by distri
76
76
77
77
For best performance, we also recommend always starting backups with a specific [timestamp](timestamp.html) at least 10 seconds in the past. For example:
78
78
79
+
{% include copy-clipboard.html %}
79
80
~~~sql
80
81
> BACKUP...AS OF SYSTEM TIME'2017-06-09 16:13:55.571516+00:00';
81
82
~~~
@@ -99,7 +100,7 @@ After the backup has been initiated, you can control it with [`PAUSE JOB`](pause
99
100
## Synopsis
100
101
101
102
<div>
102
-
{% include sql/{{ page.version.version }}/diagrams/backup.html %}
103
+
{% include sql/{{ page.version.version }}/diagrams/backup.html %}
103
104
</div>
104
105
105
106
{{site.data.alerts.callout_info}}The <code>BACKUP</code> statement cannot be used within a <ahref=transactions.html>transaction</a>.{{site.data.alerts.end}}
@@ -132,6 +133,7 @@ Per our guidance in the [Performance](#performance) section, we recommend starti
132
133
133
134
### Backup a Single Table or View
134
135
136
+
{% include copy-clipboard.html %}
135
137
~~~sql
136
138
> BACKUP bank.customers \
137
139
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';
140
142
141
143
### Backup Multiple Tables
142
144
145
+
{% include copy-clipboard.html %}
143
146
~~~sql
144
147
> BACKUP bank.customers, bank.accounts \
145
148
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';
148
151
149
152
### Backup an Entire Database
150
153
154
+
{% include copy-clipboard.html %}
151
155
~~~sql
152
156
> BACKUP DATABASE bank \
153
157
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';
156
160
157
161
### Backup with Revision History<spanclass="version-tag">New in v2.0</span>
158
162
163
+
{% include copy-clipboard.html %}
159
164
~~~sql
160
165
> BACKUP DATABASE bank \
161
166
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;
166
171
167
172
Incremental backups must be based off of full backups you've already created.
168
173
174
+
{% include copy-clipboard.html %}
169
175
~~~sql
170
176
> BACKUP DATABASE bank \
171
177
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
175
181
176
182
### Create Incremental Backups with Revision History<spanclass="version-tag">New in v2.0</span>
177
183
184
+
{% include copy-clipboard.html %}
178
185
~~~sql
179
186
> BACKUP DATABASE bank \
180
187
TO 'gs://acme-co-backup/database-bank-2017-03-29-nightly' \
Copy file name to clipboardExpand all lines: v2.0/experimental-audit.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ For a detailed description of exactly what is logged, see the [Audit Log File Fo
22
22
## Synopsis
23
23
24
24
<div>
25
-
{% include sql/{{page.version.version}}/diagrams/experimental_audit.html %}
25
+
{% include sql/{{page.version.version}}/diagrams/experimental_audit.html %}
26
26
</div>
27
27
28
28
## Required Privileges
@@ -89,6 +89,7 @@ If your deployment requires particular lifecycle and access policies for audit l
89
89
90
90
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:
91
91
92
+
{% include copy-clipboard.html %}
92
93
~~~sql
93
94
ALTERTABLE customers EXPERIMENTAL_AUDIT SET READ WRITE;
94
95
~~~
@@ -112,6 +113,7 @@ For a more detailed example, see [SQL Audit Logging](sql-audit-logging.html).
0 commit comments