laravel-backup
laravel-backup copied to clipboard
Backup flilename
Can you confirm wqhether it's possible to append or prepend a filename to the backup. I'd like to be able to add the database name (from the config file) to the filename. I saw a closed issue relating to filenames but couldnt get it to work and assume not yet supported Thanks
You may define the filepath+name as an argument for the command
protected function getArguments()
{
return array(
array('filename', InputArgument::OPTIONAL, 'Filename or -path for the dump.'),
);
}
So
php artisan db:backup app/storage/dumps/YOURNAME.sql
stores with your specified name.
I'm probably pretty late, but maybe the issue gets cleared.