Backup filename errors!

Backup filename errors!

von Niall MacKenzie -
Anzahl Antworten: 1

You'll like this one....

One of our users (creators) had the bright idea of backing up his course to his hard drive. Fair enough, always a good idea to be careful. However, he named the backup zip file "c:\\backup-6017...." thinking it would download it straight to his machine.

So we now have a file in the backup folder that cannot be renamed or deleted. The "c:\\" in the filename confuses Moodle:

Warning: rename(/WWW/moodledata/14/backupdata/c:\\\\\\\\backup-6017-20041021-1204.zip,/WWW/moodledata/14/backupdata/backup-6017-20041021-1204.zip): No such file or directory in /WWW/moodle/files/index.php on line 236
Error: could not rename c:\\\\\\\\backup-6017-20041021-1204.zip to backup-6017-20041021-1204.zip

Our server administrator is worried that a manual deletion of the file might compromise data integrity. Is that a legitimate worry?

Niall

Als Antwort auf Niall MacKenzie

Re: Backup filename errors!

von Petr Skoda -
Nutzerbild von Core developers Nutzerbild von Documentation writers Nutzerbild von Peer reviewers Nutzerbild von Plugin developers
It is safe to delete this file using shell. Anyway you should not keep any backups in moodle data directory for security reasons. Automatic backups should be  stored outside moodle web and data directory. Teacher backups should be erased after backup or restore.

We have fixed many file and backup related issues in 1.4.1+, similar problems should be prevented in the future zwinkernd

skodak