TeamDesk Knowledge Base & Support

   Home      FAQ      Forum      Idea Exchange      Ask a Question      My Stuff      Help   
  
Regular external backups with TDBACKUP utility
Hi there, I know that TD already has very robust and reliable server-backup processes, but one of my clients would still be interested in doing their own backups (to a local or a cloud drive) on a regular basis.
Is there be a way to automate the TDBACKUP utility so that it happens with a preset frequency? Could a script be written to run the utility automatically and save the backup output files to the specified location?
Any help with this would be appreciated.
ID
1497
Category
Integration/API
Author

Luison Lassala
Date Created
1/19/2022 10:08:44 AM
Date Updated
4/30/2022 6:45:03 AM
Comments
Nick Ashcroft 1/19/2022 10:12:52 AM
you can easily do this yourself with some scheduled job (in windows) using the command line backup version available here
https://teamdesk.crmdesk.com/answer.aspx?aid=22386
Luison Lassala 1/19/2022 10:25:37 AM
Thanks Nick, Problem is I would not be comfortable writing Windows command scripts. Would you be in a position to suggest the code I should use? If you prefer to send it privately, you can connect via the Experts db. Thanks again
Nick Ashcroft 1/20/2022 2:17:45 AM
heres an example of a full backup (not specific table) to a network location 'folder2'. you need to put tdbackup.exe into an appropriate location and adapt the command accordingly

C:\Scripts\TeamDeskBackup\tdbackup.exe https://www.teamdesk.net/secure/api/v2/12345/ -u=username@company.com -p=passwordhere -f=\\networkdrive\folder1\folder2

12345=your teamdesk database id

you can use the windows task scheduler using 'create a basic task' and enter the details into the 'start a program' option script section.

Rick Cogley 4/30/2022 6:45:03 AM
I run it on macOS via mono.
Feedback
Back to Search Results