Akostech
asked on
Got Cwrsync daemon working, but I am trying to set some variables in the rsyncd.conf file.
Got Cwrsync daemon working, but I am trying to set some variables in the rsyncd.conf file:
here is my rsyncd.conf file:
use chroot = false
strict modes = false
hosts allow = *
log file = cygdrive/f/rsyncd.log
uid = 0
gid = 0
# Module definitions
[BackupArea]
path = /cygdrive/f/backup/test/%c omputerNam e% <---------- This is how I want it to work...
read only = false
transfer logging = yes
When I try to rsync I am getting this error:
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1506) [sen
der=3.0.7]
Rsync daemon log states:
02/10 16:57:32 [280] rsync: chdir /cygdrive/f/backup/test/%c omputerNam e% failed
: No such file or directory
here is what I read in the rsncd.conf documentation:
You may base the path's value off of an environment variable by surrounding the variable name with percent signs. You can even reference a variable that is set by rsync when the user connects. For example, this would use the authorizing user's name in the path:
path = /home/%RSYNC_USER_NAME%
Any idea what this is not working?
here is my rsyncd.conf file:
use chroot = false
strict modes = false
hosts allow = *
log file = cygdrive/f/rsyncd.log
uid = 0
gid = 0
# Module definitions
[BackupArea]
path = /cygdrive/f/backup/test/%c
read only = false
transfer logging = yes
When I try to rsync I am getting this error:
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1506) [sen
der=3.0.7]
Rsync daemon log states:
02/10 16:57:32 [280] rsync: chdir /cygdrive/f/backup/test/%c
: No such file or directory
here is what I read in the rsncd.conf documentation:
You may base the path's value off of an environment variable by surrounding the variable name with percent signs. You can even reference a variable that is set by rsync when the user connects. For example, this would use the authorizing user's name in the path:
path = /home/%RSYNC_USER_NAME%
Any idea what this is not working?
ASKER
no one has an answer on using Dynamic modules in my rsyncd.conf?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
rsync -v -rlt --progress --stats --delete "/cygdrive/v/SHARE/" "jaxback02::u/%computernam
This worked perfectly. I can't get it to work with the new setup using a daemin