On 23/11/2018 19.27, Carlos E. R. wrote:
On 23/11/2018 17.19, Liam Proven wrote:
I have a new desktop. \o/
I want to copy my home directory -- all of it -- from my old one to my new one. They're on the same LAN. I do not have write access to a local fileserver, though.
So what's the best way? I don't really want to do it over ssh, because there's no need for encryption -- it's pointless overhead.
Doesn't matter if your network is gigabit. If it is 10 gig, then it is a consideration.
Old machine runs Tumbleweed. New one has Tumbleweed, Leap 15 and Win10. Neither is a server for anything at all.
One way is to setup an nfsserver in one of them, and the other is using rsync. If you setup an rsync server in one of them, it should run faster.
I basically use:
rsync --archive --acls --xattrs --hard-links \ --sparse --stats --human-readable --checksum \ /home/ /backup/current/home
Example using an rsync server: server side: /etc/rsyncd.conf: [Mail] uid = cer path = /home1/cer/Mail auth users = cer secrets file = /etc/rsyncd.secrets comment = To make backups of email hosts allow = 192.168.1.127 192.168.1.129 /etc/rsyncd.secrets: # user:passwd cer:xxxxxxxxxxxxxxxxxxxx And enable rsync in xinetd.d: /etc/xinetd.d/rsync: # default: off # description: rsync file transfer daemon service rsync { socket_type = stream protocol = tcp wait = no user = root server = /usr/sbin/rsyncd server_args = --daemon } On client: RSYNC_PARAMS="-a --password-file /home/cer/mailsync.key --exclude .imap/" cd ~/Mail rsync $RSYNC_PARAMS Telcontar.valinor::Mail/in_* . /home/cer/mailsync.key: xxxxxxxxxxxxxxxxxxxx Just that single line. Notice that the password file do not have the same format on server or client. You may want to disable the server side after the job is done. Yet another way to do it: set NFS server on one machine, then use rsync "locally". Or even "mc'. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)