Copying ConfigServer config files

adeyjones

Member
Apr 26, 2019
20
2
3
Merseyside, UK
cPanel Access Level
Root Administrator
Hi guys
I'd like to copy my ConfigServer config files from one server to another, I have done this before but really can't remember how.
I have logged in to terminal and zipped up config files using:
tar cvfz csfbackup.tgz csf.conf csf.allow csf.deny csf.*ignore

I don't know much linux stuff at all, how do I download this .tgz file to my laptop (wget?) and then what command do I use to re-upload it on the new server in to the /etc/csf directory?

Thanks.
 

andrew.n

Well-Known Member
Jun 9, 2020
610
175
43
EU
cPanel Access Level
Root Administrator
You can simple transfer it using scp or rsync directly to the new server as follows:

scp -r csfbackup.tgz [email protected]:/etc/

or

rsync -av csfbackup.tgz [email protected]:/etc/

and then extract it there
 
  • Like
Reactions: cPRex