Commit 5eeff322 authored by Boudewijn Rempt's avatar Boudewijn Rempt Committed by Wolthera van Hövell

Page about saving, autosaving and backup files

For handy reference. I hope I got all permutations here.

Differential Revision: https://phabricator.kde.org/D20784
parent a39e9967
......@@ -19,6 +19,7 @@ Discover Krita’s features through an online manual. Guides to help you transit
user_manual/mirror_tools
user_manual/painting_with_assistants
user_manual/working_with_images
user_manual/autosave
user_manual/templates
user_manual/layers_and_masks
user_manual/selections
......
.. meta::
:description:
How AutoSave and Backup Files Work in Krita
.. metadata-placeholder
:authors: - Boudewijn Rempt
:license: GNU free documentation license 1.3 or later.
.. index:: ! Saving, Autosave, Backup
.. _autosave:
=================================
Saving, AutoSave and Backup Files
=================================
Krita does its best to keep your work safe. But if you want to make sure that you won't lose work, you will need to understand how Saving, AutoSave and Backup Files work in Krita.
Saving
------
Krita does not store your images somewhere without your intervention. You need to save your work, or it will be lost, irretrievably. Krita can save your images in many formats. You should always save your work in Krita's native format, ``.kra``
because that supports all Krita's features.
Additionally, you can export your work to other formats, for compatibility with other applications or publication on the Web or on paper. Krita will warn which aspects of your work are going to be lost when you save to another format than ``.kra`` and offers to make a ``.kra`` file for you as well.
If you save your work, Krita will ask you where it should save on your computer. By default, this is the Pictures folder in your User folder: this is true for all operating systems.
If you use "Save As" your image will be saved under a new name. The original file under its own name are not deleted. From now on, your file will be saved under the new name.
If you use "Export" using a new filename, a new file will be created with a new name. The file you have open will keep the new name, and the next time you save it, it will be saved under the old name.
You can Save, Save As and Export to any file format.
See also
:ref:`Saving for the Web <saving_for_the_web>`
AutoSave
--------
AutoSave is what happens when you've worked for a bit and not saved your work yourself: Krita will save your work for you. Autosave files are by default visible in your file manager. You can configure Krita 4.2 and up to create autosave files that are visible in your file manager. By default, Krita autosaves every fifteen minutes; you can configure that in the File tab of the General Settings page of the Configure Krita dialog, which is in the Settings menu (Linux, Windows) or in the Application menu (macOS).
If you close Krita without saving, your unsaved work is lost and cannot be retrieved. Closing Krita normally also means that autosave files are removed.
.. image:: /images/en/file_config_page.png
There are two possibilities:
- You hadn't saved your work at all
- You had saved your work already
AutoSave for Unsaved Files
~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you had not yet saved your work, Krita will create an unnamed AutoSave file.
If you're using Linux or macOS, the AutoSave file will be a hidden file in your home directory. If you're using Windows, the AutoSave file will be a file in your user's ``%TEMP%`` folder. In Krita 4.2 and up, you can configure Krita to make the AutoSave files visible by default.
A hidden autosave file will be named like ``.krita-12549-document_1-autosave.kra``
If Krita crashes before you had saved your file, then the next time you start Krita, you will see the file in a dialog that shows up as soon as Krita starts. You can select to restore the files, or to delete them.
.. image:: /images/en/autosave_unnamed_restore.png
If Krita crashed, and you're on Windows and your ``%TEMP%`` folder gets cleared, you will have lost your work. Windows does not clear the ``%TEMP%`` folder by default, but you can enable this feature in Settings. Applications like Disk Cleanup or cCleaner will also clear the ``%TEMP%`` folder. Again, if Krita crashes, and you haven't saved your work, and you have something enabled that clear your ``%TEMP%`` folder, you will have lost your work.
If Krita doesn't crash, and you close Krita without saving your work, Krita will remove the AutoSave file: you work will be gone and cannot be retrieved.
If you save your work and continue, or close Krita and do save your work, the AutoSave file will be removed.
AutoSave for Saved Files
~~~~~~~~~~~~~~~~~~~~~~~~
If you had already saved your work, Krita will create a named AutoSave file.
A hidden named autosave file will look like ``.myimage.kra-autosave.kra``.
By default, named AutoSave files are hiden. Named AutoSave files are placed in the same folder as the file you were working on.
If you start Krita again after it crashed and try to open your original file, Krita will ask you whether to open the AutoSave file instead:
.. image:: /images/en/autosave_named_restore.png
If you choose "no", the AutoSave file will be removed. The work done since the last time you saved your file yourself is lost and cannot be retrieved.
If you choose "yes", the AutoSave file will be opened, then removed. The file you have open will have the name of your original file. The file will be set to Modified, so the next time you try to close Krita, Krita will ask you whether you want to save the file. If you choose No, your work is irretrievably gone. It cannot be restored.
If you use "Save As" your image will be saved under a new name. The original file under its own name and its AutoSave file are not deleted. From now on, your file will be saved under the new name; if you save again, an AutoSave file will be created using the new filename.
If you use "Export" using a new filename, a new file will be created with a new name. The file you have open will keep the new name, and the next time you save it, the AutoSave file will be created from the last file saved with the current name, that is, not the name you choose for "Export".
Backup Files
------------
There are three kinds of Backup files
- Ordinary Backup files that are created when you save a file that has been opened from disk
- Incremental Backup files that are copies of the file as it is on disk to a numbered backup, and while your file is saved under the current name
- Incremental Version files that are saves of the file you are working on with a new number, leaving alone the existing files on disk.
Ordinary Backup Files
~~~~~~~~~~~~~~~~~~~~~
If you have opened a file, made changes, then save it, or save a new file after the first time you've saved it, Krita will save a backup of your file.
You can disable this mechanism in the File tab of the General Settings page of the Configure Krita dialog, which is in the Settings menu (Linux, Windows) or in the Application menu (macOS). By default, Backup files are enabled.
.. image:: /images/en/file_config_page.png
By default, a Backup file will be in the same folder as your original file. You can also choose to save Backup files in the User folder or the ``%TEMP%`` folder; this is not as safe because if you edit two files with the same name in two different folders, their backups will overwrite each other.
By default, a Backup file will have ``~`` as suffix, to distinguish it from an ordinary file. If you are using Windows, you will have to enable "show file extensions" in Windows Explorer to see the extension.
.. image:: /images/en/file_and_backup_file.png
If you want to open the Backup file, you will have to rename it in your file manager. Make sure the extension ends with ``.kra``.
Every time you save your file, the last version without a ``~`` suffix will be copied to the version with the ``~`` suffix. The contents of the original file will be gone: it will not be possible to restore that version.
Incremental Backup Files
~~~~~~~~~~~~~~~~~~~~~~~~
Incremental Backup files are similar to ordinary Backup files: the last saved state is copied to another file just before saving. However, instead of overwriting the Backup file, the Backup files are numbered:
.. image:: /images/en/save_incremental_backup.png
Use this when you want to keep various known good states of your image throughout your painting process. This takes more disk space, of course.
Do not be confused: Krita does not save the current state of your work to the latest Incremental file, but copies the last saved file to the Backup file and then saves your image under the original filename.
Incremental Version Files
~~~~~~~~~~~~~~~~~~~~~~~~~
Incremental Version works a bit like Incremental Backup, but it leaves the original files alone. Instead it will save a new file with a file number:
.. image:: /images/en/save_incremental_version.png
  • @rempt, can you upload the images seperately? It seems like the images didn't exist in your diff :)

    You can do this by trying to push locally, or by...

    1. going to the repository files browser
    2. making sure you are in the draft branch
    3. navigate to the images folder
    4. press the big '+' at the top, next to the file path.
    5. You should now have a dropdown with 'upload file', etc. Don't forget to optimize your images and all that :)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment