跳到主要内容
WARNING You're browsing the documentation for an old version of Deskpro. Consider updating to Deskpro Horizon.

Migration Tool (Windows)

在 Migration Tool (dputils) 中
作者列表
已发布: 2019年7月30日|最后更新: 2022年3月18日

Dputils is a set of tools and utilities for working with helpdesk instances. Available in both Linux and Windows environments, commands and flags are common to the both. If you want the Linux version, please follow the guide Migration Tool (Linux)

Every single copy of Deskpro already ships with the latest version of dputils, but if you prefer to dowload the latest version you can download it from the GitHub Releases and move it to the deskpro\bin folder.

Warning

In a Windows environment you have to either invoque php.exe using its full path or have it as a system environment variable. We will use the full path for convenience.

Run dputils with the --help flag to display the help menu

C:\> cd c:\DeskPRO\DeskPRO\ C:\DeskPRO\DeskPRO> c:\DeskPRO\PHP\php.exe 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:

C:\DeskPRO\DeskPRO> c:\DeskPRO\PHP\php.exe 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!

C:\DeskPRO\DeskPRO> c:\DeskPRO\PHP\php.exe 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:

C:\DeskPRO\DeskPRO> c:\DeskPRO\PHP\php.exe 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

C:\DeskPRO\DeskPRO> c:\DeskPRO\PHP\php.exe 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

C:\DeskPRO\DeskPRO> c:\DeskPRO\PHP\php.exe 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.

C:\DeskPRO\DeskPRO> c:\DeskPRO\PHP\php.exe dputils restore --mysql-direct string deskpro:mypass@10.1.1.3/deskpro
copy
Note

The complete dputils command and flag manual can be found in our Reference

有帮助没有帮助
下一个页面Migration Tool (Linux)
上一个页面Migration Tool (dputils)

请登录或注册以提交评论。