The dumpufsdump Command Backup and Dump Commands
12.4.3 The dumpufsdump Command
Originally a BSD−type command, the dump command is the most common filesystem−related UNIX backup command. Some flavor−colored variations of the command exist among different UNIX platforms, including modified command names on some System V versions: ufsdump or even ufsbackup. Despite the discrepancies in the names, the two commands dump and ufsdump behave the same or almost the same. We will call the command dumpufsdump, just to emphasize their common functions and similar behavior. dumpufsdump keeps track of when it last saved each filesystem and the level at which the filesystem was saved. This information is stored in the file etcdumpdates. A typical entry in this file is: devdisk2e 2 Sun May 8 13:14:56 1998 This entry indicates the filesystem devdisk2e was last backed up on Sunday, May 8, 1998, and it was level 2 backup. If the filesystem cannot be found in this file, it can be assumed that it was not backed up. Here is a real example from a still−active ULTRIX system: 285 devrrz0a 0 Tue Sep 20 00: 38:28 1998 devrrz0h 0 Tue Sep 20 00: 39:53 1998 devrrz1h 0 Tue Sep 20 01: 12:35 1998 devrrz2h 0 Tue Sep 20 01: 37:19 1998 devrra35c 0 Tue Sep 20 02: 25:42 1998 devrra34c 0 Mon Apr 19 16: 02:51 1997 devrrz0a 9 Fri Sep 23 05: 48:50 1998 devrrz0h 9 Fri Sep 23 05: 52:44 1998 devrrz1h 9 Fri Sep 23 06: 08:55 1998 devrrz2h 9 Fri Sep 23 06: 12:54 1998 devrra35c 9 Fri Sep 23 06: 19:45 1998 The file etcdumpdates must exist before the dumpufsdump command is performed, and it must be owned by the user root the best way to create the file the first time using touch etcdumpdates. The general form of the dump command is: dump options arguments special_file or, alternatively: ufsdump options arguments special_file where options A list of options to be used for this backup arguments A list of arguments corresponding to these options; not all options require arguments special_file A block special file corresponding to the mounted filesystem to be backed up on some systems a character special file is requested The dumpufsdump command should be used carefully. Options and corresponding arguments are specified within two separate lists, but the list of arguments must strictly correspond, in order and in number, to the list of options requiring arguments. Failing to observe this rule could have disastrous effects and consequences, including destroying the filesystem. It is highly recommended that you create shell scripts that will automatically invoke dumpufsdump commands with proper options and arguments to avoid human errors. Special attention should be paid to the following two issues in using dumpufsdump: The filesystem to be backed up should always be the last item on the command line. If a tape drive specification accidentally follows the disk drive specification, the filesystem could be corrupted because dump will backup the tape onto the disk. 1. If the tape drive specification is missing, the backup will be performed assuming the default values. On some systems, it is necessary to select the density on the tape drives front panel in addition to specifying the correct special device file dump can unexpectedly run out of tape. 2. At the end the universal advice: check the manual pages for each individual command flavor, because there may be differences in their use. The important dumpufsdump options are: Option Meaning 286 b This option requires an argument, which specifies the blocking factor for tape writing default is 20 blocks per write, for cartridge 126 blocks per write. A block is 512 bytes. c Indicates a cartridge instead of the standard half−inch reel; sets another set of default arguments. d This option requires an argument, which specifies the tape density in bpi bits per inch: 1600 bpi for 12 tape, 1000 bpi for QIC, 54,000 bpi for 8mm tape. If the option is omitted, the default is 1600 BPI. f This option requires an argument, which specifies another dump medium instead of the default tape drive it can be a file or another device. s This option requires an argument, which specifies the size of the backup tape in feet The argument does not correspond literally to the tape size, so the values for different tapes must be read. If the option is omitted, the default is 2300−foot tape. t This option requires an argument, which specifies the number of tracks for a cartridge tape 60MB QIC has 9 tracks; 150MB QIC has 18 tracks. u If dump finishes successfully, this option updates its history file etcdumpdates. W This option asks dumpufsdump to report which filesystems need to be backed up, without taking any action. It reads etcdumpdates and etcfstab to determine what filesystems need backups. If this option is present, dumpufsdump will ignore all other options, except for the dump level. Here are some argument values that produce satisfactory results on a number of typical tape drives. Note that individual options can be in any order; however, the position of each argument depends on the relative position of each option. Tape Command partial 60MB QIC dump cdst 1000 425 9… 150 QIC dump cdst 1000 700 18… 12 tape dump dsb 1600 2300 126… 2GB 4mm tape dump dsb 54000 6000 126… The dumpufsdump command is used in the following way: dump 2usfd 2300 devrmt1 6250 devdisk1d Performs a level 2 backup on the filesystem accessed via dev disk1d, using a 9−track 2300 foot long s tape drive devrmt1 at 6250 BPI density d, then updates the file etcdumpdates u. dump 3usdf 2300 6250 devrmt20 devdisk1d Performs a level 3 backup on the filesystem accessed via dev disk1d using the 9−track 2300 foot long s tape drive devrmt20 at 287 dump 1usdf 1422 devrfd0a devrsd0g Performs a level 1 backup on the filesystem accessed via dev rsd0g to a floppy drivedevrfd0a on a Sun system, then updates the file etcdumpdates. dump 4Wd 6250 devdisk1d Does not back up any filesystem. It will print a complete list of all filesystems indicating the last time each filesystem was backed up, the level at which it was backed up, and whether or not it needs to be backed up at level 4 when the W option is specified, all other options but the level number are ignored.12.4.4 A Few Examples
Parts
» Unix Administration. 7485KB Mar 29 2010 05:04:17 AM
» UNIX Operating System UNIX — Introductory Notes
» Berkeley Standard Distribution — BSD UNIX System V or ATT UNIX
» System Administrators Job UNIX System and Network Administration
» Computing Policies UNIX System and Network Administration
» Legal Acts Administration Guidelines
» Code of Ethics Administration Guidelines
» USENIX System Administrators Guild — SAGE
» In This Book UNIX System and Network Administration
» Introduction The Unix Model — Selected Topics
» Access Classes File ProtectionFile Access
» Default File Mode File ProtectionFile Access
» Plain Regular File Socket Named Pipe
» Special File Names Special File Creation
» Process Types Process Attributes
» Process Life Cycles Processes
» System V ATT Flavored ps Command
» Destroying Processes The UNIX kill command will eliminate a process entirely:
» Becoming a Superuser Communicating with Other Users
» The man Command UNIX Online Documentation
» The uptime Command The uptime command displays:
» Personal Documentation UNIX Administration Starters
» Shell Script Execution UNIX Shell Scripts
» Shell Variables UNIX Shell Scripts
» Double Command−Line Scanning
» Introductory Notes System Startup and Shutdown
» The Bootstrap Program System Startup
» The Kernel Execution System Startup
» System States System Startup
» The Outlook of a Startup Procedure
» Initialization Scripts System Startup
» The BSD rc Scripts BSD Initialization Sequence
» BSD−Like Initialization System V Initialization
» An Example Shutdown Procedures
» Introduction to the UNIX Filesystem
» System V Filesystem Directory Organization
» Mounting a Filesystem home, users
» Dismounting a Filesystem home, users
» Automatic Filesystem Mounting Removable Media Management
» BSD Filesystem Configuration File
» Filesystem Types A Few Other Filesystem Issues
» Swap Space — Paging and Swapping
» Loopback Virtual Filesystem A Few Other Filesystem Issues
» Display Filesystem Statistics: The df Command
» Checking Filesystems: The fsck Command
» Introduction UNIX Filesystem Layout
» Disk Partitions Physical Filesystem Layout
» Filesystem Structures Physical Filesystem Layout
» The mkfs Command Filesystem Creation
» File Identification and Allocation
» File Storage vs. File Transfer
» Reserved Free Space Filesystem Performance Issues
» Logical Volume Manager — AIX Flavor
» Logical Volume Manager — Solaris Flavor
» Redundant Array of Inexpensive Disks RAID
» The Volume Snapshot Snapshot
» The Filesystem Snapshot Snapshot
» Virtual UNIX Filesystem Logical Filesystem Layout
» Disk Space Upgrade UNIX Filesystem Layout
» User Database — File etcpasswd
» Initialization Template Files UNIX Login Initialization
» User Login Initialization Files
» Systemwide Login Initialization Files
» Restricted User Accounts Users and Secondary Groups
» Assigning User Passwords Standard UNIX Users and Groups
» Managing Disk Usage by Users
» System V Accounting Accounting
» AIX−Flavored Accounting Accounting
» Physical Security Passwords UNIX Lines of Defense
» File Permissions UNIX Lines of Defense
» Backups Password Encryption UNIX Lines of Defense
» Setting Password Restrictions UNIX Lines of Defense
» The Wheel Group Secure Terminals — Other Approaches
» History of the Root Account Tracking User Activities
» The syslogd Daemon The Concept of System Logging
» The Configuration File etcsyslog.conf
» Linux Logging Enhancements The logger Command
» Testing System Logging System Logging Configuration
» The last Command Limiting the Growth of Log Files
» BSD Printing Subsystem UNIX Printing Subsystem
» The lp, lpstat, and cancel Commands
» The etcprintcap File BSD Printer Configuration and the Printer Capability Database
» Filters BSD Printer Configuration and the Printer Capability Database
» The Printer Database Directory Hierarchy on System V
» Setting a Remote Printer on HP−UX
» BSD and AIX Cross−Printing Solaris and BSD Cross−Printing
» Third−Party Printer Spooling Systems
» The tput Command The tset, tput, and stty Commands
» The stty Command The tset, tput, and stty Commands
» The tar Command Tape−Related Commands
» The cpio Command Tape−Related Commands
» The dd Command Tape−Related Commands
» The mt Command Magnetic Tape Devices and Special Device Files
» The SVR3 and SVR4 backup Commands
» The fbackup Command Backup and Dump Commands
» The dumpufsdump Command Backup and Dump Commands
» Interactive Restore The restore Commands
» The frecover Command Restoring Files from a Backup
» Tape Control UNIX Backup and Restore
» The NTP Daemon Network Time Distribution
» The crontab Files Network Time Distribution
» The crontab Command Network Time Distribution
» Linux Approach Network Time Distribution
» Programs Scheduled for a Specific Time
» UNIX and Networking Network Fundamentals
» TCPIP and the Internet ISO OSI Reference Model
» TCPIP Protocol Architecture Computer Networks
» Internet Protocol IP Internet Layer and IP Protocol
» Network Access Layer Transport Layer and TCP and UDP Protocols
» Application Layer TCPIP Layers and Protocols
» IP Address Classes Data Delivery
» Dynamic Routing Internet Routing
» Protocols, Ports, and Sockets
» UNIX Database Files Multiplexing
» The arp Command Address Resolution ARP
» The portmapper Daemon The etcrpc File
» The ifconfig Command Configuring the Network Interface
» The netstat Command Configuring the Network Interface
» The inetd Daemon Super Internet Server
» Further Improvements and Development
» Host Names and Addresses Domain Name Service DNS
» The Local Host Table — etchosts
» Handling the NIC Host Table — A Journey into the Past
» Other Resolver Parameters BIND Configuration
» Name Servers UNIX Name Service — BIND
» The Configuration File etcnamed.boot
» The named.local File The named.cache file
» Subdomains and Parenting BIND Version 8.X.X
» The nslookup Interactive Mode
» A Few Examples of nslookup Usage
» Purpose and Concepts Network Information Service NIS
» To Create an NIS Client NIS Domain Name
» The etcnetgroup File DatabasesNIS Maps
» Security Issues NIS Management
» The showmount Command Mounting Remote Filesystems
» An Example The Automount Maps
» The rlogin Command The rcp Command
» The HOME.rhosts File Using UNIX r−Commands — An Example
» SSH Configuration Secure Shell SSH
» Root Access SSH Installation and User Access Setup
» SSH — Version 2 Secure Shell SSH
» Simple Mail Transport Protocol SMTP
» Rewriting an E−mail Address Pattern Matching
» Address Transformation The Parsing of E−mail Addresses
» Testing Rewrite Rules The sendmail −bt Command
» The Debugging Level Checking the Mail Queue
» Mail Subcommands The Mail Program and .mailrc File
» POP Transactions Post Office Protocol POP
» Internet Message Access Protocol IMAP
» Finger Common UNIX Network Applications
» The ping Command Host Connectivity
» The traceroute Command Host Connectivity
» The X Administration Philosophy
» Window Managers An Introduction to the X Window System
» xdm Configuration Files The X Display Managers
» Vendor−Specific X Flavors — a Configuration Example
» XDMCP Queries The Xaccess File
» Other Access Control Mechanisms
» Components of the xdm−Based User X Environment
» Other Startup Methods The User X Environment
» A Permanent X11 Installation
» Introduction to Kernel Reconfiguration
» Kernel Configuration Database Kernel Reconfiguration
» The config Command BSD−Like Kernel Configuration Approach
» HP−UX 10.x Kernel Configuration
» UNIX and Modems Introduction to Modems
» Terminal Lines and Modem Control
» C−Kermit Third−Party Communication Software
» UUCP Versions UUCP Chat−Transfer Session
» The UUCP Daemons UUCP Commands, Daemons, and Related Issues
» The UUCP Spool Directories and Files
» Additional Security in BNU UUCP
» Additional Security in Version 2 UUCP
» Intranet vs. Internet Introduction to Intranet
» Intranet Design Approach Introduction to Intranet
» Life Cycle of a Virus Virus Types
» The Viruswall Implementation Viruswalls
» Application Proxies SOCKS Proxies
» Web Services Intranet Front−End Services
» Other External Services Intranet Front−End Services
» Network Infrastructure and Desktops
» Dynamic Host Configuration Protocol DHCP
» UNIX and Not−UNIX Platform Integration
» HP−UX Installation UNIX Installation Procedures
» Linux Installation UNIX Installation Procedures
» Solaris Patch Installation HP−UX Patch Installation
» Solaris and Lost Root Password HP−UX and Lost Root Password
» Solaris Procedure to Create an Alternate Boot Partition
» Solaris Recovery of the Failed Mirrored Boot Disk
Show more