Closed Tklaversma closed 11 years ago
Hi Tim,
As the file is on a remote server (I'm assuming this as you wouldn't connect via FTP to localhost) you will not be able to upload it to Dropbox unless you download the file to the local machine first, then upload using either the putFile() or chunkedUpload() method.
Let me know of you need further advice.
Hi Ben,
Thanks for quick response.
Ah I see. In that case, I do need your help.
The whole idea is to create cronjob that creates a backup of a website and then pushes it to Dropbox. Since it will be a cronjob - in other word, no local machine - how do I temporarily save files that I download from FTP so I can push them to Dropbox with the current example?
I understand this is a little of topic, but I hope you can help me out.
Greets,
Tim
Op 10 feb. 2013 om 23:36 heeft Ben Tadiar notifications@github.com het volgende geschreven:
Hi Tim,
As the file is on a remote server (I'm assuming this as you wouldn't connect via FTP to localhost) you will not be able to upload it to Dropbox unless you download the file to the local machine first, then upload using either the putFile() or chunkedUpload() method.
Let me know of you need further advice.
— Reply to this email directly or view it on GitHub..
Hi Tim,
By local machine I mean the box PHP is installed on (the one the cron is running on).
How you download them to this machine first depends on the FTP class you're using - is this something you wrote yourself?
Theoretically you would download all the files you need via FTP, prepare your backup (ZIP or similar) and then upload to Dropbox. I'm unable to provide much more support on this as there is no issue with the library. If you come across any issues I'm more than happy to help.
I understand. You may close this topic.
Thank you.
Hi Ben,
First of all, amazing plugin! Thanks for that.. Now my problem..
I would like to send files from FTP to Dropbox. I've already managed to access my files on ftp. The only problem is, how do I 'copy' those files into variables and send them to dropbox. I altered your putFile.php example to the following:
Thanks in advance!
Greets,
Tim