Configure rsync in TrueNAS
Create a user called rsync, with group rsync.
Create a dataset, owned by rsync:rsync, with permission 770.
Enable rsync service
Go to System Settings -> Services, enable rsync.
Click on Configure (Edit icon), select Rsync Module tab, key in following info, and save configuration.
- Module Name
- Access Mode: Read & Write
- User: rsync
- Group: rsync
Run following command from remote server
rsync -avR --password-file=/root/.rsync/password \ /tmp \ rsync@<rsync_host>::NetBackup/`hostname`