MAM59 Posted February 21 Share Posted February 21 (edited) I was wondering, why my backup server lost more and more files. Now I have noticed that the SMB setting "show DOT Files" on the main server has been set to "yes". My folder structure for videos contains a subfolder ".actors" for every movie. This was not seen anymore, therefor it was deleted on the backup server. But even worse! the folder and the files within have been deleted on the main server too!!! (no idea how this should have happened ?!?!?) So for everybody who updates: CHECK YOUR SMB SETTINGS after the update! Better not to set the array to autostart. (and of course, the value of this setting was "NO" for years and nobody here twiddled with it. It is even locked if the array is running (all the time)). So could somebody explain what happened and how to prevent such a desaster ? (naah diagnostics won't help it must have happend at the weekend already, now over 200.000 jpgs are gone...) Edited February 21 by MAM59 Quote Link to comment
Mainfrezzer Posted February 21 Share Posted February 21 Im confused. The setting is "hide dot files" and no is the default. Quote Link to comment
MAM59 Posted February 21 Author Share Posted February 21 (edited) 46 minutes ago, Mainfrezzer said: Im confused. The setting is "hide dot files" and no is the default. Ooops, sorry, it is the other way round. Suddently (after the update) it was set to "yes" I was confused too. Somehow it was set to "yes". And surely not by me. The only thing that happened last week was the update to 6.12.8 (and the needed reboot afterwards). MAYBE something before the update changed the ini file and it was later on activated by the reboot ? (again, not me!) Edited February 21 by MAM59 Quote Link to comment
itimpi Posted February 21 Share Posted February 21 34 minutes ago, MAM59 said: Ooops, sorry, it is the other way round. Suddently (after the update) it was set to "yes" I was confused too. Somehow it was set to "yes". And surely not by me. The only thing that happened last week was the update to 6.12.8 (and the needed reboot afterwards). MAYBE something before the update changed the ini file and it was later on activated by the reboot ? (again, not me!) Regardless of that setting, Unraid would not be deleting any files on the main server as that setting just controls whether they are visible over the network. If they did get deleted on the main server it was done by something else. Quote Link to comment
HardwareHarry Posted February 21 Share Posted February 21 59 minutes ago, MAM59 said: .....Somehow it was set to "yes". ..... I have 2 Servers and none of them had that happen. Also just showing the DOT Files does not mean the sever deletes files. Do you have some sort of mirroring backup? Quote Link to comment
Frank1940 Posted February 21 Share Posted February 21 What did you use to update the backup? rsync has a switch which will delete files/directories from the destination if they are missing from the source. (I would avoid that switch like the plague in most backup situations. I have the rsync switches setup so that only new or changed files are copied to the destination and to never delete a file from it! Inadvertent file deletion from the source is often a 'cockpit error' situation that you would like to be recover from using the backup.) 1 2 Quote Link to comment
Opawesome Posted February 23 Share Posted February 23 (edited) After updating my test server, the 'Hide "dot" files:' parameter in settings > SMB settings remained set to "no". I could not find a 'Show "dot" files:' parameter however. Edited February 23 by Opawesome Quote Link to comment
Frank1940 Posted February 23 Share Posted February 23 1 hour ago, Opawesome said: I could not find a 'Show "dot" files:' parameter. Step two is the "SMB" under 'Network Settings'.... 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.