Laravel-backup: backup only has db no files

Created on 14 Jun 2016  路  4Comments  路  Source: spatie/laravel-backup

My backup runs saying it is backing up 14660 files. When I find the zip (in storage/app) it has only the mysql db in it.

My source section looks like this:

'files' => [

            /*
             * The list of directories that should be part of the backup. You can
             * specify individual files as well.
             */
            'include' => [
                base_path(),
                base_path('public')
            ],

            /*
             * These directories will be excluded from the backup.
             * You can specify individual files as well.
             */
            'exclude' => [
                base_path('vendor'),
                base_path('node_modules'),
                storage_path(),
            ],

Most helpful comment

Panic over, it's a Windows 10 Explorer problem. In Explorer only the .sql file shows. If I open the file with 7-zip then I can see everything. Sorry to bother you,

All 4 comments

That doesn't sound right. Could you try only backing up the public path, leaving the exclude array empty?

Panic over, it's a Windows 10 Explorer problem. In Explorer only the .sql file shows. If I open the file with 7-zip then I can see everything. Sorry to bother you,

Phew! Glad our package didn't cause this problem 馃槃

How this is still a Windows issue is beyond me. Explorer crashes trying to open the ZIP on Windows 10, 7-zip is fine.

Can't believe it :/

Was this page helpful?
0 / 5 - 0 ratings