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