From b00704f1564c7cdb080d68a0d4bc93dd0b59737a Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Fri, 15 Nov 2019 10:22:21 -0800 Subject: [PATCH] Remove options for dry run --- bin/backup | 10 ---------- bin/rbackup | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/bin/backup b/bin/backup index 9ed64f0..efa88ac 100644 --- a/bin/backup +++ b/bin/backup @@ -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" diff --git a/bin/rbackup b/bin/rbackup index 89169cc..a3c6fb5 100644 --- a/bin/rbackup +++ b/bin/rbackup @@ -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"