diff options
-rw-r--r-- | Recreate-gocryptfs.conf-using-masterkey.md (renamed from Restore-gocryptfs.conf.md) | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Restore-gocryptfs.conf.md b/Recreate-gocryptfs.conf-using-masterkey.md index 7aac379..e7527e6 100644 --- a/Restore-gocryptfs.conf.md +++ b/Recreate-gocryptfs.conf-using-masterkey.md @@ -5,7 +5,7 @@ If you lose your `gocryptfs.conf` but have saved your masterkey, you can create ### Complete example -You create your filesystem and store data in it: +(1) You create your filesystem and store data in it: ``` $ gocryptfs -init a @@ -34,13 +34,13 @@ $ echo "hello world" > b/hello.txt $ fusermount -u b ``` -Disaster strikes: Your gocryptfs.conf is lost: +(2) Disaster strikes: Your gocryptfs.conf is lost: ``` $ rm a/gocryptfs.conf rm: remove write-protected regular file 'a/gocryptfs.conf'? y ``` -Restore gocryptfs.conf using the masterkey: +(3) Restore gocryptfs.conf using the masterkey that you saved: ``` $ mkdir tmp @@ -67,4 +67,7 @@ Filesystem mounted and ready. $ cat b/hello.txt hello world -```
\ No newline at end of file +``` + +### Notes +* If you have have used non-default options in `gocryptfs -init` in step (1) you also have to use them in step (3)
\ No newline at end of file |