Hello,
I'm looking to Rsync via SSH from an Ubuntu (18.04 LTS) to a TrueNAS Core server (13.0-U3.1), however, I'm consistently running into the following error message:
Rsync moves across all folders to TrueNAS Core, however, none of the files is synced across, I'm assuming this is a permissions issue though I'm yet to track down the reason.
User & Group Settings
I've created an SSH Keypair in TrueNAS and have placed the generated private key on the Ubuntu server along with placing the public key in the SSH Public Key section on the TrueNAS user I'm using for SSH access, the user has a home directory set as required by the SSH Public Key setting.
The user is part of a group which is set under Group in the ACL settings for the dataset I'm syncing to, the @group has ACL = Allow, Permission Type = Basic, Permissions = Full Control and Flags = Inherit.
SSH Service Settings
Allow Password Authentication has been disabled, you can only connect with SSH via keys.
SMB
Created with the same @group permissions outlined above, the path is used in the Rsync script.
Servers
The servers are on the same network.
This feels like it may be something simple as I previously had Rsync working, however, I had to start again from scratch and I'm left with the error at the start of the thread.
Any advice would be appreciated.
Thank you
I'm looking to Rsync via SSH from an Ubuntu (18.04 LTS) to a TrueNAS Core server (13.0-U3.1), however, I'm consistently running into the following error message:
user@ubuntuserver:~$ sudo /folder/rsync.sh
sending incremental file list
rsync: [generator] failed to set permissions on "/mnt/pool-name/dataset-name/.": Operation not permitted (1)
./
rsync: [generator] failed to set permissions on "/mnt/pool-name/dataset-name/folder/file.txt": Operation not permitted (1)
.
.
.
** the same error message is displayed for every file **
.
.
.
Number of files: 163 (reg: 146, dir: 17)
Number of created files: 146 (reg: 146)
Number of deleted files: 0
Number of regular files transferred: 146
Total file size: 290,259,483 bytes
Total transferred file size: 290,259,483 bytes
Literal data: 290,259,483 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 290,344,774
Total bytes received: 2,924
sent 290,344,774 bytes received 2,924 bytes 64,521,710.67 bytes/sec
total size is 290,259,483 speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
Rsync moves across all folders to TrueNAS Core, however, none of the files is synced across, I'm assuming this is a permissions issue though I'm yet to track down the reason.
User & Group Settings
I've created an SSH Keypair in TrueNAS and have placed the generated private key on the Ubuntu server along with placing the public key in the SSH Public Key section on the TrueNAS user I'm using for SSH access, the user has a home directory set as required by the SSH Public Key setting.
The user is part of a group which is set under Group in the ACL settings for the dataset I'm syncing to, the @group has ACL = Allow, Permission Type = Basic, Permissions = Full Control and Flags = Inherit.
SSH Service Settings
Allow Password Authentication has been disabled, you can only connect with SSH via keys.
SMB
Created with the same @group permissions outlined above, the path is used in the Rsync script.
Servers
The servers are on the same network.
This feels like it may be something simple as I previously had Rsync working, however, I had to start again from scratch and I'm left with the error at the start of the thread.
Any advice would be appreciated.
Thank you