ghost-backup icon indicating copy to clipboard operation
ghost-backup copied to clipboard

createGhostAdminCookie() is called even when using the -J option to disable JSON export backup

Open rija opened this issue 2 years ago • 0 comments

Hi @bennetimo,

Using bennetimo/ghost-backup:4, I'd like to use the -J option to just perform database and content backup, but when I do so, backup still wants to create the cookie file.

Cookie creation doesn't really work on my setup (localhost) anyways, and because of the mantadory call to createGhostAdminCookie(), I cannot even bypass it with the -J option.

As I believe that function is only used for the JSON export file, isn't it probably better to call createGhostAdminCookie() only in the parts of the backup.sh and restore.sh scripts that need it?

rija avatar Feb 20 '23 19:02 rija