0% found this document useful (0 votes)
19 views2 pages

Fbackup and Frecover Commands

Uploaded by

David Delta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views2 pages

Fbackup and Frecover Commands

Uploaded by

David Delta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Backup Commands

****************************************************
To do an ENTIRE backup:
----------------------------------------------------
fbackup -f /dev/rmt/0m -i / -v

tar cvf /dev/rmt/0m /

find / -print | cpio -oBv > /dev/rmt/0m

dump 0dsf 6250 999999 /dev/rmt/0mn / (must be hfs)

# fbackup -vf /dev/rmt/0m -i /var/adm/sw


--> the command above back-up /var/adm/sw to a tape.

****************************************************
To store a particular directory:
----------------------------------------------------

fbackup -f /dev/rmt/0m -i /tmp

find /tmp -print | cpio -oBv > /dev/rmt/0m


find /etc | cpio -ov > /dev/rmt/0m

tar cv /tmp ( for default device )


tar cvf /dev/rmt/1m /tmp (specify device)

***************************************************
To recover a particular directory:
--------------------------------------------------

frecover -vx -i /tmp -f /dev/rmt/0m


tar xvf /dev/rmt/0m /tmp

**********************************************************************
To see what's actually on the tape without restoring or extracting:
---------------------------------------------------------------------

frecover -rNv -f /dev/rmt/0m


frecover -Nrosv -f /dev/rmt/0m > your_filename 2>&1
cpio -it < /dev/rmt/0m
tar tvf /dev/rmt/0m

*******************************************************
To recover a particular FILE:
---------------------------------------------------

frecover -x -i /path/filename -f /dev/rmt/0m


tar xvf /dev/rmt/1m /path/filename (will only recover full path)

**************************************************************
To see if a particular file is on the tape ( must know path )
--------------------------------------------------------------

frecover -xNv -i /tmp/update.log -f /dev/rmt/0m


cpio -it < /dev/rmt/0m

***********************************************************
REMOTE BACKUPS
---------------------------------------------------------

fbackup -f remote_system_name:/dev/rmt/0m -i file_name -v


example: fbackup -f square:/dev/rmt/0m -i /var/spool/lp/ -v

To extract a cpio archive from a remote tape device:

remsh square "dd if=/dev/rmt/0m bs=8k" | cpio -icvBdum

*****************************************************************
restore files with absolute path to another directory
-------------------------------------------------------------------

cd /dir (where you want to restore file with path)


frecover -Xx -i /dir/file -f /dev/rmt/0m

********************************************************************
restore files without leading directories
----------------------------------------------------------------------
cd /dir (where you want to restore file)
frcover -Fx -i /dir/file -f /dev/rmt/0m

************************************************************************
**
How to copy a large file from one filesystem to another
------------------------------------------------------------------------
--

cd /dir (cd to directory where you want to restore)


fbackup -i /path/dir -f - | frecover -Fx -i /path/dir -f -

You might also like