Kamis, 27 Januari 2022

, , , , , , ,

server to server migration with rsync

 


What is rsync?

rsync is a way to transfer and synchronize files efficiently between one server and another and only different files are synced. The rsync command is very suitable to be used as a backup, because only different files will be synchronized, so it will save more time and resources.

How to Install rsync on server Linux

install rsync on server Debian/ Ubuntu

apt-get install rsync

install rsync on server Centos/ Fedora

yum install rsync

How to Use rsync

Transfer File Server to Server with RSYNC on port 22

for migration file

rsync filehosteko.zip root@xxx.xxx.xxx.xxx:/home/folder

for migration Directory/ Folder

rsync -avzh folderhost root@xxx.xxx.xxx.xxx:/home/folder

info:
folderhost: folrder you want to migrate/copy
xxx.xxx.xxx.xxx= destination IP server

Transfer File Server to Server with RSYNC with Custom port

for migration file

rsync -e 'ssh -p 1234' filehost.zip root@xxx.xxx.xxx.xxx:/home/folder

for migration Directory/ Folder

rsync -avzh -e 'ssh -p 1234' folderhost root@xxx.xxx.xxx.xxx:/home/folder

info:
folderhost= folder you want to migrate/copy

1234 = destination Port SSH

xxx.xxx.xxx.xxx= destination IP server

Continue reading server to server migration with rsync

Kamis, 25 November 2021

Jumat, 19 November 2021

Rabu, 17 November 2021

mengatasi unable to register authentication agent: GDBus.Error

service dovecot restart 

Redirecting to /bin/systemctl restart dovecot.service

** (pkttyagent:4531): WARNING **: 09:45:25.536: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject 
Error registering authentication agent: GDBus. Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0) 
[ 07:15:26 root@server.gue /var/log]$

Solutions :

mount proc -o remount,hidepid=2 && mount proc -o remount,hidepid=0 && systemctl restart polkit.service

Continue reading mengatasi unable to register authentication agent: GDBus.Error

Senin, 15 November 2021

Kamis, 21 Oktober 2021