exit(2);
}
+ if (dryrun)
+ pg_log_info("Executing in dry-run mode.\n"
+ "No files will be removed.");
+
/*
* Check archive exists and other initialization if required.
*/
pg_log_error_hint("Try \"%s --help\" for more information.", progname);
exit(1);
}
+
+ if (dry_run)
+ pg_log_info("Executing in dry-run mode.\n"
+ "The target directory will not be modified.");
+
pg_log_info("validating publisher connection string");
pub_base_conninfo = get_base_conninfo(opt.pub_conninfo_str,
&dbname_conninfo);
if (opt.no_manifest)
opt.manifest_checksums = CHECKSUM_TYPE_NONE;
+ if (opt.dry_run)
+ pg_log_info("Executing in dry-run mode.\n"
+ "The target directory will not be modified.");
+
/* Check that the platform supports the requested copy method. */
if (opt.copy_method == COPY_METHOD_CLONE)
{
atexit(disconnect_atexit);
- /*
- * Ok, we have all the options and we're ready to start. First, connect to
- * remote server.
- */
+ /* Ok, we have all the options and we're ready to start. */
+ if (dry_run)
+ pg_log_info("Executing in dry-run mode.\n"
+ "The target directory will not be modified.");
+
+ /* First, connect to remote server. */
if (connstr_source)
{
conn = PQconnectdb(connstr_source);