Remove options for dry run
This commit is contained in:
parent
453ff73ae8
commit
b00704f156
10
bin/backup
10
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"
|
||||
|
10
bin/rbackup
10
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user