1#Backup using mysqldump & zip SFTP client.
#2 SCP: copying files & directories one sever to another server remote
1) If we want to copy a file from a local machine to a remote machine:
scp [file_name] remoteuser@remotehost:/remote/directory
2) If we want to copy a file from remote machine to our local machine.
scp user@remotehost:/home/user/file_name .
# 1. Enable roor login in Linxu serer
enable disable password login
Incase of Portnumber change
#3 Rsync (remote sync data to local & remote to remote)
File Transfer rsync /scp
Rsync web root Directory
Rsync the apache conf
Rsync php config file
Rsync mysql conf
#1.1 pairing two servers with ssh key (Optional)
generating ssh keys
ssh-keygen -t rsa -b 4096
ssh-keygen -t dsa ssh-keygen -t ecdsa -b 521 ssh-keygen -t ed25519
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa
Your public key has been saved in /root/.ssh/id_rsa.pub
adding public key to the Destination server which one connect
email@example.com: Permission denied (publickey).
root@murali:~/.ssh# nano authorized_keys