【文件属性】:
文件名称:相对检查天气
文件大小:4KB
文件格式:ZIP
更新时间:2021-02-11 15:33:04
Shell
使用puppet5和shellscript检查JPA天气预报并备份此数据的脚本
经过测试的$
Debian GNU / Linux 10(破坏者)
人偶v5.5.10
$取决于
卷曲
$ modules / weather / files / weather_forecast
从wttr.in获取天气预报信息
写入/ tmp / weather_forecast / YYYY-MM-DD
应用程序级别登录$ {folder} / $ {city} .forecast.log
作为本地shellscript或服务运行
$模块/天气/文件/ weather_backup
从/ tmp / weather_forecast备份文件夹/文件
将备份保存到/backup/mdHM/weather.backup.tar.gz
保留10天的备份
仅在当前备份成功的情况下运行清理
$ ma
【文件预览】:
reliant-check-weather-main
----manifests()
--------weather.pp(1KB)
----README.md(812B)
----modules()
--------weather()