Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ReakyMark's avatar

hi guy how can i backup extra folder in spatie/laravel-backup on hosting?

in local host yes it backup all my db with all files.but when i host it i need to seperate setup.

/Home/user
/Home/user/laravel

this sub_domain folder is where all file in public folder copy.

/Home/user/public_html/sub_domain

i success backup but it only take /Home/user/laravel with mysqldump only i missing files on my /Home/user/public_html/sub_domain.

this is my controller backup

\Artisan::call('backup:run');
$output = \Artisan::output();
         
\Log::info("New backup started from admin interface \r\n" . $output);


            return redirect()->back()->with(
                'success',
                'New backup created.'
            );

Please help Thank in advance.

0 likes
0 replies

Please or to participate in this conversation.