Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

backup

Status
Not open for further replies.

harpal

Technical User
Oct 3, 2001
115
GB
Just a quick query if I want use the backup command to backup certain files using a retative path how would I go about achiving this would it be best to create a file with all the files which need backing up so can therefore create a file called harry which will backup the following

./home/harry/fspurge.ksh and the I pass the following argument in a script

backup -iqvf /dev/rmt1 < harry

would this created a relative backup of ./home/harry/fspurge

many thanks
 
from the man page - it might give you an idea.


To backup all the files and subdirectories in the /home/mike directory using relative path names, enter:

cd /home
find . -print | backup -i -v -q

Each file name in the list generated by the find command is preceded by ./ (dot, slash). Because the files are backed up using relative path names, they will be written to the current directory when restored. The -v flag causes the backup command to display additional information about the backup. The files are written to the default backup device
/dev/rfd0.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top