I had been using RSYNC to pull backups off of my PC (running DeltaCopy). I have reciently upgraded my computer -- which required me to reinstall everything. At the same time, I went through several updates with my FreeNAS server. In any case, the rsync tasks don't work anymore and I have spent days trying to solve something that would probably take someone with experience about 5 mins to diagnose.
I have most of it working -- except that permissions are ownership/groups are getting messed up in a way that I can't seem to figure out. I don't know if something happened on the windows side to mess with the ownership -- or if something happened on the FreeNAS side :(
Originally, I had the rsync Task set with user; David == That's me :) uid 1001. David is in Homegroup (1001) and in Wheel, and a few others ... but wheel seems significant.
Now, when I run the task now, the first thing it does is set the permissions on the backup directory to 0. Then it proceeds to fail out because it can't read or write into it.
If I run the task as user:root, it works sorta ok, except I get a ton of errors about not setting uid and gid.
I am backing up my computer into the directory: /mnt/Deerhaven1/Users/David/backup
This directory is set with permissions to 775 before I start the process. After the process fails out, the directory is set with permissions to 0.
Any ideas? I don't know what you want me to show you...
Here is the cron log file entry kicking off the process:
Here is a listing from the /var/log/messages file:
In the listing above, DDrive, Freenas, and HDrive are existing directories under the 'backup' directory. RSYNC seems to be trying to create these directories since it can't find them after it has set the backup directory to 0.
Thanks in advance. This is totally driving me nuts.
I have most of it working -- except that permissions are ownership/groups are getting messed up in a way that I can't seem to figure out. I don't know if something happened on the windows side to mess with the ownership -- or if something happened on the FreeNAS side :(
Originally, I had the rsync Task set with user; David == That's me :) uid 1001. David is in Homegroup (1001) and in Wheel, and a few others ... but wheel seems significant.
Now, when I run the task now, the first thing it does is set the permissions on the backup directory to 0. Then it proceeds to fail out because it can't read or write into it.
If I run the task as user:root, it works sorta ok, except I get a ton of errors about not setting uid and gid.
I am backing up my computer into the directory: /mnt/Deerhaven1/Users/David/backup
This directory is set with permissions to 775 before I start the process. After the process fails out, the directory is set with permissions to 0.
Any ideas? I don't know what you want me to show you...
Here is the cron log file entry kicking off the process:
Code:
Jan 9 02:27:00 freenas /usr/sbin/cron[76484]: (David) CMD (PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /usr/bin/lockf -s -t 0 -k "/mnt/Deerhaven1/Users/David/backup" /usr/local/bin/rsync -r -t -a --delete-delay --delay-updates -v -L --exclude-from '/mnt/Deerhaven1/Users/David/exclude-list.txt' "David"@192.168.1.7::"backup" "/mnt/Deerhaven1/Users/David/backup" 2>&1 |/usr/bin/logger -t rsync)
Here is a listing from the /var/log/messages file:
Code:
Jan 9 03:28:11 freenas rsync: receiving file list ... done Jan 9 03:28:11 freenas rsync: rsync: failed to modify permissions on "/mnt/Deerhaven1/Users/David/backup/.": Permission denied (13) Jan 9 03:28:11 freenas rsync: rsync: opendir "/mnt/Deerhaven1/Users/David/backup/." failed: Permission denied (13) Jan 9 03:28:11 freenas rsync: rsync: recv_generator: failed to stat "/mnt/Deerhaven1/Users/David/backup/Masterobiwan.jpg": Permission denied (13) Jan 9 03:28:11 freenas rsync: rsync: recv_generator: mkdir "/mnt/Deerhaven1/Users/David/backup/DDrive" failed: Permission denied (13) Jan 9 03:28:11 freenas rsync: *** Skipping any contents from this failed directory *** Jan 9 03:28:11 freenas rsync: ./ Jan 9 03:28:11 freenas rsync: DDrive/ Jan 9 03:28:11 freenas rsync: rsync: recv_generator: mkdir "/mnt/Deerhaven1/Users/David/backup/Freenas" failed: Permission denied (13) Jan 9 03:28:11 freenas rsync: *** Skipping any contents from this failed directory *** Jan 9 03:28:11 freenas rsync: rsync: recv_generator: mkdir "/mnt/Deerhaven1/Users/David/backup/HDrive" failed: Permission denied (13) Jan 9 03:28:11 freenas rsync: *** Skipping any contents from this failed directory *** Jan 9 03:28:11 freenas rsync: Freenas/ Jan 9 03:28:11 freenas rsync: HDrive/ Jan 9 03:28:12 freenas rsync: Jan 9 03:28:12 freenas rsync: sent 346 bytes received 6,639,460 bytes 577,374.43 bytes/sec Jan 9 03:28:12 freenas rsync: total size is 565,167,531,856 speedup is 85,118.08 Jan 9 03:28:12 freenas rsync: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1664) [generator=3.1.2]
In the listing above, DDrive, Freenas, and HDrive are existing directories under the 'backup' directory. RSYNC seems to be trying to create these directories since it can't find them after it has set the backup directory to 0.
Thanks in advance. This is totally driving me nuts.
Last edited by a moderator: