summaryrefslogtreecommitdiffstats
path: root/sbin/restore/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a "-D" flag to restore which puts it into "degraded" mode. Thisdwmalone2006-12-051-2/+5
| | | | | | | | | | | | | | | | | | makes restore less efficient, but it makes a bigger effore to read corrupted dumps. Specifiacally, when in degreded mode: 1) Restore shifts the input by 1 byte if it sees a problem, rather than one tape block. 2) It doesn't assume the inodes are stored in ascending order. 3) It turns some panics into warning printfs. We also verify some fields more carefully than before. There's probably more a degreded mode could do, but this seems to help a lot. Approved by: imp, iedowse, mckusick MFC after: 3 weeks
* rscid -> __FBSDID. Mark parameter as __unused when necessary.charnier2005-05-291-2/+3
|
* Sync usage and man page with reality. There's no '-c' command lineimp2005-03-181-5/+5
| | | | | flag today. Maybe we should still retain it, but I'll let others fight that windmill.
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-101-4/+4
|
* Add -P arguments for dump(8) and restore(8) which allow the user togreen2004-04-131-10/+27
| | | | | | | | | | | use backup methods other than files and tapes. The -P argument is a normal sh(1) pipeline with either $DUMP_VOLUME or $RESTORE_VOLUME defined in the environment, respectively. For example, I can back up my home to three DVD+R[W]s as so: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s2e 40028550 10093140 26733126 27% /home green# dump -0 -L -C16 -B4589840 -P 'growisofs -Z /dev/cd0=/dev/fd/0' /home
* Remove advertising clause from University of California Regent's license,markm2004-04-091-4/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Localize 'ls' outputache2003-08-061-0/+3
| | | | Don't set 8bit in quote processing
* Removed all vestiges of KerberosIV.ru2003-05-011-7/+6
|
* De-Kerberise (KerberosIV). KerberosIV is no longer present, andmarkm2003-05-011-10/+0
| | | | | remote backups can still be done with Kerberos authentication using SSH and Kerberos 5.
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-251-0/+1
|
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-211-2/+2
|
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
* more file system > filesystemtrhodes2002-05-161-2/+2
|
* o remove __Pimp2002-03-201-8/+4
| | | | | o Use ANSI function definitions o unifdef -D__STDC__
* Documentation fixes:cjc2001-10-021-5/+5
| | | | | | | - The '-d' option was not documented on the manpage or in the usage message. - The '-N' option was not included in the usage.
* Include missing header files which define functions for which gcc hasdd2001-06-241-0/+1
| | | | builtins (e.g., exit, strcmp).
* Move _PATH_DEFTAPE to <paths.h> to remove all the duplication of definitons,obrien2001-03-081-1/+1
| | | | and remove leading `r'(aw) from it.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add rcsid. Remove unused #includes. Add missing prototypes and others -Wallcharnier1998-07-281-7/+7
| | | | cleanings. Spelling.
* Well, nobody objected, so here's my -u (unlink) flag to restore.jkh1998-05-091-7/+11
|
* Implement Kerberized rcmd for rdump/rrestore. This is lacking thewollman1997-04-291-6/+17
| | | | | | | options one would normally expect to set the realm, enable encryption, and whatnot, but this actually is able to contact the remote server, so at least it's a start. (As a bonus, the stripped static binary is unquestionably exportable.)
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Merge from Lite2peter1997-03-111-14/+19
| | | | | | | | - cleanups, - whiteout support - bug fixes (chflags missing on a few file types etc) The dump/restore folks would want to have a closer look at this, the change is pretty big.
* Yet another buffer overflow.guido1997-01-011-2/+2
| | | | | | 2.2 candidate (and -stable too actually, who does that?) Reviewed by: Warner Losh
* Various security related deltas from OpenBSDimp1997-01-011-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dirs.c: From OpenBSD 1.2, 1.3, 1.5, 1.8, 1.10, 1.11, 1.12 1.2: use unique temporary files; netbsd pr#2544; lukem@supp.cpr.itg.telecom.com.au 1.3: updated patch from lukem@supp.cpr.itg.telecom.com.au to also make -r and -R work again 1.5: mktemp open & fdopen 1.8: /tmp// -> /tmp/ 1.10: Fix strncpy usage and correct strncat length field, from Theo. Also change some occurrence of MAXPATHLEN with sizeof(foo). 1.11: does noone know how to use strncat correctly? 1.12: use mkstemp() From NetBSD: Use open rather than create so we can specify exclusive open mode. main.c: From OpenBSD 1.2, 1.5 1.2: From NetBSD: support $TAPE. 1.5 Set umask to be read only by owner until we set real file permissions. tape.c: From NetBSD: Use open rather than create so we can specify exclusive open mode.
* When running 'rrestore foo', you get a segmentation fault becausejkh1996-07-231-1/+3
| | | | | | | | the obsolete() function to convert dump-style args to getopt-style args doesn't check to see that 'f' really has an argument following the option string in argv[1]. Submitted-By: jmacd
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+345
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud