Shirt Pocket Discussions

Shirt Pocket Discussions (https://www.shirt-pocket.com/forums/index.php)
-   General (https://www.shirt-pocket.com/forums/forumdisplay.php?f=6)
-   -   Disable Time Machine before cloning (https://www.shirt-pocket.com/forums/showthread.php?t=6889)

garoomph 08-02-2014 04:40 PM

Disable Time Machine before cloning
 
I've had it happen that booting from a clone with the Time Machine drive still attached would start a backup, after which the system on the internal drive refused to do incremental backups. Since this wastes time & space it'd be great if SD could disable TM before cloning, or just disable it on the clone. I suppose a script can do this?

dnanian 08-02-2014 05:07 PM

Since Time Machine is a black box, doing this would require using undocumented (and thus subject to change) interfaces, something I'm loathe to do.

On top of that, disabling Time Machine on destinations would both make any restored backup also not back up with Time Machine, which would be quite bad.

I'd suggest simply disconnecting the Time Machine volume, should this prove an issue for you...

garoomph 08-02-2014 05:26 PM

Quote:

Originally Posted by dnanian (Post 32914)
Since Time Machine is a black box, doing this would require using undocumented (and thus subject to change) interfaces,

man tmutil (disable)

I assume before/after copy scripts run as root? It's not in the manual.

Quote:

I'd suggest simply disconnecting the Time Machine volume, should this prove an issue for you...
It's on the same drive as one of my clones...

dnanian 08-03-2014 07:53 AM

tmutil disable turns backups off for now, as opposed to on a specific drive.

garoomph 08-03-2014 08:09 AM

Quote:

Originally Posted by dnanian (Post 32916)
tmutil disable turns backups off for now

That's fine, an after copy script can enable them again. The re-scan will take a while, but no space will be wasted.

dnanian 08-03-2014 01:16 PM

Feel free to do this with some shell scripts if you want... it's not something I'd want to put in the app.


All times are GMT -4. The time now is 04:35 PM.

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