Home > OS >  Questions about shell scripting backup database
Questions about shell scripting backup database

Time:09-29

#!/bin/bash
Tar - CZF log - ` date + % Y % m % d ` tar. Gz/var/log # # # to/var/log backup in time format

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Crontab -e
* * 5 00 03/root/logbak. Sh # # # # and create periodic plan/every Friday at 3 o 'clock perform a backup




Execution after receiving this email, think excuse me down to what backup files in the folder, and searching to find for a long time are not


CodePudding user response:

Timing task account home directory

CodePudding user response:

With v parameters to process information output, transfer to the log,
  • Related