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 Me gusta
6 Me gusta
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 Me gusta
Solo una nota para mí para futuras referencias:
# entra en el contenedor de docker, o ./launcher enter <dockername>
docker exec -it <dockername> bash
# no olvides especificar la base de datos para multisitio al ejecutar la consola de rails
RAILS_DB=db_name rails c
# revisa el comando:
BackupRestore::Backuper.new(Discourse.system_user.id, with_uploads: false)
# luego ejecuta el comando de copia de seguridad
BackupRestore::Backuper.new(Discourse.system_user.id, with_uploads: false).run
Este tema se cerró automáticamente 30 días después de la última respuesta. Ya no se permiten nuevas respuestas.