Understanding AutoCAD backup and autosave files

Apr 7, 2014


Issue:

You want to know more about the backup (. bak) and autosave (. sv$) files that AutoCAD creates, where they are located, and how to use them.

Solution:

Backup (.bak) Files

Drawing backup files are typically created every time that you manually save a .dwg file. By default the file will be saved in the same location as the .dwg and will have the same name as the drawing but with a .bak extension, such as, site_topo.bak. A backup file is an exact copy of the drawing file prior to the last save. As such, backup files are always one version older than the currently saved drawing. Only one backup file is retained at a time so newly created backups will always replace older backups of the same name.

Note: Backup files are created only if the system variable ISAVEBACK is set to 1.

Backup files are essentially renamed .dwg files. You can recover data saved in .bak files by renaming the .bak extension to dwg and then opening that file in AutoCAD.

MOVEBAK Command

Included in the AutoCAD Express Tools is the MOVEBAK command which allows you to specify an alternative folder for your bak files when created. If you want to keep all your bak files in a single location—as opposed to keeping them in the same folder as the associated drawings—you can use MOVEBAK to specify another folder and all bak files will be automatically moved there when created. Enter "." as a value to reset AutoCAD to the default behavior.

Note: MOVEBAK is only available in Autodesk products that include the AutoCAD Express Tools. The MOVEBAK command has not been updated in recent years so it may not support paths with embedded spaces.

Automatic Save (.sv$) Files

Automatic save files—commonly referred to as "autosave" files—are backup files created automatically by the Autosave feature. Automatic save is enabled by default and the number of minutes between automatic saves can be set in the Open and Save tab in the Options dialog box or using the SAVETIME system variable. Automatic saves are only done if a drawing has been modified after the last save. QSAVE, SAVE, and SAVEAS will halt the automatic save timer until an edit is made to the drawing.


If AutoCAD crashes or is otherwise abnormally terminated during a session, you can recover data saved in .sv$ files by locating the autosave file, renaming the .sv$ extension to dwg and then opening that file in AutoCAD. The autosave file will contain all drawing information as of the last time autosave ran. When AutoCAD closes normally, .sv$ files are deleted.

You can determine the location of your autosave files by going to the Files tab in the Options dialog box and inspecting the Automatic Save File Location folder in the hierarchy, or by using the SAVEFILEPATH variable. Once you know where the files are being saved, use Windows Explorer to navigate to that folder to recover your .sv$ file. By default, the location is take from the TEMP environment variable in the operating system.


Automatic save can be disabled by unchecking Automatic save in the Open and Save tab in the Options dialog box or by setting the SAVETIME system variable to 0.

Note: Disabling automatic save prevents AutoCAD from automatically creating sv$ files while you work. In the event of a crash, there will be no interim files to use for data recovery.

The TIME command is useful in tracking whether an automatic save file will be created because it gives information about the countdown time and whether modifications have been made to the drawing.

Temporary (.ac$) Files

By default, temporary files have an .ac$ extension. These files contain information that is used by various AutoCAD commands, such as UNDO, and do not contain any drawing data that can be recovered. They should only exist during an AutoCAD session but may be left behind if AutoCAD crashes or is abnormally terminated.

Drawing Recovery Manager

Originally introduced in AutoCAD 2006, the Drawing Recovery Manager (DRAWINGRECOVERY) helps with the task of locating and opening drawings that were last open when AutoCAD crashed, as well as any backup and autosave files associated with those drawings.

When you launch AutoCAD after a crash, the Drawing Recovery Manager determines what drawings were active when the crash occurred and displays those drawings, and the associated backup and autosave files, in a single interface.

Using the Drawing Recovery Manager you can open backup and autosave files directly into the current session of AutoCAD without having to manually locate and rename those files. The first time you save a backup or autosave file opened from the Drawing Recovery Manager, you will be prompted to rename the file.

Note: The Drawing Recovery Manager is only useful after a crash has occurred and will only display information about drawing files that were active during a session that crashed. You cannot launch the Drawing Recovery Manager during a normal working session and have it show you the backup and autosave files for the current drawing.


Products:

AutoCAD;AutoCAD Architecture;AutoCAD Civil 3D;AutoCAD Electrical;AutoCAD LT;AutoCAD Map 3D;AutoCAD Mechanical;AutoCAD MEP;AutoCAD P&ID;AutoCAD Plant 3D;AutoCAD Structural Detailing;AutoCAD ecscad

Versions:

2006;2007;2008;2009;2010;2011;2012;2013;2014;2015

Discuss