Backups when saving (BAK)

When saving a document opened in the editor (from a local disk and from an FTP server), a backup copy of the document is automatically created. This copy is created from the previous version of the file saved on the disk. Thanks to this feature, you have the possibility to restore the file to its last version, if the document was unintentionally damaged or changed.

Backups can be created:

Backing up while Extended Search and Replace is running is independent of the option selected in Program Settings, you can turn it on and off in the tool window.

Backup file name

The name of the backup file to be created on the local disk is generated with the prefix bak. and the name of the original document. For example:
  • Document Name: index.html
  • Backup file name bak.index.html

Attention!
The way backup files are named on the local disk has changed in version 5.6.2 and has been aligned with the backup name on the server. For example, for a file named index.html:

  • index.html.bak - in version 5.6.1 (and earlier)
  • bak. index.html - from version 5.6.2

Restore a document from backup

Restore from backup file
This command is located in the bar to the right of the Projects tab file list. Click it to restore the last saved contents of a file from a backup. This command is only available for files that are backed up - otherwise it will be invisible. Restoring from backup in this case swaps the contents of the original file and the backup file, so you can use it again and restore to the previous state.

Another 'manual' way to restore content from a backup is to rename the backup file to the original file name. Simply rename the file by removing the .bak extension (on a local drive), or remove the bak. (on an FTP server). Backup files are hidden in the file list by default. You can change this in Program settings / File list (for the list of files Projects tab) and in Program settings / Built-in FTP and WebDAV client (for the list of files Servers tab).

What can be done to prevent BAK backup files from being created?

You can disable the creation of backups when saving an edited document (it is enabled by default) in the Program Settings / Documents window.

Quick backup deletion

Over time, you may no longer need the backup files for a particular site (e.g., after work is completed). To delete them all quickly, use the command in the menu Projects / Site Properties / Site Purge.

Related topics

To top