I have been trying to use rsync to manage the website with my virtual machines from my pc.

Today I had a laravel project and i am tried of FTP, I looke in to it and was not successful.

I even signed up for a free account a digital ocean and it didn't work because they have changed things. :(

I tried all these resources and I couldnt do it.

5 cheapest way
https://www.youtube.com/watch?v=kG8RP6Rk0K8
https://www.digitalocean.com/community/tutorials/how-to-copy-files-with-rsync-over-ssh
https://support.cloudways.com/en/articles/5119485-guide-to-connecting-to-your-application-using-ssh-sftp
https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories

https://www.youtube.com/watch?v=BpTpOV5ZuTQ
https://www.youtube.com/watch?v=SeVY7XSGiII
https://ploi.io/
https://forge.laravel.com/#pricing
https://phoenixnap.com/kb/how-to-rsync-over-ssh
https://phplaravel-1247156-4466840.cloudwaysapps.com/
https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/

 https://vapor.laravel.com/app/

 

================== NOTES

digitalocean

create a new deployment:
1. Select Laravel
2. App Name
3. Server name
4. project name



create vm
[PASSWORD]
rsync:
rsync -avzh ./ [USERNAME]@[HOSTNAME OR IP ADDRESS]:/home/master/applications/[USERNAME]/

rsync -avzh ./ [USERNAME]@[HOSTNAME OR IP ADDRESS]:/home/master/applications/[USERNAME]/
[PASSWORD]

rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress /root/bigfile.txt 198.211.117.129:/root/



sudo apt-get install rsync

format:
rsync OPTION SourceDirectory_or_filePath user@serverIP_or_name:Target

TRANSFER FILE:
rsync ~/Dir1/source.pdf [email protected]:~/Desktop/test

TRANSER FOLDER:
rsync ~/SourceDirectory/* [email protected]:~/Destination

ssh [USERNAME]@[HOSTNAME OR IP ADDRESS]
cd /mnt/g/xampp8/htdocs/laravel/digitalOcean/rsync


local mahine:

ssh-keygen -f ~/.ssh/id_rsa -q -P "" ; cat ~/.ssh/id_rsa.pub

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCZK+svoyg3SHcMUiudeHEfQWjCrMOJep65PqrF4RFptxkyokLQ+W/33+pUVHdlXkIfbHaIYNfuG/i49AxrHxg1xMms8z18SpcydMBxUFFToar6W5mL63TxK7pFkx05L24Sw02poRXeJzZIShYTj5sstZtHrxG9tNSjuYFTXD7XqJoYwUY9nEA8uNa714vhDozreRh4mgmXWF/brL1uqCW44x1eWzQW+Zth9f/0Z3kc/KJiY1mddSfK3VVHyNK7lxUTl/vbLgwU3darMAbGhaegYoqxlJtw6M+HKSstW623BuxnZ8+byCwflD0g9BuDIRWCERQINqBKhS0w3z1o/iVFuEviBS0r9XRfxdPR8JcJ/mbh56r362o9kbI9SlFYfsb1z9U1qB1vASA4b2B+H6c3sUgvpJZO2EEAz3XpEpB70Sudh19tCCESE1hnbCUdQSH8x5FJtENjr1/7vwbLvkR4EUhG6YVG4Qok1zCNMUdMo2azHmE= [USERNAME]@[HOSTNAME OR IP ADDRESS]

RELACE:

REMOTE SERVER:
ls ~/.ssh/authorized_keys
OUTPUT: ls: cannot access '/home/master/.ssh/authorized_keys': No such file or directory

Create directory:

mkdir ~/.ssh chmod 0700 ~/.ssh touch ~/.ssh/authorized_keys chmod 0644 ~/.ssh/authorized_keys