Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-22-2009, 05:28 PM
voxer18 voxer18 is offline
Registered User
 
Join Date: Sep 2009
Posts: 8
Auto-Ejecting a Network Drive Post-Backup

***I really did try to search first, both here and on Google***

Synopsis:

We have about 10 Macs in our office and also a Dell PowerEdge Server with a lot of storage on a large RAID and gigabit ethernet available. Several of the computers are already backed up via Time Machine, but I'd like to have bootable copies for everyone ready to go. I'm the test mule.

What I've got thus far:

(1) Marco Polo recognizes I'm at the office, waits a little bit and runs an Automator file that (2) mounts the network drive, (3) sends a growl notification not to interfere, and (4) loads SD via the personalized settings file through AppleScript, which then, after backup, (5) ejects the image that it's updating (Smart backup) on the server and (6) closes SD. (5 & 6 are from within SD.)

So far, so good.

Could someone help me with writing a script to have SD run at the end that does last step of ejecting the network drive?

Our Macs connect to the windows server via SMB. The actual address is: "smb://192.168.0.5/Mac Backups" (or "smb://192.168.0.5/Mac%20Backups" if it can't use the space")

Thanks!!!

jim

Last edited by voxer18; 09-23-2009 at 10:03 AM.
Reply With Quote
  #2  
Old 09-22-2009, 08:01 PM
sjk's Avatar
sjk sjk is offline
Registered User
 
Join Date: May 2004
Location: Eugene
Posts: 252
Related topic:

Is there a way eject a Network mount
Reply With Quote
  #3  
Old 09-22-2009, 09:15 PM
voxer18 voxer18 is offline
Registered User
 
Join Date: Sep 2009
Posts: 8
I saw that and maybe I'm too much of a novice, but I'm confused as to what I actually have to have in there and what - if any - my SMB-based setup has on things. Thanks!

Last edited by voxer18; 09-23-2009 at 10:03 AM.
Reply With Quote
  #4  
Old 09-23-2009, 10:16 AM
voxer18 voxer18 is offline
Registered User
 
Join Date: Sep 2009
Posts: 8
One of the main issues I can't figure out in the other thread linked above is that the Terminal commands are utilizing Disk Utility, but in our setup, my network volume doesn't show up in Disk Utility like a physically attached drive via USB, FireWire, etc.
Reply With Quote
  #5  
Old 09-23-2009, 10:59 AM
voxer18 voxer18 is offline
Registered User
 
Join Date: Sep 2009
Posts: 8
So in terminal I can eject ANOTHER drive with this:

umount -f /volumes/users

But HOW ON EARTH, if the drive I need to unmount is: "Mac Backups" do I account for the space???

These haven't worked:

umount -f /volumes/mac backups
umount -f /volumes/Mac%20Backups
umount -f '/volumes/Mac Backups'
umount -f "/volumes/Mac Backups"
umount -f /volumes/mac_backups
umount -f /volumes/mac\ backups

I'm at a loss...

I didn't name the drive initially, and I could obviously change it, but I'd rather figure it out this way so that I don't have to change my SD file and my Automator file. And I don't want to lose to space.
Reply With Quote
  #6  
Old 09-23-2009, 11:08 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Did you try

Code:
diskutil eject "/Volumes/Mac Backups"
by chance?
__________________
--Dave Nanian
Reply With Quote
  #7  
Old 09-23-2009, 11:11 AM
voxer18 voxer18 is offline
Registered User
 
Join Date: Sep 2009
Posts: 8
Those don't work for our setup (including the "User" drive that unmount under the other input I've used.". Thanks though!
Reply With Quote
  #8  
Old 09-23-2009, 11:18 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
What about the same using "unmount" instead of "eject"?
__________________
--Dave Nanian
Reply With Quote
  #9  
Old 09-23-2009, 11:23 AM
voxer18 voxer18 is offline
Registered User
 
Join Date: Sep 2009
Posts: 8
Okay...this is weird (at least to me):

I found the "df" command from google and saw that I had "/Volumes/Mac Backups-1" mounted. I restarted and reconnected the drive. It showed up like it should as: "/Volumes/Mac Backups" and so I ran:

"umount -f /Volumes/Mac\ Backups"

and it worked! I'm not sure where things got weird...
Reply With Quote
  #10  
Old 09-23-2009, 11:26 AM
voxer18 voxer18 is offline
Registered User
 
Join Date: Sep 2009
Posts: 8
So now that appears to be okay...and I'm trying to decipher in the other thread what needs to go ahead of it in text document to make it an executable script. Any thoughts? Thanks!

jim
Reply With Quote
  #11  
Old 09-24-2009, 11:19 AM
voxer18 voxer18 is offline
Registered User
 
Join Date: Sep 2009
Posts: 8
I just ended up adding a healthy pause to my Automator workflow and then it executes the unmount command for me. FYI - on the two office iMacs that don't leave, I setup to wake from sleep and execute the Automator app via iCal and go back to sleep...gonna rock!!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows equivalent to SuperDuper!? jreffner General 21 08-13-2009 05:36 PM
Backup to cheap network drive impossible? Schalke04 General 4 01-18-2009 05:59 AM
Server drive won't mount after backup rhennosy General 1 11-09-2007 03:49 PM
Network drive won't auto mount Shamyl Zakariya General 7 06-05-2006 04:07 PM
How to verify a Scheduled Backup? tuqqer General 3 12-06-2005 06:50 PM


All times are GMT -4. The time now is 01:52 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.