Backup laravel pulse tables #1772
Replies: 2 comments
-
Produce the same error for me. I believe there isn't a way with If you can't use a separate database and have to restore the dump, easiest way is to remove them from the dump: sed '/^INSERT INTO `\(pulse_aggregates\|pulse_values\|pulse_entries\)`/,/;$/d' source.sql > destination.sql
|
Beta Was this translation helpful? Give feedback.
-
I use the laravel-backup for backing up the database, here's the command executed via cron
backup:run --only-db --only-to-disk=s3-backup.
Everything is fine, backups exist, but when I restore a backup
I get this error:
ERROR 3105 (HY000) at line 1116: The value specified for generated column 'key_hash' in table 'pulse_aggregates' is not allowed.
Interestingly, when I do the backup manually, like this:
mysqldump --no-tablespaces --opt --user=.... --password=... ... | gzip > /var/www/...../prod.sql.gz,
there are no problems.
Beta Was this translation helpful? Give feedback.
All reactions