DX Infrastructure Management

 View Only

Lua Script to copy nas AO Profiles and PPRs 

Sep 17, 2018 05:12 PM

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.

Statistics
0 Favorited
2 Views
1 Files
0 Shares
3 Downloads
Attachment(s)
zip file
sync-nas.lua.zip   1 KB   1 version
Uploaded - May 29, 2019

Tags and Keywords

Related Entries and Links

No Related Resource entered.