Skip to main content
WARNING You're browsing the documentation for an old version of Deskpro. Consider updating to Deskpro Horizon.

Migration Tool (Linux)

in Migration Tool (dputils)
Authors list
Zveřejněno: 30. 7. 2019|Poslední aktualizace: 16. 3. 2022

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

image.png

1- BackupCopy link to 1- Backup to clipboard

1.1 Full BackupCopy link to 1.1 Full Backup to clipboard

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

image.png
If you prefer to generate the backup in a public directory, you can use the target "public". This will give you a long random URL that you can use to expose the download to the internet. This can be useful if you want an easy way to get this backup to another person or server. Just remember to delete the file after it's been downloaded!

$ 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

image.png

1.2 Database BackupCopy link to 1.2 Database Backup to clipboard

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

image.png

1.3 Attachments BackupCopy link to 1.3 Attachments Backup to clipboard

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

image.png

2- RestoreCopy link to 2- Restore to clipboard

The restore command has several options available that will suit pretty much all clients needs

2.1 Local RestoreCopy link to 2.1 Local Restore to clipboard

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

image.png

2.2 Direct db connectionCopy link to 2.2 Direct db connection to clipboard

Warning

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 :::

UžitečnáNeužitečná
next pageReference
previous pageMigration Tool (Windows)

Please log in or register to submit a comment.