news
About Elegant Chaos
info
About me and my friends
people
Software from Elegant Chaos
software
Other stuff...
stuff

BL_PrepareForBackup

Revision
Revised on

Description


Code

function BL_PrepareForBackup backup,temporary
  -- prepare by displaying messages and renaming any old backup
  
  if there is a stack backup then
    if FL_RenameStack(backup,temporary) then
      UL_PutMsg "Updating backup file:" & return & FL_ShortPath(backup)
    else
      answer "Backup error: Couldn't rename old backup."
      return false
    end if
  else
    UL_PutMsg "Creating backup file:" & return & FL_ShortPath(backup)
  end if
  return true
  
end BL_PrepareForBackup