<varlistentry>
<term><option>-N</option></term>
- <term><option>--nosync</option></term>
+ <term><option>--no-sync</option></term>
<listitem>
<para>
By default, <command>initdb</command> will wait for all files to be
<varlistentry>
<term><option>-n</option></term>
- <term><option>--noclean</option></term>
+ <term><option>--no-clean</option></term>
<listitem>
<para>
By default, when <command>initdb</command>
<varlistentry>
<term><option>-n</option></term>
- <term><option>--noclean</option></term>
+ <term><option>--no-clean</option></term>
<listitem>
<para>
By default, when <command>pg_basebackup</command> aborts with an
<varlistentry>
<term><option>-N</option></term>
- <term><option>--nosync</option></term>
+ <term><option>--no-sync</option></term>
<listitem>
<para>
By default, <command>pg_basebackup</command> will wait for all files
printf(_(" -d, --debug generate lots of debugging output\n"));
printf(_(" -k, --data-checksums use data page checksums\n"));
printf(_(" -L DIRECTORY where to find the input files\n"));
- printf(_(" -n, --noclean do not clean up after errors\n"));
- printf(_(" -N, --nosync do not wait for changes to be written safely to disk\n"));
+ printf(_(" -n, --no-clean do not clean up after errors\n"));
+ printf(_(" -N, --no-sync do not wait for changes to be written safely to disk\n"));
printf(_(" -s, --show show internal settings\n"));
printf(_(" -S, --sync-only only sync data directory\n"));
printf(_("\nOther options:\n"));
{"version", no_argument, NULL, 'V'},
{"debug", no_argument, NULL, 'd'},
{"show", no_argument, NULL, 's'},
- {"noclean", no_argument, NULL, 'n'},
- {"nosync", no_argument, NULL, 'N'},
+ {"noclean", no_argument, NULL, 'n'}, /* for backwards compatibility */
+ {"no-clean", no_argument, NULL, 'n'},
+ {"nosync", no_argument, NULL, 'N'}, /* for backwards compatibility */
+ {"no-sync", no_argument, NULL, 'N'},
{"sync-only", no_argument, NULL, 'S'},
{"xlogdir", required_argument, NULL, 'X'},
{"data-checksums", no_argument, NULL, 'k'},
break;
case 'n':
noclean = true;
- printf(_("Running in noclean mode. Mistakes will not be cleaned up.\n"));
+ printf(_("Running in no-clean mode. Mistakes will not be cleaned up.\n"));
break;
case 'N':
do_sync = false;
printf(_(" -c, --checkpoint=fast|spread\n"
" set fast or spread checkpointing\n"));
printf(_(" -l, --label=LABEL set backup label\n"));
- printf(_(" -n, --noclean do not clean up after errors\n"));
- printf(_(" -N, --nosync do not wait for changes to be written safely to disk\n"));
+ printf(_(" -n, --no-clean do not clean up after errors\n"));
+ printf(_(" -N, --no-sync do not wait for changes to be written safely to disk\n"));
printf(_(" -P, --progress show progress information\n"));
printf(_(" -v, --verbose output verbose messages\n"));
printf(_(" -V, --version output version information, then exit\n"));
{"gzip", no_argument, NULL, 'z'},
{"compress", required_argument, NULL, 'Z'},
{"label", required_argument, NULL, 'l'},
- {"noclean", no_argument, NULL, 'n'},
- {"nosync", no_argument, NULL, 'N'},
+ {"no-clean", no_argument, NULL, 'n'},
+ {"no-sync", no_argument, NULL, 'N'},
{"dbname", required_argument, NULL, 'd'},
{"host", required_argument, NULL, 'h'},
{"port", required_argument, NULL, 'p'},
$node->command_fails(
[ 'pg_basebackup', '-D', "$tempdir/backup", '-n' ],
- 'failing run with noclean option');
+ 'failing run with no-clean option');
ok(-d "$tempdir/backup", 'backup directory was created and left behind');
print "# Taking pg_basebackup $backup_name from node \"$name\"\n";
TestLib::system_or_bail('pg_basebackup', '-D', $backup_path, '-p', $port,
- '-x', '--nosync');
+ '-x', '--no-sync');
print "# Backup finished\n";
}
/* initdb */
header(_("initializing database system"));
snprintf(buf, sizeof(buf),
- "\"%s%sinitdb\" -D \"%s/data\" --noclean --nosync%s%s > \"%s/log/initdb.log\" 2>&1",
+ "\"%s%sinitdb\" -D \"%s/data\" --no-clean --no-sync%s%s > \"%s/log/initdb.log\" 2>&1",
bindir ? bindir : "",
bindir ? "/" : "",
temp_instance,