4

I'm trying to backup a gallery folder stored in storage/app/public/gallery so I added

'include' => [
    base_path('storage/app/public/gallery'),
],

to the backup config and run 'php artisan backup:run', it gives the error Backup failed because There are no files to be backed up..

I tried a different approach and change it to

'include' => [
    base_path('storage'),
 ],

The backup works but I get everything inside the storage folder except the public folder. It somehow excludes the public directory.

apokryfos
  • 38,771
  • 9
  • 70
  • 114
stalwart1014
  • 451
  • 1
  • 9
  • 29

0 Answers0