←back to thread

217 points tanelpoder | 3 comments | | HN request time: 0.432s | source
1. johnchristopher ◴[] No.26495328[source]
I don't trust the terminal and myself so much that I when I rsync a remote folder to a local folder I use sshfs to mount that remote folder in read-only mode and rsync from that mount point rather than the remote folder.
replies(2): >>26502829 #>>26505726 #
2. johnchristopher ◴[] No.26502829[source]
And today I shot myself in the foot: I had forgotten to mount the remote folder so rsync synced an empty folder to my work copy.

To-do: add a confirmation of a dry run to my rsync one-liner.

3. Sohcahtoa82 ◴[] No.26505726[source]
Heh...back when I was taking an Intro to Linux class for my CS degree, the instructor was teaching us rsync, and he somehow accidentally nuked his entire home directory.

My lesson I took away from that was to not use rsync because it's too easy to get it wrong and lose a lot of data.