Saturday, December 26, 2009
Old Dutch Chips Stock Symbol
Let's set as a daemon rsync to copy files remotely.
install rsync:
apt-get install rsync
to run automatically as a daemon, edit the file:
/ etc / default / rsync
And we changed the value of:
RSYNC_ENABLE = true
Now configure the resources that we share, creating the file:
/ etc / rsyncd.conf
similar in content to:
max connections = 2
log file = / var / log / rsync.log
timeout = 300
[RESOURCE]
comment = COMMENT
path = / DIRECTORY
read only = no list = yes
uid = nobody gid = nogroup
auth users = USER
secrets file = / etc / rsyncd.secrets
and configure creating password file:
/ etc / rsyncd.secrets
The contents in the following format:
USER: contrasenya
changed the permissions for greater privacy of the password: chmod
600 / etc / rsyncd.secrets
and restart the service rsync:
/ etc / init.d / rsync restart
Now from a remote computer could view the contents of resources: rsync
USER @ IP:: RESOURCE
and synchronized back with: rsync-
avz USER @ IP:: RESOURCE / subdirectory / DESTINATION
More options in the man.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment