Utilizzo di s3: impostazioni "backup con caricamenti"

I just followed the instructions to configure automatic backups and set up file and image uploads to s3

I am a little confused about the following setting:
backup with uploads include uploads in scheduled backups. Disabling this will only backup the database.

So if I have separate buckets for upload and backup, should I check this or not? I wasn’t sure if this would somehow try to store my uploads in the backup bucket…?

By default backups do not include uploads stored on S3 as it’s usually a waste of bandwidth a disk space. You need to enable the hidden include_s3_uploads_in_backups setting in order to change this behavior.

But if I understand your question correctly you don’t want your backups to contain uploads stored on S3, so you don’t have to change any settings.

6 Mi Piace

Thanks! I wonder if it’s worth putting an explanatory note on that setting to that effect?

What explanatory note are you proposing? Can you write it out?

Ciao
Ho la stessa domanda e confermo che non è così ovvio.
Ora nel 2023, l’impostazione “backup con upload” è selezionata per impostazione predefinita.

Ho due bucket su S3 per backup e upload, e mi chiedo cosa succeda se ripristino o migro un backup con quell’impostazione attivata o meno.
Se non attivata, tutti i miei file di upload corrisponderanno correttamente agli upload su S3?
Se attivata, i miei upload verranno sovrascritti o duplicati su S3?

Forse un po’ di risposta in questo file:
line 351 "# when the backup is restored to a site with s3 uploads, it will upload the items to the bucket"

Consiglieresti di selezionare sempre “backup con upload” poiché è un modo più resiliente se si verificano problemi?

1 Mi Piace

L’impostazione nascosta del sito include_s3_uploads_in_backups è ancora disabilitata per impostazione predefinita.

Credo che l’impostazione backup with uploads includerà solo i caricamenti locali se l’hai abilitata ma non hai abilitato anche include_s3_uploads_in_backups.