Quantcast
Viewing all articles
Browse latest Browse all 47296

Script to Zip and Copy Indexed Warm Buckets based on Epoch Time

Our organization has a requirement to back up the indexers regularly; however with the hot buckets writing constantly and the size of the data on the indexers, this obviously poses an issue from a technical aspect. The solution agreed upon between myself and the backup engineers is to write a powershell script that runs every 24 hours. This powershell script would: 1. Find all buckets written in the past 24 hours. 2. Copy them to a "backup" drive already on the system. 3. Zip the files into a single directory with the current date as the name of the zip file. 4. Remove any zip files older than 8 days. This would allow the backup team to do daily incremental backups without causing the backup system to grind to a halt. While I could probably put together something I don't have that kind of faith in my scripting skills, and was hoping someone else had already done similar so I didn't have to "reinvent the wheel". The biggest issue I'm running into is using the current epoch time to determine what buckets to grab based off of the epoch times written into the name. Thanks in advance for any assistance and input!

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>