rsync over ssh
by kzo81 from LinuxQuestions.org on (#6DA85)
Hi,
I would like to upload like this, once I did this but something is wrong with the syntax, could you help me out?
Code:sshpass -p secret rsync -aevvv --timeout=3 --remove-source-files 'ssh -p 2222 -o StrictHostKeyChecking=no' /mnt/data/ user1@1.1.1.1:folder1Code:rsync -av --remove-source-files --timeout=3 -e "sshpass -p secret ssh -o StrictHostKeyChecking=no -p 2222" /mnt/data/ user1@1.1.1.1:folder1Thanks
I would like to upload like this, once I did this but something is wrong with the syntax, could you help me out?
Code:sshpass -p secret rsync -aevvv --timeout=3 --remove-source-files 'ssh -p 2222 -o StrictHostKeyChecking=no' /mnt/data/ user1@1.1.1.1:folder1Code:rsync -av --remove-source-files --timeout=3 -e "sshpass -p secret ssh -o StrictHostKeyChecking=no -p 2222" /mnt/data/ user1@1.1.1.1:folder1Thanks