Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6586

Re: Can't delete user backup files

$
0
0
by Ken Task.  

So it's truely missing!!!!  About the only way I can think of where that *might* happen is if one had keep 5 backups in settings somewhere and then reduced the number to keep to a lesser number.  At some point in time the file was moved to the trashdir and 4 days later or so the cron job emptied the trash.

That should have also cleaned up the record in the DB as well but didn't.  Got any others like it?

Here's a little script I created to help me 'explore' the filedir of Linux based Moodle.  Might help ya discover other files.

ls /var/www/;
echo 'Usage: explore [moodledata] directory located in /var/www/[moodledata]/filedir';
echo 'Working in /var/www/'$1'/filedir';
echo 'CNTL C to CANEL.  Enter to execute.';
read $keypress;
cd /var/www/$1/filedir;
for f in ./*/*/*; do echo "$f"; file -b "$f"; echo "-------"; done

output looks like:

-------
./d1/c9/d1c9e2278049d68e68ce07b1454f410af3c5fc02
Zip archive data, at least v2.0 to extract
-------
./d1/ea/d1eadfba68c5df4972c652f945fe18db27c73353
Microsoft Office Document
-------
./d3/ea/d3eac2e2dbe5eee784d34c48d1d71f33710815d5
Zip archive data, at least v2.0 to extract
-------

Script could be modified to limit out put to finding 'Zip archive data' only ... which would be either .zip files or .mbz's.

Question is ... how did the hash file disappear?

I take it that all other backups are working.

'spirit of sharing', Ken


Viewing all articles
Browse latest Browse all 6586

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>