ssh -t user1@server1 rsync -nvrc --delete /path/to/dir/to/compare/ user2@server2:/path/to/dir/to/compare/To check differences in a particular file use ssh+diff.
$ ssh -t user1@server1 'ssh -t user2@server2 cat /path/to/file | diff - /path/to/file'
ssh -t user1@server1 rsync -nvrc --delete /path/to/dir/to/compare/ user2@server2:/path/to/dir/to/compare/To check differences in a particular file use ssh+diff.
$ ssh -t user1@server1 'ssh -t user2@server2 cat /path/to/file | diff - /path/to/file'
Nestor Urquiza is a hands-on technologist, security-first thinker and results-oriented business executive. An Electronics Engineer dealing with hardware, embedded/web software development, security, compliance and full business funnel process engineering. Keeping things simple and innovating top-down, from Marketing to Accounting.
No comments:
Post a Comment