vimdiff rsync -rvnc

vimdiff /path/to/file scp://username@remotehost//path/to/file


If you just want to see what files are different, rather than a diff of the actual files, then you can use rsync --dry-run


You can use rsync in dry run mode, as suggested briefly in another answer. It lists any files that are different.
For that, use the rvnc options (r=recursive, v=verbose, n= dry-run, c=checksum). With rsync in pull mode (rsync [OPTION...] [USER@]HOST:SRC... [DEST]), an example is:

rsync -rvnc root@182.18.158.207:/var/www/html/dev/ .

Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all