#1
|
|||
|
|||
MacBook Pro Sleeping During Backup
Last week I upgraded my 2015 MacBook Pro to macOS 10.13.4 and SuperDuper! to 3.1.4. I have a scheduled backup that occurs at 4:14 every morning -- the MacBook Pro is scheduled for wakeup at 4:14 and SuperDuper! is scheduled for 4:14. Ever since the upgrade, my MacBook Pro wakes up at the correct time and SuperDuper! launches, but the computer goes back to sleep before the backup starts. This morning, SuperDuper! had stopped on the countdown pop-up, but resumed backing up once I woke the computer. Some mornings it gets past the pop-up, but goes to sleep before the backup gets started and resumes when I wake the computer. Any thoughts on what might be causing this?
|
#2
|
||||
|
||||
We're doing two things to try to keep the Mac awake. First, as soon as our time-based schedule driver recognizes it's going to have to run copy (this should only take fractions of a second), we hold the Mac awake with "caffeinate":
Code:
/usr/bin/caffeinate -t 180 &> /dev/null & Second, when SuperDuper! starts a copy (basically, when it gets to the status window), we hold the Mac awake with a power assertion that says "don't go to sleep". When you saw this happen, did we go to sleep before three minutes had elapsed?
__________________
--Dave Nanian |
#3
|
|||
|
|||
I'm pretty sure the MacBook went back to sleep before three minutes was up. I'll check the system log when I get back home later today.
|
#4
|
||||
|
||||
Was the lid closed?
__________________
--Dave Nanian |
#5
|
|||
|
|||
The lid was open.
|
#6
|
|||
|
|||
One more thing to add -- I upgraded to macOS 10.13.4 last Thursday and Friday morning was the first time I noticed sleep interfering with SuperDuper!, which I had not upgraded to 3.1.4 yet (I did later that day). Something must have changed on the macOS side.
|
#7
|
||||
|
||||
Yes, that's quite likely, and I'm trying to determine what.
__________________
--Dave Nanian |
#8
|
|||
|
|||
One more piece of the puzzle -- The SuperDuper! log doesn't show it starting at 4:14, it shows it starting at 4:58, which is when I logged on. Since it was active, I had assumed it had started at the scheduled time and paused, but it looks like it started when I logged on.
For what it's worth, when I upgraded, I deleted the existing SuperDuper! schedule entry and re-entered it. Nothing jumps out at me in the macOS system.log file. |
#9
|
||||
|
||||
It's possible that they either put the Mac to sleep, ignoring our caffeinate call, or they are refusing the allow us to run until you're logged in, because we have a UI.
If you set it to run a few minutes from now, lock your screen (I assume you're not actually logged off) and wait, say, five minutes so you can see if the backup drive is going, does it go while you watch and it's definitely not sleeping?
__________________
--Dave Nanian |
#10
|
|||
|
|||
I think you're on to something, Dave. I scheduled a 5:23 backup and locked the screen. I came back at 5:28, unlocked the screen, and SuperDuper! was on the countdown pop-up, like this morning.
|
#11
|
||||
|
||||
Yep. OK, so this is why the Scheduling section of the User's Guide warns that it won't work if the screen is locked - Apple keeps changing the behavior here, and it's obviously not letting our app launch when the screen is locked...
__________________
--Dave Nanian |
#12
|
|||
|
|||
At least now I know what is going on. Thanks!
|
#13
|
||||
|
||||
We'll see if we can get around the new behavior somehow...but, it shouldn't be too bad running while you're at the Mac. (I do it all the time.)
__________________
--Dave Nanian |
#14
|
|||
|
|||
I made another observation last week on this. As stated before, SuperDuper! is not starting at 4:14 am when my MacBook Pro wakes. However, when I get up later, if I tap a key or click the mouse to wake the screen and don't do anything else, SuperDuper! will run even though I am not logged in.
|
#15
|
||||
|
||||
I think we've managed to work around this in the next update, Ric.
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Startup Disc and Hard Drive Partitioning Questions | Paint Guy | General | 15 | 10-27-2010 02:25 PM |
New user here..how do I backup my Macbook plus external HDD? | 12frets56 | General | 2 | 04-11-2008 02:24 PM |
G3 backup for Macbook User files | Allar | General | 3 | 03-20-2008 03:15 PM |
Server drive won't mount after backup | rhennosy | General | 1 | 11-09-2007 03:49 PM |
New MacBook C2D w/ OSX v10.4.8 crashes SD. | sfm | General | 3 | 12-11-2006 09:07 AM |