Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi,
i run TM backups to a network folder for two macbooks. both sparsebundles are so big already that they fill up the whole space. I additionally run a local TM backup to the same harddrive (it is connected to a mac mini with leopard server) and the server TM complains about too little space on this hard disk to fulfill the backup. i read already in this forum that there may be a problem with 10.5.4 an TM that results in this error, nevertheless i would like to limit the size of the sparsebundles (the remote backups). as they are both already "full" (meaning that they are huge) how can i compact (or whatever the correct word for that is) them to e.g. set their maximum size to 150GB? i found some compact-commands already but they all asume that the sparsebundle is NOT bigger than the provided size, which in my case is not the case.
Imported from the Apple Support Forums via the Wayback Machine 🔗
first you need to compact the sparse bundle. this will not reduce it's maximal size but it will reclaim any free space in the bundle.
turn off time machine in system preferences and run the following command in terminal
sudo hdiutil compact path/to/bundle
to get the path/to bundle you type
sudo hdiutil compact\ followed by a space and drag the bundle to the terminal window. You'll have to enter your admin password(which you won't see). that's normal.
next you can change the maximal size of the bundle. to set it to 150GB you'd run
sudo hdiutil -size 150g path/to bundle
\
However, remember that TM needs a some free space in the bundle to operate. also, the total amount of data currently on the bundle needs to be less that 150Gb or the command will fail.
0
NoComment·
Imported from the Apple Support Forums via the Wayback Machine 🔗
thx for your reply!
actually my problem is that the data within the sparsebudles is bigger than 150gb, so i'm wondering if time machine can delete the oldest backups until the 150gb are reached...i understand that it's not as easy as simply deleting the folders with the oldest date as i will lose the base backup then.
0
V.K.·
Imported from the Apple Support Forums via the Wayback Machine 🔗
NoComment wrote:
thx for your reply!
actually my problem is that the data within the sparsebudles is bigger than 150gb, so i'm wondering if time machine can delete the oldest backups until the 150gb are reached...i understand that it's not as easy as simply deleting the folders with the oldest date as i will lose the base backup then.
actually, it is that easy and you won't loose anything. Time machine uses hard links to back up multiple copies of the same file and so long as one link remains you are fine. so in a way, there is no base backup - they are all on equal footing so to speak.
However, you'll have to delete old backups by hand - TM won't do it for you. don't do it from finder though. This is best done from TM interface.
start TM and scroll back to the the backup you want to delete. click on the "gears" action button in finder's toolbar and choose "delete backup". You'll have to enter your admin password. repeat as many times as necessary. Then compact and resize the bundle using the commands from my previous post.
0
NoComment·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi V.K.,
i understand the mechanisms of TM. think about the following scenario: you simply delete the "oldest" entry that you can find in the sparsebunlde (that is, let's say, a folder that represents the date "2007-12-03 12:43:02").
so what will happen: i will delete ALL files of the first (the "biggest") backup, and all hardlinked references are crap as the hardlink points to a no longer existing file.
am i wrong with my assumptions?
br,
günther
0
V.K.·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Günter,
You misunderstand how hard links work. when a hard link is created to a file, both the original and the new file act as full copies and deleting one has zero effect on the other. To get rid of a file in TM completely you need to remove every last one of the hard links. You can try it out on something if you wish. the terminal command to create a hard link is ln
so pick a file you don't need and enter the following in terminal
ln path/to/old/file path/to/new/file
the names don't even have to be the same. You'll see that both the old-file and the new-file have the same info. If you trash the old-file and empty trash this will have no effect on the new-file.
0
NoComment·
Imported from the Apple Support Forums via the Wayback Machine 🔗
ok, now i've found my missing link....seems that i didn't get the big difference of soft link vs. hard link...thanks for your advice & help!
br,
günther
0
V.K.·
Imported from the Apple Support Forums via the Wayback Machine 🔗