Autosave and BackupAutosave files provide a means of protecting you by limiting the amount of work you could lose if your system crashes or if you inadvertently erase an important part of your file. At the completion of each Auto Save Interval, all buffers are scanned, and if auto-save is enabled for that buffer and the buffer has been modified since the last auto-save, an auto-save file is written for the respective buffer. Global enabling or disabling of the auto-save feature is controlled by the editor parameter Auto Save Enabled, which is initialized by the resource autoSaveEnabled. Per-buffer enabling or disabling of auto-save is controlled by the commands auto-save-on, auto-save-off and auto-save-toggle. Naming of auto-save files is controlled by the editor resources autoSavePrefix, autoSaveSuffix, and autoSaveNoFilePrefix.
Backup files provide a means of protecting you from losing a previous version of a file when a buffer is first saved in a session. Global enabling or disabling of the backup feature is controlled by the editor parameter Backup Files Enabled, which is initialized by the resource backupFilesEnabled. If the backup feature is enabled, a backup file will be made only the first time a file is saved from a buffer after the creation of that buffer. At the time of this save, the contents of the file about to be overwritten by the save will be copied to the backup file. The contents of an already existing backup file will be overwritten without warning. Subsequent saves of the buffer during the dynamic lifetime of the buffer will not overwrite the backup-file. Naming of backup-files is controlled by the editor resource backupSuffix.
auto-save-on
auto-save-off
auto-save-toggle