Problems trying to rsync to FreeNAS box

Status
Not open for further replies.

Lucien

Dabbler
Joined
Nov 13, 2011
Messages
34
I'm trying to set up rsync to push from my PC to a FreeNAS box. So far I've set up a test directory structure:

Code:
+---Move2
      |   Test 1.txt
      |   Test02.txt
      |
      +---Directory 1
      |       Testd1 1.txt
      |       Testd1-2.txt
      |
      \---Directory02
              Testd2 1.txt
              Testd2-2.txt


Then I ran
Code:
rsync -iirtvv --progress ./Move2 Bob@192.168.11.155::archive


Forgetting to add the trailing slash after Move2. As expected that created the directory Move2 in the destination folder, but I couldn't access it, and rsync couldn't transfer all the files:

Code:
opening tcp connection to 192.168.11.155 port 873
sending daemon args: --server -vvtre.iLs "--log-format=%i%I" . archive/  (5 args)
sending incremental file list
cd+++++++++ Move2/
<f+++++++++ Move2/Test 1.txt
             22 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=7/9)
<f+++++++++ Move2/Test02.txt
             29 100%   28.32kB/s    0:00:00 (xfr#2, to-chk=6/9)
cd+++++++++ Move2/Directory 1/
<f+++++++++ Move2/Directory 1/Testd1 1.txt
             71 100%   69.34kB/s    0:00:00 (xfr#3, to-chk=3/9)
<f+++++++++ Move2/Directory 1/Testd1-2.txt
             55 100%   53.71kB/s    0:00:00 (xfr#4, to-chk=2/9)
cd+++++++++ Move2/Directory02/
<f+++++++++ Move2/Directory02/Testd2 1.txt
             84 100%   82.03kB/s    0:00:00 (xfr#5, to-chk=1/9)
<f+++++++++ Move2/Directory02/Testd2-2.txt
             27 100%   26.37kB/s    0:00:00 (xfr#6, to-chk=0/9)
default_perms_for_dir: sys_acl_get_file(Move2/Directory 1, ACL_TYPE_DEFAULT): Permission denied, falling back on umask
rsync: mkstemp "/Move2/Directory 1/.Testd1 1.txt.ZEeQVa" (in archive) failed: Permission denied (13)
rsync: mkstemp "/Move2/Directory 1/.Testd1-2.txt.hL6fWG" (in archive) failed: Permission denied (13)
default_perms_for_dir: sys_acl_get_file(Move2/Directory02, ACL_TYPE_DEFAULT): Permission denied, falling back on umask
rsync: mkstemp "/Move2/Directory02/.Testd2 1.txt.KiAwKl" (in archive) failed: Permission denied (13)
rsync: mkstemp "/Move2/Directory02/.Testd2-2.txt.0EKh6j" (in archive) failed: Permission denied (13)
total: matches=0  hash_hits=0  false_alarms=0 data=288

sent 792 bytes  received 827 bytes  1,079.33 bytes/sec
total size is 288  speedup is 0.18
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]


Doing a ssh into my FreeNAS box and then "ls -al" I see:

Code:
total 82
drwxrwx---  3 Bob bobgroup          3 Jul 14 22:33 ./
drwxr-xr-x  6 root   wheel          6 Jul 13 21:56 ../
d---------  4 Bob bobgroup          6 Jul 14 22:06 Move2/


Looks like the reason I can't access the directory is because of missing permissions, which I suspect is also the reason why rsync is throwing those "Permission denied" errors.

I've also tried the same rsync command above *with* the trailing slash. That results in
Code:
total 115
drwxrwx---  4 Bob bobgroup           6 Jul 14 22:06 ./
drwxr-xr-x  6 root   wheel           6 Jul 13 21:56 ../
d---------  2 Bob bobgroup           4 Jul 14 22:08 Directory 1/
d---------  2 Bob bobgroup           4 Jul 14 22:09 Directory02/
----------  1 Bob bobgroup          22 Jul 14 22:06 Test 1.txt
----------  1 Bob bobgroup          29 Jul 14 22:07 Test02.txt

which again leaves me unable to access any of the files or directories unless I do a chmod.

So I guess the question is, what am I missing to get the right permissions set on the files? The destination rsync directory has the right permissions set (I think) but they don't seem to carry down to the contents, even though I'm running rsync as the same user who is in the same group. (And yes, the rsync module on the FreeNAS box has user: Bob and group: bobgroup.)
 
Status
Not open for further replies.
Top