socistep;445326 Wrote: > Hi All, > > > I navigated to /media/externalHdd to delete the storage folder there > which had incorrectly been created with the backup job, however I made a > fatal mistake and instead of > > rm -rf storage/* > > I did > > rm -rf /storage/* > > This then deleted the entire 450gb worth of music etc. ....it was too > late to change it once I realised. > >
This form of the rm command is VERY dangerous, as you've discovered, and should always be use with great care. If you use the wrong form of it, you can delete every single file on your hard drive with a single command! I would suggest in the future using some form of the find command to validate what you are passing to the rm command. If this shows what you expect to see, then use the string with the rm command. Another solution would be to call your back up directory something completely different (i.e. ServerBackup). If you can't do this directly, you could create a symbolic link of this name to what you want to back up. At least you learned your lesson without causing any damage that you cannot recover from. -- maggior Rich --------- Setup: 2 SB3s, 3 Booms, 1 duet, 1 receiver. SuSE 11.0 Server running SqueezeCenter 7.3.3, MusicIP, and SqueezeSlave. Current library stats: 27,462 songs, 2,276 albums, 434 artists. http://www.last.fm/user/maggior ------------------------------------------------------------------------ maggior's Profile: http://forums.slimdevices.com/member.php?userid=9080 View this thread: http://forums.slimdevices.com/showthread.php?t=66269 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/discuss
