From 3539c71c07257aa94412fed607acbbde7ccd855f Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 4 Mar 2016 12:14:40 +0100 Subject: [PATCH] howto maintain your cryptpad instance --- readme.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/readme.md b/readme.md index 3569e5fea..af024b64d 100644 --- a/readme.md +++ b/readme.md @@ -34,6 +34,38 @@ To install: node ./server.js +## Maintenance + +To get access to the most recent codebase: + +``` +cd /your/cryptpad/instance/location; +git pull +``` + +To update dependencies: + +``` +# clientside dependencies +bower update; + +# serverside dependencies +npm update; +``` + +To reset your instance of Cryptpad and remove all the data that is being stored: + +If you are using the leveldb adaptor, this is as simple as deleting the folder which contains your leveldb datastore: + +``` +# change into your cryptpade directory +cd /your/cryptpad/instance/location; + +# delete the datastore +rm -rf ./cryptpad.db +``` + +If you are using the mongodb adaptor, [drop the relevant collection](https://docs.mongodb.org/manual/reference/method/db.collection.drop/#db.collection.drop). ## Security