I have been searching for a way to sync files to Livedrive and found this post. I had a few hours to kill and with my basic Unix experience I got this working - so sharing as couldn’t find the info anywhere online - hope it helps someone:
1 – install Optware
login to QNAP GUI and go to Home>>Applications>>QPKG Centre and install Optware.
Once installed go to the link
http://x.x.x.x:80/Optware/ (x.x.x.x being IP of NAS drive). Hit the “Submit Query” button, install lftp.
2 – Create a script file
Open the Public folder on the Qnap (\\x.x.x.x\Public) and create a new text file; rename the file (i called mine Dealsync) and delete the .txt file extension. Open the file in Notepad++ and add the following:
lftp ftp.livedrive.com
lftp -u
email@yahoo.com,password
cd Team\ Folders/Creative\ \&\ Studio/Local\ Drive/
mirror -R -v /share/HDA_DATA/Deal .
quit
The above script copies any new or updated files in the shared Deal folder to the Livedrive folder: Team Folders\Creative & Studio\Local Drive.
3 - Create a cron job to schedule the running of the script
- 3.1. “vi /etc/config/crontab” and add the entry.
0 * * * * /share/HDA_DATA/Public/Dealsync
This runs the job on the hour every hour
- 3.2. Run 'crontab /etc/config/crontab' to load the changes.
- 3.3. Restart cron, i.e. “/etc/init.d/crond.sh restart”
I have no idea how to see logs if the job completed or not but its working. Good luck.