![]() Or if you have rsync and ssh on your nas, just rsync -avz /Users/username/source 192.168.1. Rsync -avz /Users/username/source "/Volumes/Bitcasa Infinite Drive/destination/" In any case, first check and mount if necessary and then start rsync when everything is set up properly not the other way round if then You can just give 192.168.1.106:/media/ as the destination to rsync and rsync will do everything necessary. Kill ps -ef | grep bitcasa | grep -v grep | awk ‘' | xargs killįor the nas, if you can log into it and install rsync and ssh (or have it already installed), you don't need to mount anything. Regarding killing a process by name sins I cant know the PID, I tried with linux command i found: If i manually mount the nfs share I will need to create /Volumes/media and this will result in that if I use the gui to mount the share will use /Volumes/media-1/ sins /Volumes/media vill already exist. What is the best way to make sure a nfs share i always mounted if the nas is available? This might be handled outside the script? When I write this down I realize it is a bit more complicated than I first thought.įirst regarding mount a nfs share, in OsX if you eject a mounted nfs share the folder in /Volumes gets removed. crontab seam to have been removed in mountain lion. I only want the script to try a few times, if it ant ping the nas host it should give up and try the next time the script runs. If files copied successfully delete source files If file does not exist try to mount nfs share. Check if file2 exist on destination 2 (nfs share).Try again (loop?) #bitcasa sometimes stops working and have to be restarted. If file does not exist find bitcasa process and kill it then wait 60sec then start bicasa. If exist then copy source folder to destination 1 ![]() Check if file1 exist on destination 1 (bitcasa) Bitcasa uses 'patented de-duplication algorithms, compressiontechniques, and encryption' to identify duplicate files and therefore the company only keeps a couple, (or even one) of of the files in its servers.I am trying to write a script that does the following
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |