summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
88ac410)
Added a -v (verbose) mode to dump.
-$Id: CHANGES,v 1.177 2002/05/21 15:48:44 stelian Exp $
+$Id: CHANGES,v 1.178 2002/06/05 13:29:12 stelian Exp $
Changes between versions 0.4b28 and 0.4b29 (released ??????????????)
====================================================================
Changes between versions 0.4b28 and 0.4b29 (released ??????????????)
====================================================================
which makes one able to pipe the output of dump, by the net, to
a remote CD-burner server.
which makes one able to pipe the output of dump, by the net, to
a remote CD-burner server.
-5. Make dump use O_CREAT|O_TRUNC both locally and remotely (over rmt), and
- use GNU's symbolic syntax over rmt instead of numerical values to assure
- multiple platform compatibility.
+5. Made dump use O_CREAT|O_TRUNC both locally and remotely (over rmt),
+ and use GNU's symbolic syntax over rmt instead of numerical values
+ to assure multiple platform compatibility.
+
+6. Documented the -d option in restore.
+
+7. Added a -v (verbose) mode to dump. For now it just prints the number
+ of the inode being dumped, but this could evolve in future versions
+ to include interesting debugging output.
Changes between versions 0.4b27 and 0.4b28 (released April 12, 2002)
====================================================================
Changes between versions 0.4b27 and 0.4b28 (released April 12, 2002)
====================================================================
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: dump.8.in,v 1.40 2002/04/04 08:20:23 stelian Exp $
+.\" $Id: dump.8.in,v 1.41 2002/06/05 13:29:15 stelian Exp $
.\"
.Dd __DATE__
.Dt DUMP 8
.\"
.Dd __DATE__
.Dt DUMP 8
.Nd ext2 filesystem backup
.Sh SYNOPSIS
.Nm dump
.Nd ext2 filesystem backup
.Sh SYNOPSIS
.Nm dump
-.Op Fl 0123456789ackMnqSu
+.Op Fl 0123456789ackMnqSuv
.Op Fl A Ar file
.Op Fl B Ar records
.Op Fl b Ar blocksize
.Op Fl A Ar file
.Op Fl B Ar records
.Op Fl b Ar blocksize
.Pa __DUMPDATES__
may be edited to change any of the fields,
if necessary.
.Pa __DUMPDATES__
may be edited to change any of the fields,
if necessary.
+.It Fl v
+The
+.Fl v
+(verbose) makes
+.Nm dump
+to print extra information which could be helpful in debug sessions.
.It Fl W
.Nm Dump
tells the operator what file systems need to be dumped.
.It Fl W
.Nm Dump
tells the operator what file systems need to be dumped.
* Stelian Pop <stelian@popies.net>, 1999-2000
* Stelian Pop <stelian@popies.net> - Alcôve <www.alcove.com>, 2000-2002
*
* Stelian Pop <stelian@popies.net>, 1999-2000
* Stelian Pop <stelian@popies.net> - Alcôve <www.alcove.com>, 2000-2002
*
- * $Id: dump.h,v 1.38 2002/05/21 15:48:46 stelian Exp $
+ * $Id: dump.h,v 1.39 2002/06/05 13:29:15 stelian Exp $
extern int mflag; /* dump metadata only if possible flag */
extern int Mflag; /* multi-volume flag */
extern int qflag; /* quit on errors flag */
extern int mflag; /* dump metadata only if possible flag */
extern int Mflag; /* multi-volume flag */
extern int qflag; /* quit on errors flag */
+extern int vflag; /* verbose flag */
extern int breademax; /* maximum number of bread errors before we quit */
extern char *eot_script; /* end of volume script fiag */
extern int diskfd; /* disk file descriptor */
extern int breademax; /* maximum number of bread errors before we quit */
extern char *eot_script; /* end of volume script fiag */
extern int diskfd; /* disk file descriptor */
#ifndef lint
static const char rcsid[] =
#ifndef lint
static const char rcsid[] =
- "$Id: main.c,v 1.71 2002/04/04 08:20:23 stelian Exp $";
+ "$Id: main.c,v 1.72 2002/06/05 13:29:15 stelian Exp $";
#endif /* not lint */
#include <config.h>
#endif /* not lint */
#include <config.h>
int mflag; /* dump metadata only if possible */
int Mflag; /* multi-volume flag */
int qflag; /* quit on errors flag */
int mflag; /* dump metadata only if possible */
int Mflag; /* multi-volume flag */
int qflag; /* quit on errors flag */
+int vflag; /* verbose flag */
int breademax = 32; /* maximum number of bread errors before we quit */
char *eot_script; /* end of volume script fiag */
int diskfd; /* disk file descriptor */
int breademax = 32; /* maximum number of bread errors before we quit */
char *eot_script; /* end of volume script fiag */
int diskfd; /* disk file descriptor */
#ifdef USE_QFA
"Q:"
#endif
#ifdef USE_QFA
"Q:"
#endif
#ifdef HAVE_ZLIB
"z::"
#endif
#ifdef HAVE_ZLIB
"z::"
#endif
+ case 'v': /* verbose */
+ vflag = 1;
+ break;
+
case 'W': /* what to do */
case 'w':
lastdump(ch);
case 'W': /* what to do */
case 'w':
lastdump(ch);
*/
if (dp->di_nlink == 0 || dp->di_dtime != 0)
continue;
*/
if (dp->di_nlink == 0 || dp->di_dtime != 0)
continue;
+ if (vflag)
+ msg("dumping directory inode %lu\n", ino);
(void)dumpdirino(dp, ino);
#else
(void)dumpino(dp, ino);
(void)dumpdirino(dp, ino);
#else
(void)dumpino(dp, ino);
* inodes since this is done in dumpino().
*/
#endif
* inodes since this is done in dumpino().
*/
#endif
+ if (vflag) {
+ if (mflag && TSTINO(ino, metainomap))
+ msg("dumping regular inode %lu (meta only)\n", ino);
+ else
+ msg("dumping regular inode %lu\n", ino);
+ }
(void)dumpino(dp, ino, mflag && TSTINO(ino, metainomap));
}
(void)dumpino(dp, ino, mflag && TSTINO(ino, metainomap));
}
#ifdef KERBEROS
"k"
#endif
#ifdef KERBEROS
"k"
#endif
"] [-A file] [-B records] [-b blocksize]\n"
"\t%s [-d density] [-e inode#,inode#,...] [-E file] [-f file]\n"
"\t%s [-h level] [-I nr errors] "
"] [-A file] [-B records] [-b blocksize]\n"
"\t%s [-d density] [-e inode#,inode#,...] [-E file] [-f file]\n"
"\t%s [-h level] [-I nr errors] "
#ifndef lint
static const char rcsid[] =
#ifndef lint
static const char rcsid[] =
- "$Id: main.c,v 1.38 2002/02/04 11:18:46 stelian Exp $";
+ "$Id: main.c,v 1.39 2002/06/05 13:29:15 stelian Exp $";
#endif /* not lint */
#include <config.h>
#endif /* not lint */
#include <config.h>
- "\t%s -C [-c" kerbflag "lMvVy] [-b blocksize] [-D filesystem] [-f file]\n"
+ "\t%s -C [-cd" kerbflag "lMvVy] [-b blocksize] [-D filesystem] [-f file]\n"
"\t%s [-F script] [-L limit] [-s fileno]\n"
"\t%s [-F script] [-L limit] [-s fileno]\n"
- "\t%s -i [-ach" kerbflag "lmMuvVy] [-A file] [-b blocksize] [-f file]\n"
+ "\t%s -i [-acdh" kerbflag "lmMuvVy] [-A file] [-b blocksize] [-f file]\n"
"\t%s [-F script] " qfaflag "[-s fileno]\n"
#ifdef USE_QFA
"\t%s [-F script] " qfaflag "[-s fileno]\n"
#ifdef USE_QFA
- "\t%s -P file [-ach" kerbflag "lmMuvVy] [-A file] [-b blocksize]\n"
+ "\t%s -P file [-acdh" kerbflag "lmMuvVy] [-A file] [-b blocksize]\n"
"\t%s [-f file] [-F script] [-s fileno] [-X filelist] [file ...]\n"
#endif
"\t%s [-f file] [-F script] [-s fileno] [-X filelist] [file ...]\n"
#endif
- "\t%s -r [-c" kerbflag "lMuvVy] [-b blocksize] [-f file] [-F script]\n"
+ "\t%s -r [-cd" kerbflag "lMuvVy] [-b blocksize] [-f file] [-F script]\n"
"\t%s [-s fileno] [-T directory]\n"
"\t%s [-s fileno] [-T directory]\n"
- "\t%s -R [-c" kerbflag "lMuvVy] [-b blocksize] [-f file] [-F script]\n"
+ "\t%s -R [-cd" kerbflag "lMuvVy] [-b blocksize] [-f file] [-F script]\n"
"\t%s [-s fileno] [-T directory]\n"
"\t%s [-s fileno] [-T directory]\n"
- "\t%s -t [-ch" kerbflag "lMuvVy] [-A file] [-b blocksize] [-f file]\n"
+ "\t%s -t [-cdh" kerbflag "lMuvVy] [-A file] [-b blocksize] [-f file]\n"
"\t%s [-F script] " qfaflag "[-s fileno] [-X filelist] [file ...]\n"
"\t%s [-F script] " qfaflag "[-s fileno] [-X filelist] [file ...]\n"
- "\t%s -x [-ach" kerbflag "lmMuvVy] [-A file] [-b blocksize] [-f file]\n"
+ "\t%s -x [-acdh" kerbflag "lmMuvVy] [-A file] [-b blocksize] [-f file]\n"
"\t%s [-F script] " qfaflag "[-s fileno] [-X filelist] [file ...]\n",
__progname, white,
__progname, white,
"\t%s [-F script] " qfaflag "[-s fileno] [-X filelist] [file ...]\n",
__progname, white,
__progname, white,
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: restore.8.in,v 1.25 2002/02/04 11:18:46 stelian Exp $
+.\" $Id: restore.8.in,v 1.26 2002/06/05 13:29:15 stelian Exp $
.\"
.Dd __DATE__
.Dt RESTORE 8
.\"
.Dd __DATE__
.Dt RESTORE 8
.Sh SYNOPSIS
.Nm restore
.Fl C
.Sh SYNOPSIS
.Nm restore
.Fl C
.Op Fl b Ar blocksize
.Op Fl D Ar filesystem
.Op Fl f Ar file
.Op Fl b Ar blocksize
.Op Fl D Ar filesystem
.Op Fl f Ar file
.Op Fl T Ar directory
.Nm restore
.Fl i
.Op Fl T Ar directory
.Nm restore
.Fl i
.Op Fl A Ar file
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl A Ar file
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl T Ar directory
.Nm restore
.Fl P Ar file
.Op Fl T Ar directory
.Nm restore
.Fl P Ar file
.Op Fl A Ar file
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl A Ar file
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op file ...
.Nm restore
.Fl R
.Op file ...
.Nm restore
.Fl R
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl F Ar script
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl F Ar script
.Op Fl T Ar directory
.Nm restore
.Fl r
.Op Fl T Ar directory
.Nm restore
.Fl r
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl F Ar script
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl F Ar script
.Op Fl T Ar directory
.Nm restore
.Fl t
.Op Fl T Ar directory
.Nm restore
.Fl t
.Op Fl A Ar file
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl A Ar file
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op file ...
.Nm restore
.Fl x
.Op file ...
.Nm restore
.Fl x
.Op Fl A Ar file
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl A Ar file
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Fl c
flag disables this check, and only allows reading a dump in the old
format.
.Fl c
flag disables this check, and only allows reading a dump in the old
format.
+.It Fl d
+The
+.Fl d
+(debug)
+flag causes
+.Nm restore
+to print debug information.
.It Fl D Ar filesystem
The
.Fl D
.It Fl D Ar filesystem
The
.Fl D