31,029
edits
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
[[Category:Admin]] | [[Category:Admin]] | ||
{{TemplateDocUser}} | {{TemplateDocUser}} | ||
To be safe if a bad event or actions occurs, or simply to prepare an upgrade and have possibility to go back after, it is recommended to make backup of all its Dolibarr data. | |||
= | = What to save ? = | ||
Dolibarr | Dolibarr save its data in 3 different spaces. They all must be saved before each version upgrade to be sure to be able to get back its data if a problem occurs or if you want to go back on previous version. This is the 3 kind of data you need to save to be sure to loose nothing. | ||
== | == The configuration file == | ||
The configuration file should not be modified by upgrade process, but it is more prudent to save it also when you do an upgrade. | |||
The configuration file is called ''conf.php'' and you can find it into directory ''dolibarrdir/htdocs/conf/''. | |||
Make a copy of this file into the dedicated area of your backup. This backup is however optional as you can still rebuild this file if you know all your connexion id (this file contains only parameters to connect to database and directory where you Dolibarr is installed). When making a restore, it is still possible to rebuild this file by an installation from scratch. | |||
== | == The database == | ||
The database contains all data you have added from Dolibarr screens (except the attached files that are presented in next chapter). | |||
Saving the database must be done in a global way (all content). See the chapter "How" later in this document. | |||
== | == Documents == | ||
All documents related to your Dolibarr instance are saved into directory defined into your config file ''dolibarrdir/htdocs/conf/conf.php''. If you kept the choice by default during first installation, it should be something like ''dolibarrdir/documents''. This directory must be completely saved. | |||
When making an upgrade, the upgrade process should not change this directory, however this directory can be read and write by web server at any time, it might be altered by a bad action or a bug. To be sure to keep all your joined files and be able to restore them if they are accidentally deleted or altered, just make a copy of all content of this directory. | |||
= | = When = | ||
{{ToTranslate}} | |||
La fréquence conseillée dépend de l'intensité de l'utilisation que vous faites de Dolibarr et de la tolérance en terme de donnée perdu que vous acceptez. Plus la fréquence est élevé, moins, en cas de restauration, vous n'aurez de données perdues. | La fréquence conseillée dépend de l'intensité de l'utilisation que vous faites de Dolibarr et de la tolérance en terme de donnée perdu que vous acceptez. Plus la fréquence est élevé, moins, en cas de restauration, vous n'aurez de données perdues. | ||