What is spatie/laravel-backup password and how to overwrite It?

214 views Asked by At

When I do a backup, we transfer It to another server and today I wanted to unzip to check the contents and It asks me for a password.

I checked the config files, documentation, but I cannot seem to find where to find It or how to set It

Package: spatie/laravel-backup

2

There are 2 answers

5
stefket On BEST ANSWER

In the config of spatie/laravel-backup is the following entry:

    /*
     * The password to be used for archive encryption.
     * Set to `null` to disable encryption.
     */
    'password' => env('BACKUP_ARCHIVE_PASSWORD'),

So either is here a password set or have a look to your .env file and search for BACKUP_ARCHIVE_PASSWORD.

0
Eligijus On

As @stefket suggested, we had a BackupZipWasCreated event listener that was overwriting how backups are encrypted.

Kudos to @stefket!