I have a D-LINK DNS-320 NAS which works well to provide SMB shares but not much else. I have mounted the volumes on my NAS to my Ubuntu Server 12.04 VM which runs as production for me for several internal and external sites.
My own Documents, Pictures, etc... I moved to the NAS some time ago to a folder on my own name.
I have since installed Dropbox and made it into a daemon by following another article and this resulted in my user's home folder having a new folder called Dropbox inside which replicates without issue.
My problems comes from that inside that folder I created a soft link called Documents to the folder named after me on my NAS through the mount. i.e.
/home/user/Dropbox/Documents -> /mnt/nas1/vol1/Files/user
Now whenever I reboot it seems to me like the NAS is not mounting before Dropbox kicks in because rebooting the Ubuntu Server causes Dropbox to wipe all my files. Then if I SSH in and run their python script to restart Dropbox then it finds everything (almost everything) again and starts to upload it. This back and forth is causing me issues and to loose some of my files.
I have for now disabled the Dropbox daomon on my Ubuntu Server and I am currently working with Dropbox to try to restore all of my files.
Once I have done this, I need to come up with a better method.
My original idea was that Dropbox would simply replicate all of my Documents and allow not only everything to be synced between smart phones, tables, laptops, and desktops, but for me to also keep a synced copy on my NAS for backup purposes.
Clearly at this point I cannot do this if I cannot fix the above issue so I am reaching out for some help and I would welcome ideas.