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