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

Re: Download backup file with download manager

$
0
0
by Ken Task.  

Moodle defaults to saving backup files to moodledata/filedir/.

Nothing in there is humanly readable nor recognizable by a human.

Moodle uses metadata ... the contenthash variable in every row of every file in mdl_files table.   So to find a .mbz file in moodledata/filedir one needs to query the DB for all .mbz files.

mysql> select contenthash,filename from mdl_files where filename like '%.mbz';

example of one .mbz file:

| 111b45cb585b7ce3525f1541e4e0462c3d3eedeb | backup-moodle2-course-2-sa-20190821-0853-nu.mbz

Take the contenthash value above and use in a find command to find exact location:

cd /path/to/moodledata/filedir

find ./ -name 111b45cb585b7ce3525f1541e4e0462c3d3eedeb

will show:

./11/1b/111b45cb585b7ce3525f1541e4e0462c3d3eedeb

note 11 is a subdir of moodledata/filedir/.  1b is a subdir of 11 and inside those there is a file named 111b45cb585b7ce3525f1541e4e0462c3d3eedeb

To make sure it's a backup file (a .mbz):

issue a file -b on that file:

[root@server filedir]# file -b ./11/1b/111b45cb585b7ce3525f1541e4e0462c3d3eedeb

will show:

gzip compressed data, from Unix

which is what a .mbz file is ... a gzipped file.

Using FTP will be an adventure.

Have anything else to browse files?  cPanel File Manager or other?

BTW, what is 'download manager software'?

'SoS', Ken



Viewing all articles
Browse latest Browse all 6815

Trending Articles



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