shell-zip備份上個月的日誌(目錄)
#!/bin/bash
last_month=$(date -d "$(date +%Y%m)01 last month" +%Y%m)
echo $last_month
cd /PTAH
file=$(ls -d $last_month*)
zip -qrv /log/bak/$last_month.zip $file
相關推薦
shell-zip備份上個月的日誌(目錄)
#!/bin/bash last_month=$(date -d "$(date +%Y%m)01 last month" +%Y%m) echo $last_month cd /PTAH file=$(ls -d $last_month*) zip -qrv /log/bak
2018年ElasticSearch6.2.2教程ELK搭建日誌采集分析系統(目錄)
1.2 安裝包 接口 語句 參數配置 介紹 ofo 計劃 裝包 章節一 2018年 ELK課程計劃和效果演示 1、課程安排和效果演示 簡介:課程介紹和主要知識點說明,ES搜索接口演示,部署的ELK項目演示 章節二 elasticSearch 6.2版本基礎講
NFS備份全網日誌(NFS+rsync)
NFS配置引數參考:http://server.51cto.com/sManage-150923.htm 有8臺web伺服器,現在要搭建一臺NFS伺服器用來存放8臺web的日誌(nginx的錯誤日誌,php的錯誤日誌,php的慢執行日誌) 現在模擬一下這個場景
mysql之通過日誌的定時備份和恢復(中)
mysql日誌備份一般遵循一週進行一次全量備份,一天進行一次增量備份。 在上一篇文章中介紹了全量備份的方法,通過mysqldump命令進行定時全量備份,所以這篇文章主要說明進行增量備份和恢復 增量備份,必須要開啟mysql的binlog配置,需要在mysql的配置檔案(my
Chapter 7 Integrity(完整性), Views(視圖), Security(安全性), and Catalogs(目錄)
ctu 具體實現 grant rtu con 空值 ont tro access from Database Design to Physical Form CREATE TABLE integrity constraints (完整性約束) CREATE VIEW S
shell正則表達式(1)
用戶名 描述 擴展正則 min 顯示行號 顯示 passwd gin 什麽是 一、什麽是正則 正則就是用一些具有特殊含義的符號組合到一起(稱為正則表達式)來描述字符或者字符串的方法。或者說:正則就是用來描述一類事物的規則。 二、grep 1.參數 -n :顯示行號 -o
mysql大數據備份及恢復(一)
日誌記錄 數據恢復 insert 數據庫mysql values Mysql大數據備份和恢復一MySQL備份一般采取全庫備份、日誌備份;MySQL出現故障後可以使用全備份和日誌備份將數據恢復到最後一個二進制日誌備份前的任意位置或時間;mysql的二進制日誌記錄著該數據庫的所有增刪改的操
mysql大數據備份與還原(二)
mysql備份 還原 備份工具使用xtrabackup mysql大數據備份和增量備份及還原Xtrabackup實現是物理備份,而且是物理熱備目前主流的有兩個工具可以實現物理熱備:ibbackup和xtrabackup ;ibbackup是需要授權價格昂貴
勤拂拭軟件工作室 之 畢業設計案例(目錄)
畢業 family 宋體 計算機程序 bsp span size 設計與實現 項目 勤拂拭軟件工作室持續推出本工作室指導的本工作室畢業設計案例,以幫助有需要的朋友交流學習 1. 基於Mapxtreme for JAVA的電子地圖設計與實現 2. 論文盲審系統 3
教務系統維護日誌(2)---學習筆記
ati basepath clas color nbsp logs gets 學習 pan 1. 1 <% 2 String path = request.getContextPath(); 3 String basePath = request.getSche
Qt之zip壓縮/解壓縮(QuaZIP)
com spm c++ ews pen 更多 pri cat markdown 摘要: 簡述 QuaZIP是使用Qt/C++對ZLIB進行簡單封裝的用於壓縮及解壓縮ZIP的開源庫。適用於多種平臺,利用它可以很方便的將單個或多個文件打包為zip文件,且打包後的zip文件可
JavaScript學習日誌(二):面向對象的程序設計
循環 理想 soft 日誌 傳遞 數組 用例 定義 基本類型 1,ECMAScript不像其他面向對象的語言那樣有類的概念,它的對象與其他不同。 2,ECMAScript有兩種屬性:數據屬性和訪問器屬性。([[]]這種雙中括號表示屬性為內部屬性,外部不可直接訪問) 1.數據
JavaScript學習日誌(四):BOM
特殊符號 對話框 核心 混淆 == script delet 網頁 port BOM的核心對象就是window,這一章沒什麽好說的,總結一些比較常用的: 1,a未定義,a; //報錯window.a; //undefined 不能用delete刪除全局變量 2
JavaScript學習日誌(七):表單腳本
prev 調用 don 表單 rip 如果 html image 集合 一,基礎知識 1,取得<form>元素引用的方式,常用的是通過id,其次可以通過document.forms可以取得頁面中所有的表單,在這個集合中,可以通過數值索引或name值來取得特定的表
shell腳本進階(二)
rom 參數 特殊變量 ech erro cas 菜單 actor -o select 循環與菜單 select variable in list do 循環體命令 done select 循環主要用於創建菜單,按數字順序排列的菜單項將顯示在標準錯誤上,
【計算機網絡基礎】數據鏈路層(目錄)
計算機網絡 劃分 靜態 控制 網橋 透明 回退 csma/cd 廣播 數據鏈路層知識結構 數據鏈路層組幀和透明傳輸 數據鏈路層差錯檢驗 奇偶校驗 循環冗余校驗(CRC) 海明碼 數據鏈路層可靠傳輸(ARQ協議) 停止-等待協議 回退N幀協議(GBN協議) 選擇重傳協
2017/08/23-2017/08/31工作日誌(補)
寫法 以及 ble click 功能 trigger important window .net 時間隔得太久了,把之前的工作粗略補充一下,後面爭取按正常進度。 8/23 這段時間應該是以機構科室選擇界面工作為主的,這一天解決的問題是table的寬不確定的情況下的自適應計算
2017/10/01-2017/11/3工作日誌(補)
-type 狀況 響應 準備 自定義 不支持 dia tab 在家 十一在家過得還算舒坦,回來就努力工作了。 10/9 一開始的工作是完善之前的功能,重點是解決一部分IE8下面的兼容問題,學到了以下內容: 1、IE8不支持bootstrap的響應式布局,原因是IE8不能識別
1000 個小時學會 Rails (目錄)
body tar 靜態頁 -name 簡介 log -c spec 作者 感謝 juanito 給我們分享1000 個小時學會 Rails ,我這裏做個目錄鏈接,這樣方便學習。 Rails 前世今生 你的第一個 Rails 應用 測試!測試! RSpec 行為驅動測試簡介
PokeCats開發者日誌(五)
post 敏捷 apk title clas 分享 分數 cat lin ??現在是PokeCats遊戲開發的第八天的上午,來記錄一下將PokeCats上傳到360移動開放平臺的過程。 ??首先點創建遊戲。 ??會彈出這個東東。 ??個人只能創建免費遊戲啊,TAT。算了