|
|
| Line 61: |
Line 61: |
|
| |
|
| ==A) 数据库== | | ==A) 数据库== |
| There are 4 ways to backup your database:
| | 备份数据库有四种方法: |
|
| |
|
| ===Using Dolibarr system backup tool=== | | ===使用 Dolibarr 系统备份工具=== |
|
| |
|
| This is the simplest way to make your backup, and in addition all your backups will be stored on server and will be listed, so that you can retrieve any version anyday.
| | 这是最简单的备份方法,此外,你所有的备份都将存储在服务器上,并将列出,以便您可以随时恢复到任何旧版本。 |
|
| |
|
| If you use a recent enough version of Dolibarr, just log into Dolibarr with an administrator account (only admins can use system tools).
| | 如果您使用的是最新版本的Dolibarr,请使用管理员帐户登录Dolibarr(只有管理员可以使用系统工具)。 |
|
| |
|
| Then go to '''Home -> System tools -> Backups'''.
| | 前往菜单 '''主页 -> 管理工具 -> 备份。''' |
| Choose your options for your backup (you can keep all default values).
| |
|
| |
|
| ''Alternative'': the default method '''MySQL Dump (mysqldump)''' also needs that you have access to the mysqldump binary in execution on your server. If you are on a shared host that disable the mysqldump usage, you can try other method called '''MySQL Dump (php)'''. This method is not guaranted at 100%, so please try it first by yourself by making a backup and then restoring it on a local non production server to check that your data is correctly saved. | | 然后选择备份的选项(您可以保留所有默认值)。 |
| | |
| | ''备选方案'':默认方法 '''MySQL转储(mysqldump)'''需要您有权限访问和运行服务器上的二进制文件mysqldump,并使用消耗大量内存的默认设置。 如果您使用的是共享主机,并且内存不足(这通常会导致空白页面),您可以尝试从Dolibarr 16.0开始选择导出选项“在低内存模式下转储”。 如果您的主机禁止使用mysqldump程序,您也可以尝试另一种方法 '''MySQL Dump (php)''' 。此方法不能保证100%,因此请先自己尝试,先备份,然后在本地非生产服务器上还原,以检查您的数据是否被正确备份。 |
| | |
| | 警告:一些用户报告说,当启用压缩时,某些主机的备份有时不完整(缺少一些表)。虽然无法重现此问题,但请记住通过查看.sql文件的内容来检查备份的内容,该文件应以样式行结尾。 |
| | |
| | <syntaxhighlight lang="sql"> |
| | -- Dump completed on YYYY-MM-DD HH:MM:DD |
| | </syntaxhighlight> |
| | |
| | 或者,如果您想万无一失,就不要启用压缩。 |
|
| |
|
| ===Using mysqldump=== | | ===Using mysqldump=== |