I tried the above script and found it working. I also noticed few errors like below.
 2022-08-11 09:27:32 >> log scanned up to (24018784)
 2022-08-11 09:27:32 Starting prep copy of non-InnoDB tables and files
 2022-08-11 09:27:32 Starting rsync as: rsync -t . –files-from=/tmp/xtrabackup_rsyncfiles_pass1 /backup_mariadb/
rsync: link_stat “/var/lib/mysql/var/lib/mysql/ib_buffer_pool” failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]
Do I need to worry. If so, how do I fix that.
Thanks and Regards,