Sandeep540
Sandeep540

Reputation: 977

Zip and move file in Windows 2008R2 Server using Chef?

I want to zip a file E:/logs/MSflexLog.log file using native OS zip (or) 7-zip and the move(cut-paste) into different Directory - F:/Archive/Logs

Upvotes: 0

Views: 69

Answers (1)

coderanger
coderanger

Reputation: 54221

You want the windows_zipfile resource from the windows cookbook. More info is available in the readme https://github.com/chef-cookbooks/windows#windows_zipfile

Upvotes: 1

Related Questions