BACKUP - Create a Backup of a file
Syntax
BACKUP | BACK | BK |
[ ? ] |
Operands
? A single ? is taken as a query as to the current number of backups for the current file being edited.
Description
BACKUP is useful to create a Date and Time stamped backup of the file you are currently working on. The command will place the Backup in a \$BACKUP\ folder in the same folder in which the file resides. If the \$BACKUP\ folder does not yet exist, it will be created.
BACKUP will also back up the STATE information for the file, if it exists.
Full details of Backup & Restore can be found in Working with BACKUP & RESTORE.
Notes:
Important
BACKUP backs up the most-recently saved version of the file, which will not include any unsaved changes in your Edit session. If there are unsaved changes at the time of the Backup, you will be informed of this condition)
SO ... if you want those changes to be included in the backup DO A SAVE FIRST!
Multiple Backups
You may create as many backups of a file as you desire, but SPFLite will only back up a file ONCE at a saved level. e.g. if you do a BACKUP and immediately do another BACKUP without changing / saving the file, the BACKUP will fail saying that a current Backup already exists.
As long as the file on disk has been altered, you may create another new backup.
Exception: You can not create a new backup within the same minute as a previous backup, the time-stamp of the backup does not include seconds.
Backup Management
You may choose to manage your Backup files entirely on your own, or you can request SPFLite to assist by specifying various styles of Retention handling. You should review Working with BACKUP & RESTORE to determine which method suits your requirements the best.