D-Link Forums
The Graveyard - Products No Longer Supported => D-Link Storage => DNS-320 => Topic started by: heliotrope on August 05, 2011, 09:16:51 AM
-
Hello again-
I'm still struggling with the stupid email thing. However, I've got another idea. Is it possible to use a crontab script to mount and unmount the USB drive after rsync? The USB drive has anonymous read/write permissions by default (barf) so I don't want to keep it mounted. I know (I think) how to mount/unmount, but how do I find out if rsync is done/successful?
Thanks!
-
Ask that over on the other site as well - you should get answers there.
-
Again, trollpatrol here. Stop giving me useless information here, and go troll somewhere else.
-
I guess you could parse the output of rsync for common error messages.
But I don't see why you shouldn't unmount if the process was not successful. I'd just do
rsync blah blah; umount /mnt/USB/HD_c1/
( /mnt/USB/HD_c1 being where the USB drive is mounted on my DNS-320)
-
Seems like a good way to do it. Thanks!