diff options
author | dillon <dillon@FreeBSD.org> | 2001-07-08 19:45:20 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-07-08 19:45:20 +0000 |
commit | 2b51f516c8e58b0d7552d577b2cda8faf3066999 (patch) | |
tree | 17894ce5ed2fa4e1c780bbecd927160438388e42 /sbin | |
parent | de47f9436450d4a8920b2430e1f38438550eba50 (diff) | |
download | FreeBSD-src-2b51f516c8e58b0d7552d577b2cda8faf3066999.zip FreeBSD-src-2b51f516c8e58b0d7552d577b2cda8faf3066999.tar.gz |
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
Diffstat (limited to 'sbin')
-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 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; |