Dputils is a set of tools and utilities for working with Deskpro helpdesk instances. Available in both Linux and Windows environments, commands and flags are common to both. If you want the Windows version, please use the guide Migration Tool (Windows).
Every single copy of Deskpro already ships with the latest version of dputils, but if you prefer to dowload the latest version you can either download it from the GitHub Releases page or run the following command:
wget https://github.com/deskpro/dputils/releases/download/v20190509092925/dputils_linux_amd64 -O /usr/share/nginx/html/deskpro/bin/dputils copy
Run dputils with the --help flag to display the help menu
$ cd /usr/share/nginx/html/deskpro/
$ bin/console dputils --help copy

1- Backup
1.1 Full Backup
To generate a full backup of a current Deskpro instance, you just need to run the command with the -t flag specifying the folder where the backup will be stored:
$ bin/console dputils backup -t /path/to/backupdestination copy

$ bin/console dputils backup -t public
..
Your backup is available at http://your-deskpro-url/assets/deskpro-backup.2019-05-13_16-17-53.zip copy

1.2 Database Backup
You can also opt to generate a backup with only the database. For that use the -b database
flag:
$ bin/console dputils backup -b database -t /path/to/backupdestination copy

1.3 Attachments Backup
If you prefer to generate a backup containing only the attachments folder, you have to use the flag -b attachments
$ bin/console dputils backup -b attachments -t /path/to/backupdestination copy

2- Restore
The restore command has several options available that will suit pretty much all clients needs
2.1 Local Restore
This will restore the full backup (database and attachments) from the local filesystem
$ bin/console dputils restore -k /path/to/deskprobackup/deskpro-backup.2019-05-13_16-15-55.zip copy

2.2 Direct db connection
This option requires that the source mysql server can be accessed. Modifying my.cnf to open it to network connections will allow it. This is done by changing the bind_address and setting it to 0.0.0.0 should do the it.
$ bin/console dputils restore --mysql-direct string deskpro:mypass@10.1.1.3/deskpro copy
::: info The complete dputils command and flag manual can be found in our Reference :::
Please log in or register to submit a comment.