Nearly executed wrong rsync command which would have overwrote/deleted the wrong files.
I don’t remember what exactly it was, I just didn’t want to rewrite the whole command so I took it from history, quickly checked it and executed it. Then I’ve suddenly seen the output and quickly killed it. I know my heartbeat went up, “Oh no! What the fuck did I do? I do have this backed up, right?”
Thankfully, the wrong rsync command I copied had -n in it. That means dry-run - display what would be done but don’t perform the actions.
I guess I should always first do the dry-run and see if I am satisfied.
This time I was just lucky.
Nearly executed wrong rsync command which would have overwrote/deleted the wrong files.
I don’t remember what exactly it was, I just didn’t want to rewrite the whole command so I took it from history, quickly checked it and executed it. Then I’ve suddenly seen the output and quickly killed it. I know my heartbeat went up, “Oh no! What the fuck did I do? I do have this backed up, right?”
Thankfully, the wrong rsync command I copied had
-n
in it. That means dry-run - display what would be done but don’t perform the actions.I guess I should always first do the dry-run and see if I am satisfied.
This time I was just lucky.
have over-written