The Basics
The first command you ran, included the rm -rf
flag, this (as you are no doubt aware of) removes the files and folders within the given directory (i.e. recursive deletion). It means that you will no longer be able to recover from this backup. It did not affect the parent (or higher) directories.
The rm
command should be used with caution, as you rightfully point out. It can absolutely delete everything (permanently) with one wrong command. I, therefore, recommend to always use the TimeMachine command itself to delete the backup - included since OS X Lion.
Deleting with Time Machine
Terminal:
sudo tmutil delete /Volumes/drive_name/Backups.backupdb/[MAC-NAME]/YYYY-MM-DD-hhmmss
Manually:
As you are concerned with maintaining the interity of the backup setup, you may like to consider using the following method instead (extracted here):
- Enter time machine
- Select the backup
- Right click on the backup (on the finder window)
- Select 'Delete Backup' (you may be prompted for a password)
Conclusion
You first command did not affect the root directory to which any past or future backups are/will be stored. You can test it out by going to TimeMachine in the menu bar and selecting Back Up Now, alternatively, you can try to recover to a backup made an hour earlier to discover whether the data is there, it is, because the rm
command only removed the contents of the given directory.
Additionally: When rm
becomes destructive
It is not unless you are totally new to the command or become complacent in your ability to apply correct procedures with the command, that you begin to make mistakes. If you are interested in some of the donts when using the command, how about this and this article, both make for an amusing read if you have a minute spare.
I hope I was able to interpret your question correctly, do let me know if that made sense to you or if you have any follow-up questions. I'm more than happy to assist where I can.