diff options
author | crunchy <crunchy> | 2003-06-27 12:21:21 +0000 |
---|---|---|
committer | crunchy <crunchy> | 2003-06-27 12:21:21 +0000 |
commit | c6c22c4fadb3000453389f3ecf471392674adfd1 (patch) | |
tree | 8e9b5720b0c8474226dae99decfbd4c82f657d8d /mpiosh/global.c | |
parent | 021de49f8e3d1c3b9f8e6e13df0ee7f2552c7b7a (diff) | |
download | mpiosh-c6c22c4fadb3000453389f3ecf471392674adfd1.tar.gz mpiosh-c6c22c4fadb3000453389f3ecf471392674adfd1.tar.bz2 mpiosh-c6c22c4fadb3000453389f3ecf471392674adfd1.zip |
add backup and restore commands; little bug fix and clean up. Need to be tested! Just give me 5 minutes, please!
Diffstat (limited to 'mpiosh/global.c')
-rw-r--r-- | mpiosh/global.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mpiosh/global.c b/mpiosh/global.c index dc4ad45..f589114 100644 --- a/mpiosh/global.c +++ b/mpiosh/global.c @@ -2,7 +2,7 @@ * * Author: Andreas Buesching <crunchy@tzi.de> * - * $Id: global.c,v 1.13 2003/06/26 19:53:59 germeier Exp $ + * $Id: global.c,v 1.14 2003/06/27 12:21:21 crunchy Exp $ * * Copyright (C) 2001 Andreas Büsching <crunchy@tzi.de> * @@ -36,6 +36,7 @@ int mpiosh_cancel_ack = 0; /* configuration filenames */ const char *CONFIG_GLOBAL = SYSCONFDIR "/mpio/"; const char *CONFIG_USER = "~/.mpio/"; +const char *CONFIG_BACKUP = "~/.mpio/backup/"; const char *CONFIG_FILE = "mpioshrc"; const char *CONFIG_HISTORY = "history"; @@ -136,6 +137,12 @@ struct mpiosh_cmd_t commands[] = { " dump FAT, directory, spare area and the first 0x100 of the\n" " selected memory card", mpiosh_cmd_dump_mem, NULL }, + { "backup", NULL, NULL, + " create a backup of all known configuration files.", + mpiosh_cmd_backup, NULL }, + { "restore", NULL, NULL, + " restore an existing backup of all known configuration files.", + mpiosh_cmd_restore, NULL }, #if 0 /* deactivated for the 0.6.0 release because the code is incomplete! -mager */ { "config", (char *[]) { "conf", NULL }, "[read|write|show]", |