On 2023-08-22 10:22, cagsm wrote:
Support, trying to move the content of (almost whole) /home over to a different physical disk. I only have remote access and can only ssh into the machine.
Doesnt this get me into trouble of some? locked? files of this user i am sshing with into the users account on this machine?
can I su - and then still unmount whole /home and move it over to a different partition on a different disk?
what tools do do this best? like rsync? some kind of mirror parameters?
any hints appreciated. thanks for having me.
You have to login, actually login, as root, not su, because a) at some point you have to umount /home, and b) because to make a perfect copy nothing should be in use at the moment, meaning no user that has /home should be active. If you can not login as root, create a new user that has a different {HOME} The copy can be done perfectly with rsync. Something like this: OPTIONS="--archive --acls --xattrs --hard-links --sparse \ --stats --human-readable " rsync $OPTIONS \ --exclude=/lost+found --exclude=/dev --exclude=/sys \ --exclude=/proc --exclude=/run \ --exclude=/data/** --exclude=/mnt --exclude=/other \ --exclude=/media --exclude=/var/lib/samba/lock/ \ --exclude=/var/run/ \ / destination -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))