Rsync can be do some pretty destructive stuff you never intended if you are not careful.
what mistakes have you done while using rsync?
Let's keep to one mistake per answer.
|
feedback
|
|
Rsync has the -n option, which is for dry-run. This means it shows you what it is going to do, without actually doing it. Most mistakes (but not all) can probably be summed up into:
| ||||
|
feedback
|
|
Backups before reinstalling two machines:
in another window
in the original window
reinstall server1, restoring IP address and ssh config. The second rsync to server1, hung for the last 15 minutes, comes to life and deletes the backup. | ||||
|
feedback
|
|
Running :
twice on the same source/destination. Goodbye files. Now, where is last night's backup? | ||||
|
feedback
|
|
I just rsynced between a source and destination. the mistake is however, put the src and dest in the wrong order. ARGHHHHHHH | ||||
|
feedback
|