pawelmalak / snippet-box

Snippet Box is a simple self-hosted app for organizing your code snippets. It allows you to easily create, edit, browse and manage your snippets in various languages.
MIT License
976 stars 80 forks source link

Feature Request: Export Snippets #25

Open nsmathew opened 3 years ago

nsmathew commented 3 years ago

It would be good to have a feature to be able to export the snippets with metadata in any widely used format like markdown/json etc. The snippet scope could be based the search filters or an option to export all the snippets.

raviwarrier commented 3 years ago

this would be a big +

zDEFz commented 2 years ago

support this

superfunk2000 commented 2 years ago

In combination with an import option, that would also be a nice backup functionality.

zDEFz commented 2 years ago

In combination with an import option, that would also be a nice backup functionality.

You don't really need it though, as you can just copy over the database file which you create with the initial launch.

aindriu80 commented 1 year ago

Can you further elaborate on what to copy over? A backup option is a must

zDEFz commented 1 year ago

Can you further elaborate on what to copy over? A backup option is a must

You use Docker? docker run -d --name=snippet-box -p 127.0.0.1:5000:5000 -v /home/bluetail/snippet-box/data:/app/data --restart unless-stopped imawall/snippet-box:latest

notice where it saves the data, thats where your database is that you have to copy over your new location. However, if you havent executed it like this, you somehow have to copy out the database of the docker container.