rsync to backup debian unix
After installing rsync you need to enable rsync in this file /etc/default/rsync,edit this file and you need to change the line following line
RSYNC_ENABLE=false
to
RSYNC_ENABLE=true
nano /etc/rsyncd.conf
uid = nobody
gid = nogroup
max connections = 3
socket options = SO_KEEPALIVE
[debian]
path = /
comment = server backup
auth users = admin,root
read only = true
secrets file = /etc/rsyncd/debian.secrets
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub root@remotehost
RSYNC_ENABLE=false
to
RSYNC_ENABLE=true
nano /etc/rsyncd.conf
uid = nobody
gid = nogroup
max connections = 3
socket options = SO_KEEPALIVE
[debian]
path = /
comment = server backup
auth users = admin,root
read only = true
secrets file = /etc/rsyncd/debian.secrets
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub root@remotehost
Comments
Post a Comment