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

Re: How to I bulk delete Automated backups

$
0
0
by Ken Task.  

@Curt

Using whatever tool you have to query MySQL DB: Finds name,filesize,contenthash backup file metadata in DB

select filename,filesize,contenthash from `mdl_files` where (`mimetype` like "application/vnd.moodle.backup" and `filename` not like ".");

Will get something like this:

+----------------------------------------------------------------------+----------+------------------------------------------+
| filename                                                             | filesize | contenthash                              |
+----------------------------------------------------------------------+----------+------------------------------------------+
| backup-moodle2-course-2-backuptest-20121211-0035.mbz                 |    20287 | 129717ceaec0752f916d8a73c1a96f218fba59ce |
| backup-moodle2-course-38-ipads_1-20130123-1002.mbz                   | 15453225 | e2c2a07ff231e6f9e0064c44ae4a66a9a27c31c5 |

At the very bottom, one would see the front page backup:

| backup-moodle2-course-1-mdl25-20130901-1507.mbz                      |  5698873 | 8bb50981e095ef890cfc9e0cbc0b4140ba187138 |
+----------------------------------------------------------------------+----------+------------------------------------------+

Using whatever tool you have to browse files one could verify the file size using the contenthash to locate the directories/contenthash file name.

'spirit of sharing', Ken

 


Viewing all articles
Browse latest Browse all 6612

Trending Articles



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