nginx default.conf missing after creating a droplet snapshot
so I configured my droplet with nginx, php-fpm, mariadb, wordpress etc. and I thought it was a good idea to create a snapshot. When I booted back to my droplet, I couldn’t access my site and after some investigating I found that /etc/nginx/conf.d/default.conf is missing, but there was a default.conf.rpmsave which looks like my last version of default.conf.
Before creating a snapshot I did a
# systemctl poweroff
My question is why did this happen and how can I prevent it.
edit: I just did another snapshot just to check it and this time default.conf didn’t disappear. So I don’t know what caused it the first time…I also remember that I had the same problem some time ago, but I was doing all kind of testing at that time and figured I accidentally did it myself.
Question remains though - what can cause default.conf to disappear and become default.conf.rpmsave and how do I prevent it?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×