transition icon indicating copy to clipboard operation
transition copied to clipboard

Backup: interface to export database backup including auto-recreate cache files

Open kaligrafy opened this issue 6 years ago • 7 comments
trafficstars

create a zip with sql dump and cache data (at least auto run create cache after import)

kaligrafy avatar Jul 28 '19 05:07 kaligrafy

pg_dump --file "FILEPATH.sql" --host "HOST" --port "PORT" --username "USERNAME" --no-password --verbose --format=p --data-only --exclude-table="knex_migrations" --exclude-table="knex_migrations_lock" --exclude-table="sessions" --schema "SCHEMA" "DATABASE"

kaligrafy avatar May 27 '20 15:05 kaligrafy

We should be able to use the pg package to do the dump and restore

kaligrafy avatar May 27 '20 15:05 kaligrafy

@kaligrafy isn't this more like a infra issue ? People should know how to backup their database I think. Maybe we could add something in the documentation ?

greenscientist avatar Mar 25 '24 14:03 greenscientist

It is mostly for developers and people installing it locally. I tend to always forget the correct settings when exporting (like the ownership and schemas correct config)

kaligrafy avatar Mar 25 '24 14:03 kaligrafy

The goal is to be able to do a full backup of a Transition instance with users and prefs, and then re-import it on another instance, which make sure everything is identical on the new machin/instance

kaligrafy avatar Mar 25 '24 14:03 kaligrafy

ok, so this confirm that simply adding this to the documentation would be enough. (we cannot know how is each person database setup, so we can only gives guidelines)

greenscientist avatar Mar 25 '24 14:03 greenscientist

yes, it could be different then a simple dump/load so we can make sure it is always working on any system

kaligrafy avatar Mar 25 '24 14:03 kaligrafy