Sometimes in the process of transferring files from one server to another server, most Webmasters experience an error such as "rsync symlink operation not supported".
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to fix rsync command related errors.
In this context, we will look into the different causes of this rysnc error and how to fix it.
In this guide, we will be looking into different causes of this rsync error to occur. Also, our Support Experts have provided their respective solutions for these causes.
Solution: We add the option "Unix extensions = yes" to the receiving server. Then we restart samba there and mounting share with cifs correctly handles permissions and symlinks.
Solution: We use a Linux formatted destination drive (ext2 or ext3). Or else we use the -d option with tar to create a differential backup.
Solution: We resolve this by modifying the CIFS mount options and include nosetuids,noperm.
Solution: We enable symlinks with SMB3 by adding the mfsymlinks option. We do it by running the following mount command;
sudo mount -t cifs //ip.add.re.ss/share_name /path/to/mount -o username=hostusername,vers=3.0,uid=clientusername,gid=clientgroupname,soft,rsize=8192,wsize=8192,mfsymlinks
Solution: In order to resolve this we try to include -L within the sync_args options of the docker-sync.yml.
This article will guide you on how to fix "rsync symlink operation not supported" which occurs in the process of transferring files from one server to another server.