From 2b51f516c8e58b0d7552d577b2cda8faf3066999 Mon Sep 17 00:00:00 2001 From: dillon Date: Sun, 8 Jul 2001 19:45:20 +0000 Subject: Add a -D option to dump, allowing the path for the /etc/dumpdates file to be changed, so independant entities backing up the same thing to different media can be made not to trip over each other. MFC after: 3 days --- sbin/dump/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sbin/dump') diff --git a/sbin/dump/main.c b/sbin/dump/main.c index 549f1e9..210e518 100644 --- a/sbin/dump/main.c +++ b/sbin/dump/main.c @@ -123,9 +123,9 @@ main(argc, argv) obsolete(&argc, &argv); #ifdef KERBEROS -#define optstring "0123456789aB:b:cd:f:h:kns:T:uWw" +#define optstring "0123456789aB:b:cd:f:h:kns:T:uWwD:" #else -#define optstring "0123456789aB:b:cd:f:h:ns:T:uWw" +#define optstring "0123456789aB:b:cd:f:h:ns:T:uWwD:" #endif while ((ch = getopt(argc, argv, optstring)) != -1) #undef optstring @@ -164,6 +164,10 @@ main(argc, argv) tape = optarg; break; + case 'D': + dumpdates = optarg; + break; + case 'h': honorlevel = numarg("honor level", 0L, 10L); break; -- cgit v1.1