diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2001-07-08 19:45:20 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2001-07-08 19:45:20 +0000 |
commit | 3860f7810d7b4dee7f77981951d0438d3bffb16f (patch) | |
tree | 17894ce5ed2fa4e1c780bbecd927160438388e42 /sbin/dump | |
parent | 89349143ab793590f3571069c2e88136c09cd733 (diff) | |
download | src-3860f7810d7b4dee7f77981951d0438d3bffb16f.tar.gz src-3860f7810d7b4dee7f77981951d0438d3bffb16f.zip |
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
Notes
Notes:
svn path=/head/; revision=79427
Diffstat (limited to 'sbin/dump')
-rw-r--r-- | sbin/dump/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c index 549f1e989a31..210e518df2bb 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; |