Categories
Linux

rsync with any ssh port linux command

rsync -avz -e “ssh -p 2222” /source/directory/ host@domain.com:/destination/directory/

Categories
Linux

tar file copy via ssh

( cd SOURCEDIR && tar cf – . ) | ssh target_address “(cd DESTDIR && tar xpf – )”