1在linux上面创建一个文件夹,并且进行备份 cd /home mkdir backup cd backup 2创建一个脚本 Vi imaginebase.sh #!/bin/bash mysqldump -uroot -ppassword01! imaginebase > /home/backup/imaginebase_KaTeX parse error: Expected group after '_' at position 101: -kup/imaginebase_̲(date +…
1编写备份脚本 echo backup oracle database...... echo %~dp0 set file_dir=%~dp0 echo backup time...... set "year=%date:~0,4%" set "month=%date:~5,2%" set "day=%date:~8,2%" set "hour_ten=%time:~0,1%" set "hour_one=%time…