osbackup [options] -i incremental-record-file -f backup-image-file
[-f backup-image-file]... pathname ...
When backup starts, osbackup determines those clusters that require backup, builds a map that describes this data, and sets itself up to intercept read and write requests to and from these sectors. Any time the Server reads a sector of interest to the backup process that has not already been backed up, osbackup allows the read to proceed and makes a copy of the data at that time. Similarly, write requests are intercepted and delayed long enough for osbackup to retrieve the transaction-consistent data first. Otherwise, the backup process operates in the background, retrieving data as efficiently as possible.
If a file of this name already exists, it is written over and data in it is lost. For this reason, it is recommended that you use the -i option to provide a unique name for the incremental record file.
% osls -l vancouver::/foo.db
-rw-rw-r-- smith odi 231424 Dec 20 16:17 vancouver::/foo.db %
% osbackup -i ./inc -f ./s1 -f ./s2 -f ./s3 -s 80k vancouver::/foo.db
Writing backup volume #1 (./s1)... Archiving 452 sectors in database vancouver::/foo.db. Closing volume #1 (./s1). Auto switching to volume #2 (./s2). Writing backup volume #2 (./s2)... Closing volume #2 (./s2). Auto switching to volume #3 (./s3). Writing backup volume #3 (./s3)... Closing volume #3 (./s3). %If you do not specify enough files, you are prompted as follows:
% osbackup -i ./inc -f ./s1 -f ./s2 -f ./s3 -s 10k vancouver::/mdltst1.db
Writing backup volume #1 (./s1)... Closing volume #1 (./s1). Auto switching to volume #2 (./s2). Writing backup volume #2 (./s2)... Closing volume #2 (./s2). Auto switching to volume #3 (./s3). Writing backup volume #3 (./s3)... Archiving 913 sectors in database vancouver::/mdltst1.db. Closing volume #3 (./s3). Please enter the pathname of the next file to use for backup.
% osls vancouver::/
dbdir/ foo.db
% osls vancouver::/dbdir
bar.db foo.db
% touch ./img <-- create file to demonstrate problem % osbackup -f ./img -i ./inc vancouver::/foo.db
Error encountered while opening file ./img (File ./img already exists. Cannot archive to an existing file.)
Do you wish to try_again? (yes/no): yes Please enter the pathname of the next file to use for backup. ./img2 Writing backup volume #1 (./img2)... Archiving 452 sectors in database vancouver::/foo.db. Closing volume #1 (./img2).
% osbackup -f ./img -i ./inc -r vancouver::/
Writing backup volume #1 (./img)... Archiving 452 sectors in database vancouver::/dbdir/bar.db. Archiving 452 sectors in database vancouver::/dbdir/foo.db. Archiving 452 sectors in database vancouver::/foo.db. Closing volume #1 (./img).
% cat ./import_file
vancouver::/foo.db /vancouver1/dbdir/foo.db %
% osbackup -f ./img -i ./inc -I ./import_file
Writing backup volume #1 (./img)... Archiving 452 sectors in database vancouver:/vancouver1/dbdir/foo.db. Archiving 452 sectors in database vancouver::/foo.db. Closing volume #1 (./img). %
% osbackup -f ./img -i ./inc -I ./import_file vancouver::/dbdir/foo.db
Writing backup volume #1 (./img)... Archiving 452 sectors in database vancouver:/vancouver1/dbdir/foo.db. Archiving 452 sectors in database vancouver::/dbdir/foo.db. Archiving 452 sectors in database vancouver::/foo.db. Closing volume #1 (./img). %
% $OS_ROOTDIR/bin/osbackup -f ./img0 -i ./inc -l 0 vancouver::/foo.db
Writing backup volume #1 (./img0)... Archiving 452 sectors in database vancouver::/foo.db. Closing volume #1 (./img0).
% $OS_ROOTDIR/bin/osbackup -f ./img1 -i ./inc -l 1 vancouver::/foo.db
Writing backup volume #1 (./img1)... Closing volume #1 (./img1).
% $OS_ROOTDIR/bin/osbackup -f ./img2 -i ./inc -l 2 vancouver::/foo.db
Writing backup volume #1 (./img2)... Closing volume #1 (./img2).
% osrm vancouver::/foo.db
% $OS_ROOTDIR/bin/osrestore -f ./img0
Recovering from volume #1 (./img0)... Restoring 452 sectors to database "vancouver::/foo.db" Recovered to time Tue Jan 12 15:50:10 1999 Do you wish to restore from any additional incremental backups? (yes/no):
yes
Closing volume #1 (./img0). Please enter the pathname of the next file from which to restore.
./img1
Recovering from volume #2 (./img1)... Recovered to time Tue Jan 12 15:50:21 1999 Do you wish to restore from any additional incremental backups? (yes/no):
yes
Closing volume #2 (./img1). Please enter the pathname of the next file from which to restore.
./img2
Recovering from volume #3 (./img2)... Recovered to time Tue Jan 12 15:50:41 1999 Do you wish to restore from any additional incremental backups? (yes/no):
no
Closing volume #3 (./img2). %
Updated: 03/11/99 11:19:07