snibox / snibox

Self-hosted snippet manager

Home Page:https://snibox.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import and outport csv data

alansmitheejp opened this issue · comments

I hope
import snipets data by csv file.
outport snipets data to csv file.
thanks.

@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.

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

Thanks for the info!

would also love this, if this project is still even being looked at of course