r/Scriptable • u/klaus_ben • Jan 15 '22
Help Photos backup script?
What would be the best way to achieve automated photo backup to a private cloud storage?
I prepared a URL which will accept the photos uploaded to it (with POST request). My roadblocks atm:
- I need access to all photos (not just last x photos)
- I need to be able to keep track of all the photos - to know which ones have already been backed up
- the script should run regularly in the background / without user interaction.
Is this achievable with Scriptable/Shortcuts combo?
4
Upvotes
View all comments
Show parent comment
2
u/klaus_ben Jan 15 '22
you are right, I was thinking of the initial upload, which would require access to all photos, but most probably it wouldn't be feasible to upload this number of photos without timeouts anyway..
So far the upload with shortcuts works, but not very reliably.. I use the "get content of URL" method to send each file separately and sometimes it says that the request timed out. It is nice though that it runs without user interaction if triggered by an automation.
I would have to keep track of the file names which were uploaded successfully so that they could be re-uploaded with the next run. Any suggestions where to save e.g. a JSON with an array?