Merge lp:~stewart/percona-xtrabackup/drop-remote-host into lp:percona-xtrabackup/2.0

Proposed by Stewart Smith
Status: Rejected
Rejected by: Stewart Smith
Proposed branch: lp:~stewart/percona-xtrabackup/drop-remote-host
Merge into: lp:percona-xtrabackup/2.0
Diff against target: 498 lines (+31/-230)
4 files modified
doc/source/innobackupex/how_innobackupex_works.rst (+0/-2)
doc/source/innobackupex/innobackupex_option_reference.rst (+2/-15)
doc/source/innobackupex/remote_backups_ibk.rst (+1/-14)
innobackupex (+28/-199)
To merge this branch: bzr merge lp:~stewart/percona-xtrabackup/drop-remote-host
Reviewer Review Type Date Requested Status
Stewart Smith (community) Disapprove
Review via email: mp+98156@code.launchpad.net

Description of the change

drop remote host support in XB2.0

To post a comment you must log in.
Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

Stewart,

I would think we need to drop it totally on XB2.1
and in 2.0 only to mark it as DEPRECATED.
We should leave enough time for users to accommodate this change.

Revision history for this message
Stewart Smith (stewart) wrote :
Revision history for this message
Stewart Smith (stewart) wrote :

> Stewart,
>
> I would think we need to drop it totally on XB2.1
> and in 2.0 only to mark it as DEPRECATED.
> We should leave enough time for users to accommodate this change.

we are marking deprecated in 1.6...

Revision history for this message
Stewart Smith (stewart) wrote :

We will hold off this merge until XB 2.1

review: Disapprove

Unmerged revisions

403. By Stewart Smith

remove the (now unused) --sshopt and --scpopt options to innobackupex. This goes along with the --remote-host removal, all in favor of streaming backups

402. By Stewart Smith

remove the --remote-host option from innobackupex - it is removed in favor of streaming backups

401. By Stewart Smith

null merge from 1.6

400. By Stewart Smith

merge fix for bug#938594: assert on --prepare --apply-log-only

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/source/innobackupex/how_innobackupex_works.rst'
2--- doc/source/innobackupex/how_innobackupex_works.rst 2012-02-14 08:31:46 +0000
3+++ doc/source/innobackupex/how_innobackupex_works.rst 2012-03-19 07:15:24 +0000
4@@ -53,8 +53,6 @@
5 :file:`mysql-stdout`
6 containing the ``STDOUT`` of the server.
7
8-If the :option:`--remote-host` was set, |innobackupex| will test the connection to the host via :command:`ssh` and create the backup directories. Then the same process will be applied but the log will be written to a temporary file and will be copied via :command:`scp` with the options set by :option:`--scpopt` (``-Cp -c arcfour`` by default).
9-
10 After each copy the files will be deleted. The same rationale is for the :option:`--stream` mode.
11
12 Finally, the binary log position will be printed to ``STDERR`` and |innobackupex| will exit returning 0 if all went OK.
13
14=== modified file 'doc/source/innobackupex/innobackupex_option_reference.rst'
15--- doc/source/innobackupex/innobackupex_option_reference.rst 2012-02-14 08:31:46 +0000
16+++ doc/source/innobackupex/innobackupex_option_reference.rst 2012-03-19 07:15:24 +0000
17@@ -115,17 +115,13 @@
18
19 This option accepts a string argument that specifies the directory in which to save an extra copy of the :file:`xtrabackup_checkpoints` file. It is passed directly to |xtrabackup|'s :option:`--extra-lsndir` option. See the :program:`xtrabackup` documentation for details.
20
21-.. option:: --remote-host
22-
23- This option accepts a string argument that specifies the remote host on which the backup files will be created, by using an ssh connection.
24-
25 .. option:: --stream
26
27 This option accepts a string argument that specifies the format in which to do the streamed backup. The backup will be done to ``STDOUT`` in the specified format. Currently, the only supported format is :command:`tar`. Uses :doc:`tar4ibd <../tar4ibd/tar4ibd_binary>`, which is available in *XtraBackup* distributions. If you specify a path after this option, it will be interpreted as the value of :option:`tmpdir`. If both :option:`--stream` and :option:`--incremental` are passed to innobackupex, the incremental parameters are ignored and a full backup is created.
28
29 .. option:: --tmpdir
30
31- This option accepts a string argument that specifies the location where a temporary file will be stored. It should be used when :option:`--remote-host` or :option:`--stream` is specified. For these options, the transaction log will first be stored to a temporary file, before streaming or copying to a remote host. This option specifies the location where that temporary file will be stored. If the option is not specifed, the default is to use the value of ``tmpdir`` read from the server configuration.
32+ This option accepts a string argument that specifies the location where a temporary file will be stored. It should be used when :option:`--stream` is specified. For these options, the transaction log will first be stored to a temporary file, before streaming or copying to a remote host. This option specifies the location where that temporary file will be stored. If the option is not specifed, the default is to use the value of ``tmpdir`` read from the server configuration.
33
34 .. option:: --tar4ibd
35
36@@ -135,14 +131,6 @@
37
38 This option forces the use of :command:`tar` when creating a streamed backup, rather than :program:`tar4ibd`, which is the default.
39
40-.. option:: --scpopt = '-Cp -c arcfour'
41-
42- This option accepts a string argument that specifies the command line options to pass to :command:`scp` when the option :option:`--remost-host` is specified. If the option is not specified, the default options are ``-Cp -c arcfour``.
43-
44-.. option:: --sshopt
45-
46- This option accepts a string argument that specifies the command line options to pass to :command:`ssh` when the option :option:`--remost-host` is specified.
47-
48 .. option:: --parallel
49
50 This option accepts an integer argument that specifies the number of threads the :program:`xtrabackup` child process should use to back up files concurrently. Note that this option works on file level, that is, if you have several .ibd files, they will be copied in parallel. If you have just single big .ibd file, it will have no effect. It is passed directly to xtrabackup's :option:`xtrabackup --parallel` option. See the :program:`xtrabackup` documentation for details.
51@@ -162,5 +150,4 @@
52 uses :program:`rsync` to copy all non-InnoDB files instead of
53 spawning a separate :program:`cp` for each file, which can be much
54 faster for servers with a large number of databases or tables. This
55- option cannot be used together with :option:`--remote-host` or
56- :option:`--stream`.
57+ option cannot be used together with :option:`--stream`.
58
59=== modified file 'doc/source/innobackupex/remote_backups_ibk.rst'
60--- doc/source/innobackupex/remote_backups_ibk.rst 2012-02-02 20:24:24 +0000
61+++ doc/source/innobackupex/remote_backups_ibk.rst 2012-03-19 07:15:24 +0000
62@@ -2,17 +2,4 @@
63 Sending Backups to Remote Hosts with |innobackupex|
64 =====================================================
65
66-Besides of using the :option:`--stream` for sending the backup to another host via piping (see :doc:`streaming_backups_innobackupex`), |innobackupex| can do it directly with the :option:`--remote-host` ::
67-
68- $ innobackupex --remote-host=REMOTEUSER@REMOTEHOST /path/IN/REMOTE/HOST/to/backup/
69-
70-|innobackupex| will test the connection to ``REMOTEHOST`` via :command:`ssh` and create the backup directories needed as the ``REMOTEUSER`` you specified. The options for :command:`ssh` can be specified with :option:`--sshopt`
71-
72-.. warning:: The path you provide for storing the backup will be created at ``REMOTEHOST``, not at the local host.
73-
74-Then all the log files will be written to a temporary file (you can choose where to store this file with the :option:`--tmpdir` option) and will be copied via :command:`scp`. The options for :command:`scp` can be specified with :option:`--options-scp` (``-Cp -c arcfour`` by default), for example::
75-
76- $ innobackupex --remote-host=REMOTEUSER@REMOTEHOST /path/IN/REMOTE/HOST/to/backup/ \
77- --tmpdir=/tmp --options-scp="-Cp -c arcfour"
78-
79-
80+As of Percona XtraBackup 2.0, you should use the :option:`--stream` optino for sending a backup to another host via piping (see :doc:`streaming_backups_innobackupex`).
81
82=== modified file 'innobackupex'
83--- innobackupex 2012-02-14 04:00:10 +0000
84+++ innobackupex 2012-03-19 07:15:24 +0000
85@@ -96,7 +96,6 @@
86 my $option_incremental_dir = '';
87 my $option_incremental_lsn = '';
88 my $option_extra_lsndir = '';
89-my $option_remote_host = '';
90 my $option_rsync = '';
91 my $option_stream = '';
92 my $stream_cmd = '';
93@@ -104,8 +103,6 @@
94
95 my $option_tar4ibd = '';
96 my $option_force_tar = '';
97-my $option_scp_opt = '-Cp -c arcfour';
98-my $option_ssh_opt = '';
99
100 my $option_parallel = '';
101
102@@ -283,11 +280,7 @@
103 } else {
104 # make a backup of InnoDB and MyISAM tables, indexes and .frm files.
105 $ibbackup_exit_code = backup();
106- if ($option_remote_host) {
107- open(XTRABACKUP_BINARY,
108- "| ssh $option_ssh_opt $option_remote_host 'cat > $backup_dir/$xtrabackup_binary_file'")
109- || die "Failed to open file '$option_remote_host:$backup_dir/$xtrabackup_binary_file': $!";
110- } elsif ($option_stream) {
111+ if ($option_stream) {
112 open XTRABACKUP_BINARY, "> $option_tmpdir/$xtrabackup_binary_file"
113 || die "Cannot open file $option_tmpdir/$xtrabackup_binary_file: $!\n";
114 } else {
115@@ -389,9 +382,7 @@
116 start_ibbackup();
117
118 # wait for ibbackup to suspend itself
119- if (!$option_remote_host) {
120- wait_for_ibbackup_suspend();
121- }
122+ wait_for_ibbackup_suspend();
123
124 # connect to database
125 mysql_open();
126@@ -434,11 +425,7 @@
127
128 # copy ib_lru_dump
129 if (-e "$orig_datadir/ib_lru_dump") {
130- if ($option_remote_host) {
131- print STDERR "$prefix Backing up file 'ib_lru_dump'\n";
132- system("scp $option_scp_opt '$orig_datadir/ib_lru_dump' '$option_remote_host:$backup_dir/ib_lru_dump'")
133- and Die "Failed to scp file 'ib_lru_dump': $!";
134- } elsif ($option_stream) {
135+ if ($option_stream) {
136 print STDERR "$prefix Backing up as tar stream 'ib_lru_dump'\n";
137 system("cd $orig_datadir; tar chf - ib_lru_dump")
138 and Die "Failed to stream 'ib_lru_dump': $!";
139@@ -450,16 +437,6 @@
140 }
141 }
142
143- if ($option_remote_host) {
144- system("scp $option_scp_opt '$tmp_logfile' '$option_remote_host:$backup_dir/xtrabackup_logfile'")
145- and Die "Failed to scp file '$option_remote_host:$backup_dir/xtrabackup_logfile': $!";
146- unlink $tmp_logfile || Die "Failed to delete '$tmp_logfile': $!";
147-
148- system("scp $option_scp_opt '$option_tmpdir/xtrabackup_checkpoints' '$option_remote_host:$backup_dir/xtrabackup_checkpoints'")
149- and Die "Failed to scp file '$option_remote_host:$backup_dir/xtrabackup_checkpoints': $!";
150- unlink "$option_tmpdir/xtrabackup_checkpoints" || Die "Failed to delete '$option_tmpdir/xtrabackup_checkpoints': $!";
151- }
152-
153 print STDERR "\n$prefix Backup created in directory '$backup_dir'\n";
154 if ($mysql_binlog_position) {
155 print STDERR "$prefix MySQL binlog position: $mysql_binlog_position\n";
156@@ -864,14 +841,11 @@
157
158 $options = $options . "--backup --suspend-at-end";
159
160- if (!$option_remote_host && !$option_stream) {
161+ if (!$option_stream) {
162 $options = $options . " --target-dir=$backup_dir";
163 } else {
164 #(datadir) for 'xtrabackup_suspended' and 'xtrabackup_checkpoints'
165 $options = $options . " --target-dir=" . $option_tmpdir;
166- if ($option_remote_host) {
167- $options = $options . " --log-stream";
168- }
169 }
170
171 # prepare command line for running ibbackup
172@@ -921,97 +895,7 @@
173 if ($pid) {
174 # parent process
175 $ibbackup_pid = $pid;
176-
177- if($option_remote_host) {
178- #direct copy to remote
179- my $orig_datadir = get_option(\%config, 'mysqld', 'datadir');
180- my $orig_ibdata_dir =
181- get_option(\%config, 'mysqld', 'innodb_data_home_dir');
182- my $orig_innodb_data_file_path =
183- get_option(\%config, 'mysqld', 'innodb_data_file_path');
184- my $innodb_flush_method =
185- get_option(\%config, 'mysqld', 'innodb_flush_method');
186- my $innodb_use_odirect;
187- $innodb_use_odirect = 1 if $innodb_flush_method =~ m/^(ALL_)?O_DIRECT$/i;
188-
189- my $subdir;
190- my @list;
191-
192- if (system("ssh $option_ssh_opt $option_remote_host test -e $backup_dir/ib_logfile0")
193- == 0) {
194- print STDERR "$prefix Remove $option_remote_host:$backup_dir/ib_logfile*\n";
195- system("ssh $option_ssh_opt $option_remote_host rm $backup_dir/ib_logfile\*")
196- and Die "Failed to rm file '$backup_dir/ib_logfile*': $!";
197- }
198-
199- wait_for_ibbackup_suspend();
200-
201- #InnoDB data files from original InnoDB data directory
202- print STDERR "\n$prefix Starting to backup InnoDB tables and indexes\n";
203- print STDERR "$prefix to '$backup_dir'\n";
204- print STDERR "$prefix from original InnoDB data directory '$orig_ibdata_dir'\n";
205- foreach my $a (split(/;/, $orig_innodb_data_file_path)) {
206- my $path = (split(/:/,$a))[0];
207- $path=~s/([\$\\\" ])/\\$1/g;
208- print STDERR "$prefix Backing up file '$orig_ibdata_dir/$path'\n";
209- system("scp $option_scp_opt '$orig_ibdata_dir/$path' '$option_remote_host:$backup_dir/$path'")
210- and Die "Failed to scp file '$path': $!";
211- }
212-
213- #copy *.ibd files
214- opendir(DIR, $orig_datadir)
215- || Die "Can't open directory '$orig_datadir': $!\n";
216- while (defined($subdir = readdir(DIR))) {
217- my $print_each_file = 0;
218- my $file_c;
219- my $file;
220- if ($subdir eq '.' || $subdir eq '..') { next; }
221- next unless -d "$orig_datadir/$subdir";
222- next unless check_if_required($subdir);
223-
224- @list = glob("$orig_datadir/$subdir/" . '*.ibd');
225-
226- $file_c = @list;
227- if ($file_c <= $backup_file_print_limit) {
228- $print_each_file = 1;
229- } else {
230- print STDERR "$prefix Backing up files " .
231- "'$orig_datadir/$subdir/*.ibd' ($file_c files)\n";
232- }
233- foreach $file (@list) {
234- next unless check_if_required($subdir, $file);
235- if($option_include) {
236- my $table_name;
237-
238- $table_name = substr($file, rindex($file, '/'));
239- $table_name = substr($table_name, 1, rindex($table_name, '.') - 1);
240- $table_name = $subdir . "." . $table_name;
241-
242- if (!($table_name =~ /$option_include/)) {
243- print STDERR "'$file' is skipped.\n";
244- next;
245- }
246- }
247-
248- if ($print_each_file) {
249- print STDERR "$prefix Backing up file '$file'\n";
250- }
251- if (system("ssh $option_ssh_opt $option_remote_host test -e $backup_dir/$subdir")
252- != 0) {
253- system("ssh $option_ssh_opt $option_remote_host mkdir $backup_dir/$subdir");
254- }
255- system("scp $option_scp_opt '$file' '$option_remote_host:$backup_dir/$subdir/'")
256- and Die "Failed to scp file '$file': $!";
257- }
258- }
259- closedir(DIR);
260- }
261 } else {
262- if($option_remote_host) {
263- open(STDOUT, "> $tmp_logfile")
264- || Die "Failed to open file '$tmp_logfile': $!"
265- }
266-
267 # child process
268 exec($cmdline) || Die "Failed to exec ibbackup: $!";
269 }
270@@ -1215,13 +1099,10 @@
271 if (!defined $info_lines[1]) {
272 $info_lines[1] = "";
273 }
274- if (!$option_remote_host) {
275- open(FILE, ">$binlog_info") ||
276- Die "Failed to open file '$binlog_info': $!";
277- } else {
278- open(FILE, "| ssh $option_ssh_opt $option_remote_host 'cat > $binlog_info'") ||
279- Die "Failed to open file '$option_remote_host:$binlog_info': $!";
280- }
281+
282+ open(FILE, ">$binlog_info") ||
283+ Die "Failed to open file '$binlog_info': $!";
284+
285 print FILE "$info_lines[1]\n";
286 close(FILE);
287
288@@ -1312,13 +1193,9 @@
289 }
290
291 # print slave status to a file
292- if (!$option_remote_host) {
293- open(FILE, ">$slave_info") ||
294- Die "Failed to open file '$slave_info': $!";
295- } else {
296- open(FILE, "| ssh $option_ssh_opt $option_remote_host 'cat > $slave_info'") ||
297- Die "Failed to open file '$option_remote_host:$slave_info': $!";
298- }
299+ open(FILE, ">$slave_info") ||
300+ Die "Failed to open file '$slave_info': $!";
301+
302 print FILE "CHANGE MASTER TO MASTER_LOG_FILE='$filename', MASTER_LOG_POS=$position\n";
303 close(FILE);
304
305@@ -1590,13 +1467,10 @@
306
307 if (!$option_apply_log && !$option_copy_back) {
308 # we are making a backup, create a new backup directory
309- if (!$option_remote_host) {
310- $backup_dir = File::Spec->rel2abs(make_backup_dir());
311- } else {
312- $backup_dir = make_backup_dir();
313- }
314+ $backup_dir = File::Spec->rel2abs(make_backup_dir());
315+
316 print STDERR "$prefix Created backup directory $backup_dir\n";
317- if (!$option_remote_host && !$option_stream) {
318+ if (!$option_stream) {
319 $backup_config_file = $backup_dir . '/backup-my.cnf';
320 $suspend_file = $backup_dir . '/xtrabackup_suspended';
321 $binlog_info = $backup_dir . '/xtrabackup_binlog_info';
322@@ -1645,14 +1519,8 @@
323 }
324 $innodb_data_file_path = join(";", @array);
325
326- if (!$option_remote_host) {
327- $root = $backup_dir;
328- open(FILE, "> $filename") || Die "Failed to open file '$filename': $!";
329- } else {
330- $root = `ssh $option_ssh_opt $option_remote_host 'cd $backup_dir; pwd'`;
331- open(FILE, "| ssh $option_ssh_opt $option_remote_host 'cat > $filename'")
332- || Die "Failed to open file '$option_remote_host:$filename': $!";
333- }
334+ $root = $backup_dir;
335+ open(FILE, "> $filename") || Die "Failed to open file '$filename': $!";
336
337 my @option_names = (
338 "innodb_log_files_in_group",
339@@ -1747,14 +1615,11 @@
340 'incremental-lsn=s' => \$option_incremental_lsn,
341 'incremental-dir=s' => \$option_incremental_dir,
342 'extra-lsndir=s' => \$option_extra_lsndir,
343- 'remote-host=s' => \$option_remote_host,
344 'stream=s' => \$option_stream,
345 'rsync' => \$option_rsync,
346 'tmpdir=s' => \$option_tmpdir,
347 'no-lock' => \$option_no_lock,
348 'ibbackup=s' => \$option_ibbackup_binary,
349- 'scpopt=s' => \$option_scp_opt,
350- 'sshopt=s' => \$option_ssh_opt,
351 'force-tar', => \$option_force_tar,
352 'parallel=i' => \$option_parallel,
353 'safe-slave-backup' => \$option_safe_slave_backup,
354@@ -1829,8 +1694,8 @@
355 }
356 }
357
358- if ($option_rsync && ($option_remote_host || $option_stream)) {
359- print STDERR "--rsync doesn't work with --remote-host or --stream\n";
360+ if ($option_rsync && ($option_stream)) {
361+ print STDERR "--rsync doesn't work with --stream\n";
362 exit(1);
363 }
364
365@@ -1858,11 +1723,8 @@
366
367 $dir .= '/' . strftime("%Y-%m-%d_%H-%M-%S", localtime())
368 unless $option_no_timestamp;
369- if (!$option_remote_host) {
370- mkdir($dir, 0777) || Die "Failed to create backup directory $dir: $!";
371- } else {
372- system("ssh $option_ssh_opt $option_remote_host mkdir $dir");
373- }
374+
375+ mkdir($dir, 0777) || Die "Failed to create backup directory $dir: $!";
376
377 # create subdirectories for ibdata files if needed
378 # foreach my $a (split(/;/, $innodb_data_file_path)) {
379@@ -1898,16 +1760,10 @@
380 $path = $root;
381 foreach $a (@{$relative_path}) {
382 $path = $path . "/" . $a;
383- if (!$option_remote_host) {
384- if (! -d $path) {
385- # this directory does not exist, create it !
386- mkdir($path, 0777) || Die "Failed to create backup directory: $!";
387- }
388- } else {
389- if (system("ssh $option_ssh_opt $option_remote_host test -d $path") != 0) {
390- system("ssh $option_ssh_opt $option_remote_host mkdir $path");
391- }
392- }
393+ if (! -d $path) {
394+ # this directory does not exist, create it !
395+ mkdir($path, 0777) || Die "Failed to create backup directory: $!";
396+ }
397 }
398 }
399
400@@ -1982,23 +1838,17 @@
401 while (defined($database = readdir(DIR))) {
402 my $print_each_file = 0;
403 my $file_c;
404- my @scp_files;
405 # skip files that are not database directories
406 if ($database eq '.' || $database eq '..') { next; }
407 next unless -d "$source_dir/$database";
408 next unless check_if_required($database);
409
410- if (!$option_remote_host && !$option_stream) {
411+ if (!$option_stream) {
412 if (! -e "$backup_dir/$database") {
413 # create database directory for the backup
414 mkdir("$backup_dir/$database", 0777)
415 || Die "Couldn't create directory '$backup_dir/$database': $!";
416 }
417- } elsif ($option_remote_host) {
418- if (system("ssh $option_ssh_opt $option_remote_host test -e $backup_dir/$database")
419- != 0) {
420- system("ssh $option_ssh_opt $option_remote_host mkdir $backup_dir/$database");
421- }
422 }
423
424 # copy files of this database
425@@ -2032,15 +1882,12 @@
426 if (!$prep_mode) {
427 $rsync_files_hash{"$database/$file"} = 1;
428 }
429- } elsif (!$option_remote_host && !$option_stream) {
430+ } elsif (!$option_stream) {
431 $src_name = escape_path("$source_dir/$database/$file");
432 $dst_name = escape_path("$backup_dir/$database");
433 # Copy the file - If we get an error and the file actually exists, die with error msg
434 copy_if_exists("$src_name", "$dst_name")
435 or Die "Failed to copy file '$file': $!";
436- } elsif ($option_remote_host) {
437- # Queue up files for one single scp per database.
438- push(@scp_files, "'$file'");
439 } elsif($option_stream) {
440 my $ret = 0;
441 my $file_name = substr($file, rindex($file, '/') + 1);
442@@ -2061,11 +1908,6 @@
443 }
444 }
445 }
446- if ($option_remote_host and @scp_files) {
447- my $scp_file_list = join(" ", map { "$source_dir/$database/$_" } @scp_files);
448- system("scp $option_scp_opt $scp_file_list '$option_remote_host:$backup_dir/$database/'")
449- and Die "Failed to execute \"scp $option_scp_opt $scp_file_list '$option_remote_host:$backup_dir/$database/'\": $!";
450- }
451 }
452 closedir(DIR);
453
454@@ -2622,9 +2464,8 @@
455 [--password=WORD] [--port=PORT] [--socket=SOCKET]
456 [--no-timestamp] [--ibbackup=IBBACKUP-BINARY]
457 [--slave-info] [--stream=tar|xbstream] [--force-tar]
458- [--scpopt=OPTIONS-FOR-SCP] [--sshopt=OPTIONS-FOR-SSH]
459 [--defaults-file=MY.CNF]
460- [--databases=LIST] [--remote-host=HOSTNAME] [--no-lock]
461+ [--databases=LIST] [--no-lock]
462 [--tmpdir=DIRECTORY] [--tables-file=FILE]
463 [--incremental] [--incremental-basedir]
464 [--incremental-dir] [--incremental-lsn]
465@@ -2770,10 +2611,6 @@
466
467 This option is passed directly to xtrabackup's --apply-log-only option. This forces xtrabackup to skip the "rollback" phase and do a "redo" only. This is necessary if the backup will have incremental changes applied to it later. See the xtrabackup documentation for details.
468
469-=item --remote-host=HOSTNAME
470-
471-This option specifies the remote host on which the backup files will be created, by using an ssh connection. The option accepts a string argument.
472-
473 =item --safe-slave-backup
474
475 Stop slave SQL thread and wait to start backup until Slave_open_temp_tables in "SHOW STATUS" is zero. If there are no open temporary tables, the backup will take place, otherwise the SQL thread will be started and stopped until there are no open temporary tables. The backup will fail if Slave_open_temp_tables does not become zero after --safe-slave-backup-timeout seconds. The slave SQL thread will be restarted when the backup finishes.
476@@ -2782,14 +2619,6 @@
477
478 How many seconds --safe-slave-backup should wait for Slave_open_temp_tables to become zero. (default 300)
479
480-=item --scpopt=SCP-OPTIONS
481-
482-This option specifies the command line options to pass to scp when the option --remost-host is specified. The option accepts a string argument. If the option is not specified, the default options are "-Cp -c arcfour".
483-
484-=item --sshopt=SSH-OPTIONS
485-
486-This option specifies the command line options to pass to ssh when the option --remost-host is specified. The option accepts a string argument.
487-
488 =item --slave-info
489
490 This option is useful when backing up a replication slave server. It prints the binary log position and name of the master server. It also writes this information to the "xtrabackup_slave_info" file as a "CHANGE MASTER" command. A new slave for this master can be set up by starting a slave server on this backup and issuing a "CHANGE MASTER" command with the binary log position saved in the "xtrabackup_slave_info" file.
491@@ -2812,7 +2641,7 @@
492
493 =item --tmpdir=DIRECTORY
494
495-This option specifies the location where a temporary file will be stored. The option accepts a string argument. It should be used when --remote-host or --stream is specified. For these options, the transaction log will first be stored to a temporary file, before streaming or copying to a remote host. This option specifies the location where that temporary file will be stored. If the option is not specifed, the default is to use the value of tmpdir read from the server configuration.
496+This option specifies the location where a temporary file will be stored. The option accepts a string argument. It should be used when --stream is specified. For these options, the transaction log will first be stored to a temporary file, before streaming or copying to a remote host. This option specifies the location where that temporary file will be stored. If the option is not specifed, the default is to use the value of tmpdir read from the server configuration.
497
498 =item --use-memory=B
499

Subscribers

People subscribed via source and target branches