女超人
Ethiopian Airlines Pilots Fell Asleep Flying at 37,000 Feet, Reports Say_我的网站

A |
一键部署OpenClaw 网站备份是出事之后最后悔没做的东西。很多人服务器被黑后才发现数据库没备份,几年的内容一夜归零。其实一个shell脚本加一个定时任务就能解决。 On August 15, Ethiopian Airlines flight ET343 was en route from Sudan to Ethiopia when the aircraft’s two pilots fell asleep, according to the Daily Mail.,The Ethiopian Airlines Boeing 737-800 aircraft was cruising at 37,000ft, when alerts were raised on the ground as the plane had approached the airport but did not start to descend.,Air Traffic Control unsuccessfully tried to contact the plane’s crew.,Sometime later, the alarm of the disconnected autopilot awoke the two pilots and they managed to land the plane safely.,The data confirms the incident, which shows that the plane flew over the runway and managed to make another approach when the pilots woke up.,"Deeply concerning incident at Africa's largest airline — Ethiopian Airlines Boeing 737 #ET343 was still at cruising altitude of 37,000ft by the time it reached destination Addis Ababa. Why hadn't it started to descend for landing? Both pilots were asleep,” Aviation analyst Alex Macheras commented the incident on Twitter.,Two and a half hours later, the plane left the airport for its next flight.,A similar incident occurred in April, when, according to reports, two pilots flying from New York to Rome with 250 passengers failed to get in touch with Air Traffic Control for ten minutes and had presumably fallen asleep.。 下面这个脚本同时备份MySQL数据库和网站源码,按日期命名,保留最近7天。Linux服务器直接放到/root/backup.sh,Windows可以改成PowerShell版本,或者把Linux脚本放在宝塔面板的Shell终端里执行。
#!/bin/bash
SITE_DIR="/www/wwwroot/yoursite"
DB_NAME="yourdb"
DB_USER="root"
DB_PASS="yourpass"
BACKUP_DIR="/backup/$(date +%Y%m%d)"
mkdir -p $BACKUP_DIR
# 备份数据库
mysqldump -u$DB_USER -p$DB_PASS --single-transaction $DB_NAME | gzip > $BACKUP_DIR/db.sql.gz
# 备份网站文件
tar -czf $BACKUP_DIR/files.tar.gz -C $(dirname $SITE_DIR) $(basename $SITE_DIR)
# 删除7天前的备份
find /backup -maxdepth 1 -type d -mtime +7 -exec rm -rf {} \; 脚本写好之后加一条crontab,每天凌晨3点执行。备份文件建议再同步一份到对象存储,比如阿里云OSS或腾讯云COS,做到异地容灾。 # crontab -e 0 3 * * * /bin/bash /root/backup.sh >> /var/log/backup.log 2>&1 数据来源:MySQL Reference Manual 8.0(mysqldump),Linux crontab官方文档 申请创业报道,分享创业好点子。

B | 点击此处,共同探讨创业新机遇!。
Current article:http://www.chenzhuaigecoupuhongyuntuizei.sbs/news/20260826_7030.pptx
Published on:19:11:09
