Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer seems to work in Big Sur #8

Open
peppermintesse opened this issue Mar 27, 2021 · 2 comments
Open

No longer seems to work in Big Sur #8

peppermintesse opened this issue Mar 27, 2021 · 2 comments
Assignees

Comments

@peppermintesse
Copy link

Am not sure this is still being updated, but: after upgrading to Big Sur (currently running 11.1), running the 2.0.0 script results in no backups being deleted, despite being identified as falling into the cleanup criteria:

sandra@imac ~ % sudo tm-cleanup.sh -d 30 
2021-01-25-032852 will be deleted.
Total deleted: Zero KB
2021-01-31-163127 will be deleted.
Total deleted: Zero KB
2021-02-07-073034 will be deleted.
Total deleted: Zero KB
2021-02-13-213252 will be deleted.
Total deleted: Zero KB
2021-02-20-102921 will be deleted.
Total deleted: Zero KB

I suspect this is a result of a change in Big Sur tmutil command as described in this Apple Discussions thread (https://discussions.apple.com/thread/252036574):

The Big Sur syntax appears to have changed, but you need to specify the volume and the timestamp with -d and -t:
sudo tmutil delete -d /Volumes/Time\ Machine -t 2020-11-18-100936

Thanks!

@peppermintesse
Copy link
Author

This is the message that I'm getting now on 11.3.1:

sandra@imac ~ % sudo tm-cleanup.sh -d 30 
Password:
2021-01-25-032852 will be deleted.
Specify either a path or a mountpoint and timestamp
Usage: tmutil delete [-d backup_mount_point -t timestamp] [-p path]

I'm sure it's a matter of adding the correct switch/es to the tmutil command line within the code, but I don't know enough about tmutil and programming in general to do this myself.

Thanks, folks.

@emcrisostomo emcrisostomo self-assigned this May 21, 2021
@rprimmer
Copy link
Contributor

rprimmer commented Apr 5, 2024

FWIW, I get the same error on Sonoma macOS 14.4.1 23E224 x86_64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants