#1
|
|||
|
|||
Ejecting SparseBundle After Backup
This is a really two questions, I suppose, but I'm trying to write a post-backup script that will automatically compact my sparsebundle files. I have two scheduled backups that I run. One runs Monday, Wednesday and Friday evenings and the other Tuesday, Thursday and Saturday evenings. I store them on a smallish external hard drive, so I find myself having to compact regularly.
I have a short Ruby script that now does this, but it runs before the volume is ejected so only one of the two volumes can actually be compacted and the other one - the mounted one - throws an error. I'd like to eject the now completed volume before running the script. Is that possible? On a related note, I see the new 2.6.x options to eject mounted volume, etc. and maybe that's the way to do it, but I can't find a way to enable these options. They're disabled for me no matter what I try. I've deleted and rebuild my schedule line items several times, but I still can't activate those options. Any thoughts would be appreciated. |
#2
|
||||
|
||||
A sparse bundle is automatically ejected on completion. You'd need to toss your script in the background, wait for the unmount, then compact -- something like
Code:
#!/bin/sh nohup /bin/bash -c "sleep 90; diskutil compact path-to-bundle" &
__________________
--Dave Nanian |
#3
|
|||
|
|||
Ah, okay. That explains why some options are disabled. If they're unnecessary, I guess it makes perfect sense.
Thanks. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Server drive won't mount after backup | rhennosy | General | 1 | 11-09-2007 03:49 PM |
Backup failure on a certain file | bmat | General | 3 | 09-25-2007 09:06 AM |
How to verify a Scheduled Backup? | tuqqer | General | 3 | 12-06-2005 06:50 PM |
(Zero-length) File caused SuperDuper to abort backup | alancfrancis | General | 7 | 08-31-2005 10:42 AM |
Smart Backup Error | bill s | General | 20 | 02-04-2005 09:46 AM |