× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: Delete Time Machine Sparsebundles

fixmacs
Guide

Delete Time Machine Sparsebundles

I have read numerous positngs regarding how to delete the Time Machine sparsebundles. Nothing works, including SSH. I enabled SSH on the NAS, rebooted, then used Mac Apple Terminal to SSH in to the server to delete the sparsebundles. Nothing happens. The files are still there. No error messages. Nothing. How long should the SSH remove files command take to complete? The Time Machine fiiles/folders are huge, terabytes in size, but some are very small. Help. 

 

The process that I used: 

Terminal lobg into to the ReadyNAS successfully,

Change directory suddefssfully.

Give command to remove files, no error message, no feedback. Is there a way to list the files in this directory?

 

# cd /data/.timemachine
# rm -rf *.sparsebundle

Thanks in advance for your advice. 

Model: RN214D43|ReadyNAS 214 Series 4-Bay
Message 1 of 16

Accepted Solutions
mdgm-ntgr
NETGEAR Employee Retired

Re: Delete Time Machine Sparsebundles

That truncate command is what you'd run if the sparsebundle is already very small. Check the PM I sent you. If the files are huge the whole point of the truncation method is to gradually reduce the file size.

 

If you want more space allocated for TM you'd simply go into the web admin interface of the NAS and increase the amount of space allocated to TM and apply your change.

View solution in original post

Message 5 of 16

All Replies
mdgm-ntgr
NETGEAR Employee Retired

Re: Delete Time Machine Sparsebundles

If the files are large then deleting them can take quite a while.

 

You can do e.g.

 

# rm -rf *.sparsebundle &

 

Note:

the # at the start of the line comments it out (this is to try to prevent blind copy & paste, you should always think about every command you enter)

the & at the end means that it will create a sub shell and run it in the background. So you can run other commands in the foreground while you're waiting for the command in the background to complete.

 

The command ls (note that's a lower case L followed by a s) is used to list the files in directories

# ls

# ls -la

 

You can look up the man command for the command.

 

ls is one of a group of basic commands that everyone using SSH should know. If you're going to be using SSH a bit going forward you should look at free tutorials online to learn about basic commands such as ls, cp, mv, rm, grep, cat, kill etc.

 

As your files are huge, deleting the files by truncation may be more effective than deleting them using the rm command.

Message 2 of 16
fixmacs
Guide

Re: Delete Time Machine Sparsebundles

Thanks for your kind remarks.

Yes, I knew the "ls" and "ls -l" commands but forgot how to refresh it. Too much of a hurry as you can see by the typos. I can enter the command again to refresh the volume file list. I did need reminder to comment out the command and appreciate the instructions on how to put these commands into the background. 

 

I appreciate the information about the truncation method. I didn't know that. Is this the correct command? 

# truncate -s 0 filename.sparsebundle

 

 

Message 3 of 16
fixmacs
Guide

Re: Delete Time Machine Sparsebundles

My goal is to create a new Apple Mac Time Machine backup after deleting the existing sparsebundles that are too small. After the sparsebundles are deleted, do I then open FrontView to Backup, then open Time Machine, then increase the size of the existing TM setting or do I disable the TM and then renable it, thus creating a new partition? 

 

Thanks in advance. 

Message 4 of 16
mdgm-ntgr
NETGEAR Employee Retired

Re: Delete Time Machine Sparsebundles

That truncate command is what you'd run if the sparsebundle is already very small. Check the PM I sent you. If the files are huge the whole point of the truncation method is to gradually reduce the file size.

 

If you want more space allocated for TM you'd simply go into the web admin interface of the NAS and increase the amount of space allocated to TM and apply your change.

Message 5 of 16
fixmacs
Guide

Re: Delete Time Machine Sparsebundles

Problem Solved. Thanks for your skillful advice. 

Message 6 of 16
fixmacs
Guide

Re: Delete Time Machine Sparsebundles

Problem NOT solved. The sparsebundle files are still there. The instructions on this Netgear support page do not work. 

 

https://kb.netgear.com/7053/ReadyNAS-Removing-Time-Machine-data

 

None of these methods work. Even SSH into the NAS does not work. I have been working on this problem for three days, about 24 hours of labor. 

 

I do not recommend using the ReadyNAS for Mac Time Machine backups. NOT RECOMMENDED. 

Message 7 of 16
fixmacs
Guide

Re: Delete Time Machine Sparsebundles

Mac users need to know that the following methods recommended by Netgear for removing sparsebundles does not work:

 

1. Removal via Time Machine AFP share (All firmwares) <does not work. files can be seen but cannot be deleted> 

2. Removal via ReadyNAS OS integrated share browser (Firmware 6.0.0 and above): <does not work. logging in fails to display the Backup Share. This invisible share remains invisible to this browser login> 

3. Removal via SSH console (All firmwares) <doesn't work unless you want to sit there for four days waiting for the files to delete> 

 

Attached Image: It is impossiblre to actually log in to the NAS to display the Backup Share. This image, from Netgear Support, depicts an impossible action on my NAS. 

Message 8 of 16
StephenB
Guru

Re: Delete Time Machine Sparsebundles

Finder can access the full data volume of the NAS (including the hidden .timemachine folder) if you use the NAS admin credentials and the SMB protocol.

Message 9 of 16
fixmacs
Guide

Re: Delete Time Machine Sparsebundles

"NAS admin credentials and the SMB protocol."

 

Thank you. I used the NAS admin credentials. I followed the instructions precisely as printed in the instructions. I was unable to access the Backup Share/timemachine. If you tell me what is wrong with the instructions I will give it a try. Thank you.

 

 
Message 10 of 16
fixmacs
Guide

Re: Delete Time Machine Sparsebundles

I can see the files sitting there in both AFP and SMB protocols. I see the files. I know they are still there. I cannot delete them. Error message. "File (0) deleting" and it hangs there forever. I do mean it hangs there for hours. Thank you. I can see the files. 

 

I have used three or four means of accessing the NAS. I used Go-to-Server both AFP and SMB. and I used the direct Browser Access instructions as published in the Netgear support document. The later method does not allow me to see the hidden Backup share. 

Message 11 of 16
fixmacs
Guide

Re: Delete Time Machine Sparsebundles

I also tried to access the NAS using Cyberduck, out of sheer desperation. Cyberduck will not log into the NAS. Whatever is the correct "log in URL or designation" is unknown to me. 

 

"sftp://NAS IP Address on the LAN"

 

 

Message 12 of 16
StephenB
Guru

Re: Delete Time Machine Sparsebundles

The https link doesn't work for me - with 6.9.3 I can see the unhidden folders in the data volume, but the URL won't go into a hidden folder.

 

I'm not a mac guy, so I can't give you exact info for finder.  But with Windows file explorer, using \\nas-ip-address/data/.timemachine with NAS admin credentials would certainly work.

 

 

Message 13 of 16
StephenB
Guru

Re: Delete Time Machine Sparsebundles


@fixmacs wrote:

I can see the files sitting there in both AFP and SMB protocols. I see the files. I know they are still there. I cannot delete them. Error message. "File (0) deleting" and it hangs there forever. I do mean it hangs there for hours. Thank you. I can see the files. 

Ok.  Unfortunately I'm not a mac user, so I don't have any time machine files on my system.

 

Using SFTP instead of SMB/AFP seems unlikely to help.  Using ssh might work, but you'd need experience with the linux command line interface to use that.

Message 14 of 16
fixmacs
Guide

Re: Delete Time Machine Sparsebundles

I am asking a Netgear engineer to contact me. I will give you my son and two cows if you can fix this Time Machine sparsebundle problem. Thank you. 

Message 15 of 16
fixmacs
Guide

Re: Delete Time Machine Sparsebundles

How do I UNSOLVE this thread? I am begging someone from NETGEAR to provide a means to delete sparsebundles for Time Machine. 

 

Thank you in advance. I have been struggling with this problem for five days. At this point I cannot recommend using any ReadyNAS for Mac Time Machine backups. 

Message 16 of 16
Top Contributors
Discussion stats
  • 15 replies
  • 10719 views
  • 2 kudos
  • 3 in conversation
Announcements