Signed-off-by: Diogo Monica <diogo@docker.com>
| ... | ... |
@@ -45,8 +45,7 @@ The Docker client stores the keys in the `~/.docker/trust/private` directory. |
| 45 | 45 |
Before backing them up, you should `tar` them into an archive: |
| 46 | 46 |
|
| 47 | 47 |
```bash |
| 48 |
-$ tar -zcvf private_keys_backup.tar.gz ~/.docker/trust/private |
|
| 49 |
-$ chmod 600 private_keys_backup.tar.gz |
|
| 48 |
+$ umask 077; tar -zcvf private_keys_backup.tar.gz ~/.docker/trust/private; umask 022 |
|
| 50 | 49 |
``` |
| 51 | 50 |
|
| 52 | 51 |
## Lost keys |