r-darwish / topgrade

Upgrade everything
GNU General Public License v3.0
3.35k stars 160 forks source link

Time Machine support #969

Open pixelcmtd opened 2 years ago

pixelcmtd commented 2 years ago

I want to suggest a new step

Which tool is this about?

Apple's Time Machine, or more precisely: tmutil(8).

Which operating systems are supported by this tool?

macOS

What should Topgrade do to figure out if the tool needs to be invoked?

tmutil destinationinfo

(doesn't set exit code)

If Time Machine is configured

====================================================
Name          : Mydisk
Kind          : Network
URL           : smb://me@My-server._smb._tcp.local/Mydisk
Mount Point   : /Volumes/Backups of My machine
ID            : AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA

If Time Machine is not configured

tmutil: No destinations configured.

Which exact commands should Topgrade run?

tmutil startbackup -b