a89759b971a6dd08719ffbbc2d044eb2a62b7500
[debian/amanda] / recover-src / help.c
1 /*
2  * Amanda, The Advanced Maryland Automatic Network Disk Archiver
3  * Copyright (c) 1991-1998, 2000 University of Maryland at College Park
4  * All Rights Reserved.
5  *
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.
15  *
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.
22  *
23  * Authors: the Amanda Development Team.  Its members are listed in a
24  * file named AUTHORS, in the root directory of this distribution.
25  */
26 /*
27  * $Id: help.c,v 1.8 2002/03/06 19:23:20 martinea Exp $
28  *
29  * implements the "help" command in amrecover
30  */
31
32 #include "amrecover.h"
33
34 /* print a list of valid commands */
35 void help_list P((void))
36 {
37     printf("valid commands are:\n\n");
38
39     printf("add path1 ...     - add to extraction list (shell wildcards)\n");
40     printf("addx path1 ...    - add to extraction list (regular expressions)\n");
41     printf("cd directory      - change cwd on virtual file system (shell wildcards)\n");
42     printf("cdx directory     - change cwd on virtual file system (regular expressions)\n");
43     printf("clear             - clear extraction list\n");
44     printf("delete path1 ...  - delete from extraction list (shell wildcards)\n");
45     printf("deletex path1 ... - delete from extraction list (regular expressions)\n");
46     printf("extract           - extract selected files from tapes\n");
47     printf("exit\n");
48     printf("help\n");
49     printf("history           - show dump history of disk\n");
50     printf("list [filename]   - show extraction list, optionally writing to file\n");
51     printf("lcd directory     - change cwd on local file system\n");
52     printf("ls                - list directory on virtual file system\n");
53     printf("lpwd              - show cwd on local file system\n");
54     printf("mode              - show the method used to extract SMB shares\n");
55     printf("pwd               - show cwd on virtual file system\n");
56     printf("quit\n");
57     printf("listdisk [diskdevice] - list disks\n");
58     printf("setdate {YYYY-MM-DD|--MM-DD|---DD} - set date of look\n");
59     printf("setdisk diskname [mountpoint] - select disk on dump host\n");
60     printf("sethost host      - select dump host\n");
61     printf("settape [host:][device|default] - select tape server and/or device\n");
62     printf("setmode smb|tar   - select the method used to extract SMB shares\n");
63     printf("\n");
64 }