I created this script today to ease the process of copying nas AO profiles and PPRs from a primary to secondary nas. Right now, all the script does is copy/overwrite. It will not delete a profile that has been removed. The reason for this is that some customers may want a special rule when a failover happens and it would be deleted if the script did a full sync. Going forward, I could see a sync with exception function working to exclude one particular section from being deleted prior to copying everything over. Let me know how it works for you.
----------------------------------------------------------------------------------------------------- Version | Details----------------------------------------------------------------------------------------------------- 1.0 | Initial Version-- 1.1 | 9/20/2018 - Replace dofile with require and added package.path update; this makes-- passing the path to the includes files simpler. Swapped out file.write and print-- statements with output function from logging_functions.