From: Jamie C. <jca...@we...> - 2017-09-16 00:20:52
|
This is a bug in the current Webmin release - it will forcibly overwrite any file or directory before you do the backup. I will fix this in the next release though. On 15/Sep/2017 03:31 Alfredo Alcaide <lic...@gm...> wrote .. > Hello to all. > > In Webmin, I was going to dump a database called "proy7" to a file, so in > the "Backup database" screen I completed the complete path and name of file > where I wanted to dump that database. Somehow, I didn´t finish the name of > the file, and typed down only this: > > /var/www/html/proyectos/proy7 > > Unfortunately, that's the exact name of the directory where I wanted to > dump the file. I pressed Enter without checking twice, but I though that > Webmin was going to tell me that he could not create that file, because it > was a directory. But to my surprise, the backup was made. And was shocked > to see that the directory had been deleted, remaining only the file with > the database backup. > > I tried to do the same using the console, but as I expected, it didn't let > me dump the database to a file if the directory existed: > > root@servername:/var/www/html/proyectos# mysqldump -u proyecto6 -p > proyecto6 > proy7 > -bash: proy7: Es un directorio > > (For those who do not know Spanish, it only says that proy7 is a directory) > > Justo to be sure, I've tested all this again, and I confirm that if the > file name matches an existing directory name in the "Path on server" field, > the directory is deleted and replaced by the dump. > > I have been extremely lucky because the web site was just a test, so > nothing important has been lost. And anyways, I have backups of course. But > I think that it would be a good idea if this could be corrected to avoid > certain level of panic fiding out that data can be deleted. > > My system configuration is Debian 9.1, Webmin 1.850, and MariaDB 10.1.26. > Jamie, please tell me if you need further information. > > Kind regards: > > Alfredo |