4 ms·
And why is rsync superior?
by bretthoerner 13y ago
And why is rsync superior?
- pvnick 13y agoPart of my reasoning is that rsync is specifically made for this kind of thing, whereas git is specifically made to synchronize coding among multiple developers. So my argument is partly theoretical and less practical. But for an argument based in pragmatism, rsync has tools such as the --delay-updates flag, which allows your entire deployment procedure to become a pass-or-fail atomic operation. This kind of assurance slows my hair loss as a systems administrator. AFAIK git has no such tools, but I'm certainly open to being corrected.
- statusgraph 13y agoNote that delay-updates is not actually atomic [but it's closer] =)
- pvnick 13y agoGood point, thank you!
- michaelmior 13y agoAs mentioned in another comment, you can get the rough equivalent of --delay-updates with git fetch followed by git reset or git merge.
- bretthoerner 13y agoThe same thing in git: git fetch <remote> && git reset --hard <remote/branch|tag|hash>