1 Reply Latest reply on Feb 24, 2009 8:13 AM by Jade

    Backup script

    carlz_1

      Title

      Backup script

      Post

      Does anyone have a script they are willing to share on how to do an automatic backup at the beginning of a session?

       

      I want to create an Opening Script that will automatically backup the data prior to loading the database.  I would like to have the backups automatically named backup_monday, backup_tuesday, etc by having the system reaqd the current day of the week and then backing up to a particular file named after taht day.  This is much ala Quickbooks.

       

      Thank you for any insight.  It is appreciated much.

        • 1. Re: Backup script
          Jade
            

          Hi Carlz

           

          You didn't mention what version you have.  This sample script may get you going:

           

          Set Variable [$filename, Value:"backup_" & DayName(Get(CurrentDate))]

          Save a Copy as ["$filename" ; compacted]