Don't set the db_dir option in the configuration file to anything you may want to keep: The -R switch (force rescan) will simply remove everything in the specified directory (by running 'rm -rf').
I discovered this the hard way - and I am quite happy that I did not use my home directory as 'db_dir'…
The 'feature' is easy to correct in minidlna.c; the action of the -R switch should be
Don't set the db_dir option in the configuration file to anything you may want to keep: The -R switch (force rescan) will simply remove everything in the specified directory (by running 'rm -rf').
I discovered this the hard way - and I am quite happy that I did not use my home directory as 'db_dir'…
The 'feature' is easy to correct in minidlna.c; the action of the -R switch should be
/Chris
Eek… That's scary. What version of MiniDLNA are you using?