3 ms·
Similar story but way shorter. Was working on the beginning of Typeform years ago and we had some issues in production, wanted to take a look at the logs. The l
by diggan 8y ago
Similar story but way shorter. Was working on the beginning of Typeform years ago and we had some issues in production, wanted to take a look at the logs. The logs were in a tar archive, so just needed to untar it. Mixed up the arguments in the tar command and instead overwrote the logs with a empty archive. Doh. In the end, lesson learned: be 100% sure arguments are correct if you're stupid enough to run terminal commands in production environments. Obviously, duplicate data (pull down logs locally) if you're planning to read something that can possibly write instead of just reading is another lesson.
- alexpetralia 8y agoLinux commands: with great power comes great responsibility. We're all seduced by the power, but quickly learn the responsibility part!
- tyingq 8y agoThere was a time when tar did not remove a leading / in a tar archive when unrolling it. That required some great caution.
- funkymike 8y agoIf you tar up backups, it is useful to change the permissions on the archive to read-only. It will prevent accidents like this.