TypechoJoeTheme

贰狐Blog - 一个笨蛋的博客

统计

贰狐

类目归类

Windows自动压缩文件夹,备份并上传到网盘

2019-12-09
/
0 评论
/
5,700 阅读
/
正在检测是否收录...
12/09
日常生活中有一些需要定期备份的bot目录,但是手动备份太麻烦了,如果用Windows的计划任务搭配bat脚本进行自动备份,并上传到网盘呢?

首先你需要有一个Onedrive或百度网盘。我比较推荐Onedrive是因为可以白嫖。当然,用百度网盘,然后设置某个目录为自动同步的文件夹也是可以的。

微软为每个账号提供空间为5GB的Onedrive,其实也够用了。

如果不够用可以白嫖↓

申请OneDrive 5T 网盘便民方法和邮箱
免费office365教育版A1子号(5Tonedrive网盘),可以自助申请

之后安装一下 7-ZipOnedrive

大功告成,然后复制下面的代码,按说明替换中间的目录,保存成auto_backup.bat

注意:所有目录中不得包含中文

@echo off
::设置7z的命令行程序路径
set zip7=C:\Program Files\7-Zip\7z.exe
::设置压缩包保存路径,即你的onedrive本地路径
set Save=D:\Onedrive\OneDrive - User\BMX_backup
::当天日期,备份文件名
set curdate=%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%%time:~6,2%
::设置要打包压缩的文件夹
set zipfile=D:\Mirai_bmx
 
::备份命令 -xr!.svn过滤\data\image\文件夹 mx0是存储模式压缩
"%zip7%" a -tzip "%Save%\cq_bmx_%curdate%.zip" "%zipfile%" -mx0 -xr"!*\data\image\"

::删除超过7天的备份--start--
forfiles /p "%Save%" /m *.zip -d -7 /c "cmd /c del /f @path"

到这里其实就可以直接设置计划任务,每天定时运行了

不过由于我这里需要对酷Q进行备份,运行中的程序是无法被压缩的。

并且程序长时运行也可能出现问题,所以我们做一个自动重启的步骤。

保存下列代码放在上述代码前面,用于强行结束Mirai(如果是骰子请设置自动保存,不然可能会丢失数据)。

C:\Windows\system32\taskkill.exe /f /im MiraiOK_windows_386.exe
C:\Windows\system32\taskkill.exe /f /im MiraiOK.exe
C:\Windows\system32\taskkill.exe /f /im java.exe</div>

如果是XQ的话,可以用,同样调用Taskkill,但是由于在某些系统上无法执行中文bat,所以需要加CHCP。不过XQ注意定时清理image目录,不然压缩时候会爆炸,几个G的图片在那压缩,可就麻烦了。

echo off
CHCP 65001
echo  -------------------------
echo  重启中,请稍后...
echo  -------------------------
C:\Windows\system32\taskkill.exe /f /im 先驱.exe
保存下列代码,替换目录成bot的启动快捷方式,用于在备份后顺序启动(而不是开备份脚本的同时就打开了bot)。就起名叫start_mirai.bat吧

start D:\Mirai_bmx\Mirai_bmx.lnk

之后给这两个bat做一个控制开关,复制并替换上面两个脚本的存放位置,起名叫switch_mirai.bat

C:/auto_backup/auto_backup.bat&&;C:/auto_backup/start_mirai.bat

然后将 switch_mirai.bat 放入计划任务或是启动项中

启动项目录可以通过Win+R打开[运行]后输入 shell:startup 来快速打开。

可以在Onedrive网页中将备份的目录设置为共享,这样就能在异地直接下载了!

参考资料
windows bat脚本7zip压缩文件夹,过滤文件夹 - 黑夜的白羊
如何设置2个bat文件严格按照顺序执行 - 百度知道

朗读
赞 · 2
版权属于:

贰狐Blog - 一个笨蛋的博客

本文链接:

http://www.aobacore.com/archives/83.html(转载时请注明本文出处及文章链接)

评论 (0)

贰狐

17 文章数
64 评论量
本站已存活

人生倒计时

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月

最新回复

  1. 藤川铄铄子
    2024-04-19
  2. 秋风无言
    2023-09-07

    {!{data:image/webp;base64,UklGRlwMAABXRUJQVlA4WAoAAAAwAAAAAQMAKwEASUNDUBgCAAAAAAIYAAAAAAIQAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAA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AHtI8X9EG0eO/x3/O/53/O/43/G/43/H/47/Hf87/nf8/9+4AVZQOCDSAQAAUDUAnQEqAgMsAT9xuNlltK8rpyAIApAuCWlu4XdhG0AJ7APfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJwoAAP7/rR4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==}!}

  3. 秋风无言
    2023-09-07

    {!{data:image/webp;base64,UklGRgAOAABXRUJQVlA4WAoAAAAwAAAADwQAKwEASUNDUBgCAAAAAAIYAAAAAAIQAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAAChiVFJDAAABoAAAACh3dHB0AAAByAAAABRjcHJ0AAAB3AAAADxtbHVjAAAAAAA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AAA/v+tHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==}!}

  4. benke
    2023-03-27
  5. 伯牙
    2023-01-28

    我按照步骤把程序部署到了云服务上了,OlivOS正常启动,但是在启动go-cqhttp之后发现日志一直打印警告,qq消息可以接收到但是没有反馈,能麻烦帮忙看看么
    [2023-01-28 18:59:17] [WARNING]: 上报 Event 数据到 http://172.31.32.237:55001/OlivOSMsgApi/qq/onebot/gocqhttp 失败: Post "http://172.31.32.237:55001/OlivOSMsgApi/qq/onebot/gocqhttp": dial tcp 172.31.32.237:55001: connect: connection refused 将进行第 1 次重试
    [2023-01-28 18:59:18] [WARNING]: 上报 Event 数据到 http://172.31.32.237:55001/OlivOSMsgApi/qq/onebot/gocqhttp 失败: Post "http://172.31.32.237:55001/OlivOSMsgApi/qq/onebot/gocqhttp": dial tcp 172.31.32.237:55001: connect: connection refused 将进行第 2 次重试
    [2023-01-28 18:59:20] [WARNING]: 上报 Event 数据到 http://172.31.32.237:55001/OlivOSMsgApi/qq/onebot/gocqhttp 失败: Post "http://172.31.32.237:55001/OlivOSMsgApi/qq/onebot/gocqhttp": dial tcp 172.31.32.237:55001: connect: connection refused 将进行第 3 次重试
    [2023-01-28 18:59:21] [WARNING]: 上报 Event 数据 {"post_type":"meta_event","meta_event_type":"heartbeat","time":1674903557,"self_id":2683851566,"interval":5000,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":42,"packet_sent":34,"packet_lost":0,"message_received":0,"message_sent":0,"disconnect_times":0,"lost_times":0,"last_message_time":0}}}
    到 http://172.31.32.237:55001/OlivOSMsgApi/qq/onebot/gocqhttp 失败: Post "http://172.31.32.237:55001/OlivOSMsgApi/qq/onebot/gocqhttp": dial tcp 172.31.32.237:55001: connect: connection refused 停止上报:已达重试上限

广告

标签云