Score:2

AlmaLinux 8.6 cloning issue

pk flag

I have cloned an AlmaLinux 8.6 server to another AlmaLinux 8.6 server using the following command. sudo rsync -vPa -e 'ssh -o StrictHostKeyChecking=no' --exclude-from=/root/exclude-files.txt / [[REMOTE-SERVER-IP]]:/

My /root/exclude-files.txt file contains the following things.

/dev
/tmp
/sys
/proc
/backup
/run
/media
/lost+found
/etc/fstab
/etc/mtab
/etc/mdadm.conf
/etc/sysconfig/network*

But after cloning process completed, I can't login to cloned server. After entering the root password, system send me again to the login page. Putty says connection is refused.

Score:0
pk flag

The problem was with the SELinux. My Almalinux server was SELinux enabled. That's why rsync was not able to fully clone the server to the destination server. So I disabled SELinux on both source and destination servers and cloned using following command and everything worked like charm.

sudo rsync -vPa -e 'ssh -o StrictHostKeyChecking=no' --exclude-from=/root/exclude-files.txt / [[REMOTE-SERVER-IP]]:/

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.