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

Go Back   Shirt Pocket Discussions > SuperDuper! > General

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-17-2006, 07:22 PM
bram bram is offline
Registered User
 
Join Date: Nov 2006
Posts: 2
scheduling an unattended backup on MacOSX server

I am looking for a backup solution for MacOSX server. We want to schedule backups on the server with SuperDuper!. Unfortunately the manually tells this is only possible when the user is logged in. We don't want to leave any user logged in to execute a backup. Is there any option to circumvent this limition? Apart from this it SuperDuper! suits our needs.
Reply With Quote
  #2  
Old 11-17-2006, 07:36 PM
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
You have two choices. You can have an unprivileged user logged in with the screen locked (using a password protected screen saver), or you can install and schedule as root.
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 11-18-2006, 08:09 AM
bram bram is offline
Registered User
 
Join Date: Nov 2006
Posts: 2
Quote:
Originally Posted by dnanian View Post
You have two choices. You can have an unprivileged user logged in with the screen locked (using a password protected screen saver), or you can install and schedule as root.
The first one is not an option. I don't want to login each time the server reboots to have backups.

Will the second option still work if the server reboots and nobody logs in as root user ?

Thanks.
Reply With Quote
  #4  
Old 11-18-2006, 08:12 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
Yes: at least in Panther and Tiger, root's crontab runs when no one is logged in, and root has access to the screen, so SD! will run.
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 11-28-2006, 06:00 PM
caleban caleban is offline
Registered User
 
Join Date: Nov 2006
Posts: 4
Question Schedule SD! as root?

Are we talking about:
1. Logging in as the root user and creating a schedule in the SD! UI
2. Creating a launchd script to run as root or something else...?

I'm running Mac OS X Server 10.4.8
Reply With Quote
  #6  
Old 11-28-2006, 06:22 PM
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
Logging in as the root user and creating a schedule.
__________________
--Dave Nanian
Reply With Quote
  #7  
Old 11-29-2006, 07:50 PM
caleban caleban is offline
Registered User
 
Join Date: Nov 2006
Posts: 4
It worked

No users were logged in and the log shows it ran as scheduled. Thanks.
Reply With Quote
  #8  
Old 11-29-2006, 08:19 PM
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
Glad I could help, caleban, and that the solution worked.
__________________
--Dave Nanian
Reply With Quote
  #9  
Old 10-30-2007, 06:35 PM
caleban caleban is offline
Registered User
 
Join Date: Nov 2006
Posts: 4
Do OS X client backups still require a user logged in with the screen locked?
Reply With Quote
  #10  
Old 10-30-2007, 06:36 PM
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
It's as it has "always" been.
__________________
--Dave Nanian
Reply With Quote
  #11  
Old 11-13-2007, 09:47 PM
pch pch is offline
Registered User
 
Join Date: Nov 2007
Posts: 3
Question

Quote:
Originally Posted by dnanian View Post
It's as it has "always" been.
This response is a bit too cryptic for me, unfortunately, and I really need to know the answer; I need an fully unattended backup solution.
  • Can I schedule an unattended SD! backup on MacOSX 10.4.10 by scheduling it as "root"?
  • For security reasons I really would prefer not to login as root; I don't currently have it enabled for interactive login sessions. Since it sounds like it's an issue with the cron job privileges, would either of the following work?
    • setup the backup schedule through the GUI client using my normal login; move the crontab entries to the root crontab manually; or
    • run the SD! gui client as root using sudo (not sure whether the difference between effective and actual uid would matter)

thanks,
Pete
Reply With Quote
  #12  
Old 11-13-2007, 09:50 PM
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
You'll need to log in as root and schedule that way. You can then disable root login again.
__________________
--Dave Nanian
Reply With Quote
  #13  
Old 01-28-2008, 11:45 AM
gmachen gmachen is offline
Registered User
 
Join Date: Jan 2008
Posts: 32
After I scheduled a backup with SD! launched as root, I noticed that I could not unmount the destination FireWire drive. Even after I deleted its schedule. Even after I removed its cron task for the root account manually (why did the latter hang around after deleting the schedule?) with CronniX 3.0.2 <http://h775982.serverkompetenz.net:9080/abstracture_public/projects-en/cronnix/>.

Why won't something "let go" of my FireWire HD, what is that something, and how do I unmount it, so I can swap-out drives for my rotating backups?

Thanks!
Reply With Quote
  #14  
Old 01-28-2008, 12:10 PM
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
I don't know: if you look at open file references with lsof, do you see what process has the drive active?
__________________
--Dave Nanian
Reply With Quote
  #15  
Old 01-29-2008, 10:24 AM
gmachen gmachen is offline
Registered User
 
Join Date: Jan 2008
Posts: 32
Quote:
Originally Posted by dnanian View Post
I don't know: if you look at open file references with lsof, do you see what process has the drive active?
Thanks for the prompt reply!

That's a good idea to correlate a process with a volume, which ought drastically to narrow-down the possibilities for the culprit process.

I haven't yet gotten back over to the server site to try it yet, but when I ran lsof here, I was overwhelmed by its complexity: There's a "DEVICE" column, which seems the only candidate for which hard drive volume, but it has an unintelligible name, e.g., "14,2" instead of the actual name. Is there another Unix command that will cross-reference that obscure device number with the actual name of the hard drive partition?

I looked around the more user-friendly Activity Monitor, but couldn't find a way to show a drive volume column.

Are there any other GUI utilities that will do what I need to track down what's not letting me unmount a hard drive that's ever been scheduled with SD! ?

This occurred the very first time I installed SD! and set up a schedule. Am I the only person this has ever happened to?

Thanks!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
alternating backup snoopy67 General 11 04-04-2009 05:14 PM
Fw Drive Wont Boot Budgie General 3 11-05-2006 01:22 PM
scheduling backup 'when backup volume is available' ChrisRyland General 1 10-14-2006 09:25 AM
Backup External HD (TCP/IP Snap Server) DanAshley General 3 08-29-2006 11:12 PM
(Zero-length) File caused SuperDuper to abort backup alancfrancis General 7 08-31-2005 10:42 AM


All times are GMT -4. The time now is 09:20 AM.


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