Zdoo ManualBook Info
1 About Zdoo
1.1 About Zdoo
1.2 Zdoo Features
1.3 Technical Support
1.4 Zdoo License
2 Installation and upgrade
2.1 Source Code Package Installation (for all systems)
2.2 One-click Installation Package for Windows (Recommended)
2.3 One-click Installation Package for Linux
2.4 Upgrade Zdoo
2.5 Zdoo Cloud
2.6 Remove ranzhi from the address
2.7 Data Backup
2.8 Install Ioncube
2.9 Install php-zip
3 CRM
3.1 Basic Workflow
3.2 Add Product
3.3 Add Customer
3.4 Create Order
3.5 Sign Contract
3.6 Manage Contacts
3.7 Manage Lists
3.8 Manage Supplier
3.9 CRM Settings
3.10 CRM Reports
4 OA
4.1 Todo
4.2 Review
4.3 Announcement
4.4 Attendance
4.5 Leave
4.6 Makeup
4.7 Overtime
4.8 Business Trip
4.9 Reimbursement
4.10 Lieu
4.11 Egress
4.12 Holiday
4.13 Settings
5 Cashflow(Cash)
5.1 Introduction
5.2 Basic Settings
5.3 Add Bank Account
5.4 Manage Account
5.5 Keep Account
5.6 Batch keep accounts and import
5.7 Reconciliation
5.8 Report
6 Project (Proj)
6.1 Project Workflow
6.2 Create Project
6.3 Create Task
6.4 Actions in a project
6.5 Action Views
6.6 Actions in a task
7 Document(Doc)
7.1 Introduction
7.2 Create Document Library
7.3 Create Document
8 TEAM
8.1 Introduction
8.2 Settings
8.3 Modules
9 Administration
9.1 Settings
9.2 User
9.3 Privileges
9.4 Apps
9.5 Email settings
10 Integration(ips)
10.1 Introduction
10.2 Integrate ZenTao
11 Customization
11.1 Get Ready
11.2 Zdoo Directory
11.3 Find the Code
11.4 Database Structure

Data Backup

2019-08-09 10:31:23
Renee
203
Last edited by Renee on 2019-08-12 11:13:18

One of the most important job for a system administrator is to back up data regularly. If the system crashes, the system administrator could restore it on time.


In Zdoo, configurations, modified codes, the database, and files will be backed up. 


1. Backup via one-click installation package

If you installed Zdoo using one-click installation packages, the easiest way to back up is to back up the whole directory of the installation package. Note: Stop Apache and MySQL service before you back up data in Zdoo, for complete data back up.


For Windows one-click installation package, back up the whole directory of /xampp and refer to One-click Installation Package for Windows (Recommended).

For Linux one-click installation package, back up /opt/zbox/data/mysql/ranzhi(pro) and /opt/zbox/app/ranzhi(pro), and refer to One-click Installation Package for Linux.


2. Back up manually

2.1 Back up configurations, modified codes and files 

Configurations are set in  ranzhi/config/my.php 

Files are in the directory ranzhi/www/data/

Modified codes are in the directory ranzhi

Back up configurations, files and modified codes is to back up the whole directory of ranzhi.


2.2 Back up the database

2.2.1 Back up the original database files directly

Find the directory data in MySQL. For Windows, it is in the installation directory. For Linux, it is in /var/mysql or /var/db.


In the directory data, there is ranzhi which stores the original database files. Copy this directory to back up. For Linux, be ware of permissions.


2.2.2 Export database backup

Use the tool built in MySQL, and export the database. Run mysqldump -u xxx -p ranzhi > ranzhi.sql and change -u (user) to the actual username.


3. Backup feature in Zdoo-Admin and Cron (scheduled tasks)

Log in Zdoo as the super admin, and go to Admin->System->Backup. 

Click Backup button at the upper right to back up and you will see the backup information as listed. Click Set on-hold days and you can set how long the backup will be saved.


Go to Admin->System->Cron, and turn on the auto backup. You can set the time and frequency to back up.



    Write a Comment
    Comment will be posted once reviewed.
    right-information