xmik / docker-targetprocess-backup Goto Github PK
View Code? Open in Web Editor NEWDocker image to backup https://www.targetprocess.com entities
License: MIT License
Docker image to backup https://www.targetprocess.com entities
License: MIT License
The code responsible is: https://github.com/xmik/targetprocess-backup/blob/master/download_attachments.sh#L38
We used to get name and uri of each attachment from attachments.json
, but its format is different now, there is no uri:
$ cat /backup/production/local/targetprocess-latest/full/attachments.json
[{"ResourceType":"Attachment","Id":1,
"Name":"0.21307064330.2898206790427272768.1391027667f__inline__img__src",
"UniqueFileName":"0.21307064330.2898206790427272768_c7e5f075-caab-4fa7-a8ed-c37bf21e4d64.1391027667f__inline__img__src",
"Description":null,
"Date":"/Date(1411379118000-0500)/",
"Owner":{"ResourceType":"GeneralUser","Id":2,"FirstName":"Target","LastName":"Process","Login":"System"},"General":null,"Message":{"ResourceType":"Message","Id":1}},
{"ResourceType":"Attachment","Id":2, ...
]
each attachment uri should now just work based on the attachment id: https://www.targetprocess.com/guide/integrations/rest-api/work-with-attachments-api/
https://your-targetprocess-application-URL/Attachment.aspx?AttachmentID=1234
Also the comments on that page say:
In order to have Uri field in the response you need to implicitly include it in the response:
/api/v1/attachments?include=[uri]
Do not show log messages:
Errors from the request: null
It is currently printed for each request.
Here the number 11000 is hardcoded: https://github.com/xmik/docker-targetprocess-backup/blob/master/image/backup/run_functions.sh#L76
We should either make it settable by end user or discover what is the latest created TargetProcess Entity Id.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.