home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
disk
/
backup_utils
/
mrbackup1.5
/
arexx_scripts
/
backup.mrbk
< prev
next >
Wrap
Text File
|
1995-02-27
|
1KB
|
63 lines
/* backup.mrbk */
/* This simple program runs MRBackup, performs a backup, then terminates. */
signal on ERROR
signal on BREAK_C
options results
if ~(Show('P', 'MRBackup_#1')) then do
say "You must run MRBackup first. With a little work, you could"
say "get this ARexx script to do it for you."
exit 1
end
address "MRBackup_#1"
poptofront
backpath = "DF0:"
setbackpath backpath
if rc ~= 0 then do
say "Failed to set backup path to " || backpath
quit
exit 1
end
homepath = "DH0:"
sethomepath homepath
if rc ~= 0 then do
say "Failed to set home path to " || homepath
quit
exit 1
end
backup
if rc ~= 0 then do
say "Backup failed; error code: " || rc
quit
exit 1
end
quit
exit 0
/*------------------------------------------------------------------*/
break_c:
say "*** Control-C recieved. Stopped by user. ***"
exit 5
/*------------------------------------------------------------------*/
error:
say "Error"
exit 6
/*------------------------------------------------------------------*/