Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup flilename #56

Open
longestdrive opened this issue Jan 23, 2015 · 1 comment
Open

Backup flilename #56

longestdrive opened this issue Jan 23, 2015 · 1 comment

Comments

@longestdrive
Copy link

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

@KuenzelIT
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants