2 * Amanda, The Advanced Maryland Automatic Network Disk Archiver
3 * Copyright (c) 1991-1998, 2000 University of Maryland at College Park
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of U.M. not be used in advertising or
11 * publicity pertaining to distribution of the software without specific,
12 * written prior permission. U.M. makes no representations about the
13 * suitability of this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
16 * U.M. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL U.M.
18 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
20 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
21 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 * Authors: the Amanda Development Team. Its members are listed in a
24 * file named AUTHORS, in the root directory of this distribution.
27 * $Id: help.c,v 1.2 2006/05/25 01:47:13 johnfranks Exp $
29 * implements the "help" command in amrecover
33 #include "amrecover.h"
35 /* print a list of valid commands */
39 printf("valid commands are:\n\n");
41 printf("add path1 ... - add to extraction list (shell wildcards)\n");
42 printf("addx path1 ... - add to extraction list (regular expressions)\n");
43 printf("cd directory - change cwd on virtual file system (shell wildcards)\n");
44 printf("cdx directory - change cwd on virtual file system (regular expressions)\n");
45 printf("clear - clear extraction list\n");
46 printf("delete path1 ... - delete from extraction list (shell wildcards)\n");
47 printf("deletex path1 ... - delete from extraction list (regular expressions)\n");
48 printf("extract - extract selected files from tapes\n");
51 printf("history - show dump history of disk\n");
52 printf("list [filename] - show extraction list, optionally writing to file\n");
53 printf("lcd directory - change cwd on local file system\n");
54 printf("ls - list directory on virtual file system\n");
55 printf("lpwd - show cwd on local file system\n");
56 printf("mode - show the method used to extract SMB shares\n");
57 printf("pwd - show cwd on virtual file system\n");
59 printf("listhost - list hosts\n");
60 printf("listdisk [diskdevice] - list disks\n");
61 printf("setdate {YYYY-MM-DD|--MM-DD|---DD} - set date of look\n");
62 printf(" {YYYY-MM-DD-HH-MM-SS} - set date of look\n");
63 printf("setdisk diskname [mountpoint] - select disk on dump host\n");
64 printf("sethost host - select dump host\n");
65 printf("settape [host:][device|default] - select tape server and/or device\n");
66 printf("setmode smb|tar - select the method used to extract SMB shares\n");