nlfiedler / timedog

Displays set of files that were saved in Time Machine backups
GNU General Public License v2.0
220 stars 12 forks source link

do not work with Big Sur and APFS #17

Closed wolfogre closed 4 months ago

wolfogre commented 3 years ago
$ timedog
None or only one Time Machine backups found at /usr/local/bin/timedog line 197.

image

Maxim-Inv commented 3 years ago

The same issue

nlfiedler commented 3 years ago

I don't have BigSur yet, but when I do, I'll take a look. Thanks for the report.

bermudalocket commented 3 years ago

I don't have BigSur yet, but when I do, I'll take a look. Thanks for the report.

Hey @nlfiedler, any update on this? I can take a look myself if you are preoccupied with other projects :)

nlfiedler commented 3 years ago

@bermudalocket I will update to Big Sur in the next week or so, at which point I can try to reproduce this. However, don't let that stop you from trying it yourself. I welcome any help you can offer. Thanks.

michaelvandorpe commented 3 years ago

Same issue here, and also using Big Sur and APFS.

nlfiedler commented 3 years ago

Sorry it's taken me so long to finally try this out. The version of timedog from commit 12947dd works fine for me with Big Sur backing up an APFS-formatted SSD to an HFS-formatted external drive. Ironically, with commit 3848923 I now see the None or only one Time Machine backups found error. So, the fix worked in reverse for me. I suspect there are idiosyncrasies with Time Machine and getting it just right is rather difficult.

antimirov commented 3 years ago

I'm saving my data to a network SMB share on a Synology NAS, the whole volume there is BTRFS.

antimirov commented 3 years ago

So what are the directories you have in that /Volumes/ backups directory? We may include several patterns to support different schemas.

michaelvandorpe commented 3 years ago

@nlfiedler you are backing up to an HFS-formatted external drive. For me, the problem is with backing up from an APFS internal drive to an external APFS external drive. Not sure whether that's worth pointing out...

michael@MacBook-Pro Time Machine 2TB % ls 2021-03-15-214154.previous backup_manifest.plist 2021-03-16-092234.inprogress

nlfiedler commented 3 years ago

Here's the truncated listing:

$ ls -l /Volumes/TMbackup/Backups.backupdb/kuro
...
drwxr-xr-x@  - root 16 Mar 20:13 2021-03-16-201300
drwxr-xr-x@  - root 16 Mar 21:12 2021-03-16-211253.inProgress
lrwxr-xr-x  17 root 16 Mar 20:13 Latest -> 2021-03-16-201300
pfahlstrom commented 3 years ago

I have the same issue. I mounted the backup sparsebundle from the NAS, and in /Volumes I saw:

Time Machine Backups

I ran timedog and it said:

None or only one Time Machine backups found at /usr/local/bin/timedog line 197

Now in /Volumes I see both:

Time Machine Backups Time Machine Backups 1

Both of them contain only 2 files via ls:

2021-03-18-101627.previous backup_manifest.plist

However in the Finder there is only one Time Machine Backups volume visible, and it contains 32 different backup files, similar to wolfogre's screenshot above. Running tmutil listbackups also shows the 32 backup files. I don't know why ls isn't showing them.

If I drag an individual backup from the finder window to the terminal, it tells me its path is actually this:

/Volumes/.timemachine/9F513329-21C6-4586-8CFA-28DE51D5213C/2021-03-18-101627.backup/2021-03-18-101627.backup

Navigating through shows me that all of those backups listed in the Finder window appear in the 9F5... directory.

nlfiedler commented 3 years ago

Set up a new mini and APFS-formatted backup disk, and yes, tmutil behaves strangely and any attempt at listing the TM volume proves to be futile. Apple has made TM really weird now, I suspect doing anything beyond using their basic graphical interface is just asking for trouble.

antimirov commented 3 years ago

Yep, yesterday it just refused to connect to my NAS share with some authentication error. It took one week and a minor macOS update to achieve this, just great.

rossburton commented 3 years ago

Latest timedog, latest Big Sur backing up over the network. Can't seem to make it work...

warmup72 commented 3 years ago

After my update to Big Sur yesterday, I am shocked that timedog no longer works with APFS. Is there any chance that it will get back to normal?

dennisbirch commented 3 years ago

I am running Big Sur on a 2019 MacBook Pro with Time Machine on an external drive attached via USB. Timedog has been working just fine for me the several times I've tried it in the last couple of days (to investigate why my backups have recently gotten so huge).

warmup72 commented 3 years ago

Since Timedog doesn´t work I use Backuploupe. SOu can try it, but do see what ™ does i think you must buy a licence. But ist really good

gingerbeardman commented 2 years ago

+1

nothing new to add to what has been said before.

huyz commented 2 years ago

Same thing on Monterey (Apple Silicon) with an APFS Time Machine volume.

kschmid commented 2 years ago

For me it works well on local USB-Drive, but could not get it to work with Synology NAS. If the USB-Drive is not mounted, I get the same error message. (M1, Monterey).

arekkusu42 commented 5 months ago

I had the same problem in Sonoma 14.4, backing up an M3 MBP to an old HFS-formatted Time Capsule.

In my setup, "tmutil machinedirectory" returns "/Volumes/Backup of \<boot partition>" which only contains a single YYYY-MM-DD-HHMMSS.previous. The actual incremental backups are stored on the hidden /Volumes/.timemachine/\<UUID>/ which timedog fails to locate.

I modified my timedog to work, by removing the tmutil machinedirectory query and replacing it with tmutil listbackups -m which forces the backup volume to be mounted. This also removes timedog's -D option. I have not tested this on older setups, so YMMV. timedog.zip

varenc commented 5 months ago

@arekkusu42 your fork gave me some success! Thanks.

nlfiedler commented 4 months ago

Thank you for tracking down the fix for this, I've committed the change. I'm going to mark this issue as closed. If anyone finds that the issue has returned, feel free to open a new issue with details. Thank you.