Remove options for dry run

This commit is contained in:
Eric Torres 2019-11-15 10:22:21 -08:00
parent 453ff73ae8
commit b00704f156
2 changed files with 0 additions and 20 deletions

View File

@ -6,7 +6,6 @@ Command-Line Arguments
======================
-c, --use-checksums use rsync's checksum feature to detect file changes
-d, --dry-run make this backup a dry run
--debug show debug messages
-n, --name name to give to the backup snapshot
-s, --run-post-sync run sync syscall after backup
@ -28,7 +27,6 @@ from rbackup.struct.repository import Repository
# ========== Constants ==========
EXTRA_RSYNC_OPTS = {
"dry_run": "--dry-run",
"delete": "--delete-after",
"checksum": "--checksum",
"update": "--update",
@ -61,14 +59,6 @@ def parse_cmdline_arguments(**kwargs):
const=EXTRA_RSYNC_OPTS["checksum"],
help="use rsync's checksumming feature to look for changed files",
)
parser.add_argument(
"-d",
"--dry-run",
action="append_const",
dest="extra_rsync_opts",
const=EXTRA_RSYNC_OPTS["dry_run"],
help="pass --dry-run to rsync",
)
parser.add_argument("--debug", action="store_true", help="log debug messages")
parser.add_argument(
"-n", "--name", default=None, help="name to give to the snapshot"

View File

@ -7,7 +7,6 @@ Command-Line Arguments
======================
-c, --use-checksums use rsync's checksum feature to detect file changes
-d, --dry-run make this backup a dry run
--debug show debug messages
-n, --name name to give to the backup snapshot
-p, --port port that ssh on the destination is listening on
@ -36,7 +35,6 @@ from rbackup.struct.repository import Repository
# ========== Constants ==========
LOGFORMAT = "==> %(levelname)s %(message)s"
EXTRA_RSYNC_OPTS = {
"dry_run": "--dry-run",
"delete": "--delete-after",
"checksum": "--checksum",
"update": "--update",
@ -69,14 +67,6 @@ def parse_cmdline_arguments(**kwargs):
const=EXTRA_RSYNC_OPTS["checksum"],
help="use rsync's checksumming feature to look for changed files",
)
parser.add_argument(
"-d",
"--dry-run",
action="append_const",
dest="extra_rsync_opts",
const=EXTRA_RSYNC_OPTS["dry_run"],
help="pass --dry-run to rsync",
)
parser.add_argument("--debug", action="store_true", help="log debug messages")
parser.add_argument(
"-n", "--name", default=None, help="name to give to the snapshot"