Import and outport csv data
alansmitheejp opened this issue · comments
alansmithee commented
I hope
import snipets data by csv file.
outport snipets data to csv file.
thanks.
Yash Desai commented
@vavgustov Please make this happen!
I just need a way to backup the data thus it can be restored if there are any issues with the server, Thus the format doesnt matter.
Vladimir Avgustov commented
You can create backups using PostgreSQL commands.
E.g. to export sql dump:
pg_dump snibox_production > snibox_production.sql
More info: https://www.linode.com/docs/databases/postgresql/how-to-back-up-your-postgresql-database/
To export snippets as csv (without label names):
psql
\c snibox_production;
COPY snippets to '/<insert_your_path_here>/snippets.csv' WITH (FORMAT CSV, HEADER);
More info: https://stackoverflow.com/a/1120390
Yash Desai commented
Thanks for the info!
crispybegs commented
would also love this, if this project is still even being looked at of course