Am 07.03.23 um 17:11 schrieb Mark Misulich:
Hi, I'm trying to copy my home files from one computer to another using rsync. I had already copied some files from home to the new computer with a usb stick, and want to update the information to include all additions to files on the old computer to the new computer. The two computers are linked via cat5 through my my router. I'm going to switch my computer for a newer build, the one I'm using as the source is around 15 years old so I want to transfer all my stored data in /home in the old computer to /home in the new computer. I'm asking the list to look over the bash commands that I've researched to make sure I've got it right.
$ ssh lxmark@xxx.xxx.x.x (enter) then yes then enter pasword for user on the destination computer $ rsync -av /home/mark/ lxmark@xxx.xxx.x.x:/home/lxmark
I use directly the rsync "-e ssh" command, so it's not necessary to first open an ssh session. Password of destination will be asked. rsync -av --progress -e ssh -z /oldhome/mark/ lxmark@xxx.xxx.x.x:/newhome/lxmark I added -z to compress file data during the transfer and --progress because I like to see what happens (...that something happens...) To my (limited) understanding - please anybody correct if I am wrong: When you first open an ssh session, you will then enter the rsync command within that session, which means that you work on the destination machine, thus your command should be reverse: rsync -av mark@old.ip.x.x/home/mark/ /home/lxmark (Wait for somebody to correct me or try with adding --dry-run to see what happens before executing) -- Daniel Bauer photographer Basel Málaga https://www.patreon.com/danielbauer https://www.daniel-bauer.com