title: Freenas rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1053) [sender=3.0.9]
body: <p>Been at this for several days without luck.</p>
  
  <p>After setting up an initial installation of Freenas complete with all users, groups and shares the USB failed. The data was all fine however, I did not have a backup of the configuration file. The version of Freenas used is FreeNAS-8.3.1-RELEASE-x64 (r13452)</p>
  
  <p>After replacing the USB and setting everything up again - I reconnected the data hard disks and set about recreating all the users and groups again. All was fine until I got to setting up the Rsync backup script that I used for a local copy of the data onto an external USB hard disk.</p>
  
  <p>The script I am using is</p>
  
  <pre><code>#!/bin/sh
  
  # Simple script to backup data from BACKUP_SRC to BACKUP_DST
  #
  # this can be any drive attached to your FreeNAS box ...
  # ... internal drive(s), external USB drive(s), external SATA drives(s)
  
  # Backup source
  BACKUP_SRC=/mnt/DATA/test/
  
  # Backup destination -- DO NOT include the trailing slash
  BACKUP_DST=/mnt/BACKUP1/SHARED
  
  # For a seven day cyclical backup, remove the comment from the line 'DAY=option$
  # set the preferred directory name format 'Monday, etc or Mon, etc'
  # A = long day name   (i.e. Monday, Tuesday, ... Sunday)
  # a = short day name  (i.e. Mon, Tue, ... Sun)
  # This will create a daily backup directory (i.e. backup/Sat backup/Sun)
   DAY=/`date +%a`
  #
   rsync -aqv -HAX --delete $BACKUP_SRC $BACKUP_DST$DAY
  
  # In the event of a drive failure:
  #
  #   1. Replace failed hardware.
  #   2. Recreate datasets and set appropriate permission
  #   3. Reverse paths in this script and re-run it
  
  # end
  </code></pre>
  
  <p>The script is executable with </p>
  
  <pre><code>chmod +x
  </code></pre>
  
  <p>However, the script fails with the following message</p>
  
  <pre><code>rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1053) [sender=3.0.9]
  </code></pre>
  
  <p>There are no log entries in /var/log/messages</p>
  
  <p>Before recreating everything from scratch again - any pointers would be much appreciated</p>
  
  <p>Thanks,</p>