Solaris Data Backup Command

xiaoxiao2021-03-06  83

Tape Equipment Name: / DEV / RMT / 0 / DEV / RMT / 0N (without riding) floppy disk device name: / dev / fd0ufsdump command to do full or incremental dumps for the entire file system. Fully dump is the entire file The system is backed up. The incremental dump is backed up for the newly created or modified file .ufsdump command provides a different level of dump, from 0 to 9. Dump level to determine which file backups .0 designated complete transfer Store, 1 to 9 specify different levels of incremental dumps. For example, incremental dump (level 1) will back up files after the last low level (level 0) dump. For file system When backed up, the system should be transferred to the run level S (single user). If the system is running at runtime 3, the file may be in use, so it may cause an invalid backup # UFSDUMP 0UF / DEV / RMT / 0 / Export / Home0 Specify 0 (Full) Dump .u update file / etc / dumpdates, to record successful dumps. F and the following / DEV / RMT / 0 parameter determine the dump tape device ./dev/rmt/0 dump tape Equipment ./export/home Specifies the file system to be dicted .ufsrestore Command UFSRESTORE command Copy file from the backup tape to the current directory. UFSRESTORE command can be used to overload the entire file system or a single or more backup A file. UFSRESTORE commands Options Use to specify the path name of the tape device name and the recovered file. Recovery process # cd / newdir # ufstore tuf / dev / rmt / 0tar command tar command is a user-level backup command for backup and recovery Document or directory. Command format: tar options Tape_Device_name [filename] Option C- Create new document V-display path T-Display file list F-specified device X-extraction file I-interactive formula 1) Backup process TAR CVF / DEV / RMT / 0 * 2) Recovery Process: TAR XVF / DEV / RMT / 03) Directory Copy TAR CVF - MyDir | (CD NewDir; Tar XVF -) 4) Off-site copy (must be trusted users) TAR CVF - MyDir | RSH Remote The tar xvf -cpio command cpio (copy in / out) command is a user-level command that can generate multi-volume backups. Command format: cpio -ov> Tape_Device_namecpio -i [vt] / dev / rmt / 0find command provides files to the cpio command and The list of directory names.-O option indicates that it is read from the standard output ./dev/rmt/ 0 Parameter Determine the tape device. Example: Back up the primary directory to the tape with the FIND and CPIO commands: Recovery Procedure Use the CPIO command to retrieve files and directories from the tape. 1. Insert the tape into the tape device. 2. Change the directory to / TMP directory. 3. Use the following cpio directory to determine the path name of the file to be recovered. CPIO -IVD

File.taz | tar xvf -mt command MT -F / DEV / RMT / 0 STATUS Report device status MT -F / DEV / RMT / 0 REW rewind MT -F / DEV / RMT / 0N FSF 1 forward section MT -F / DEV / RMT / 0N BSF 3 After two paragraphs DD command DD if = / dev / rmt / 0 of = / tmp / file BS = 1024 uses a tape drive (must be trusted user) 1) Backup data to the off-site tape drive TAR CVF - DIRNAME | RSH Remote DD of = / / DEV / RMT / 02) Read data from a different site machine RSH Remote DD if = / dev / rmt / 0 TAR XVF - From: http://www.fanqiang.com

转载请注明原文地址:https://www.9cbs.com/read-122435.html

New Post(0)