discourse backup creates a backup with uploads, regardless of the site setting that controls that. Is there a way to do a database only backup from the command line? It would be handy to be able do this for a number of reasons.
3 Mi Piace
6 Mi Piace
Thanks! I read enough here that I think I know and remember everything that’s been posted and sometimes forget to search. 
I marked your post as the solution, but here’s the one-liner:
/var/discourse/launcher run app "echo 'BackupRestore::Backuper.new(Discourse.system_user.id, with_uploads: false).run' | rails c"
4 Mi Piace
Solo una nota per me stesso per riferimento futuro:
# entra nel container docker, o ./launcher enter <dockername>
docker exec -it <dockername> bash
# non dimenticare di specificare il database per multisite quando esegui la console rails
RAILS_DB=db_name rails c
# rivedi il comando:
BackupRestore::Backuper.new(Discourse.system_user.id, with_uploads: false)
# quindi esegui il comando di backup
BackupRestore::Backuper.new(Discourse.system_user.id, with_uploads: false).run
Questo argomento è stato chiuso automaticamente 30 giorni dopo l’ultima risposta. Non sono più consentite nuove risposte.