type
status
slug
summary
tags
category
icon
password
new update day
Property
May 1, 2024 03:25 AM
created days
Last edited time
May 1, 2024 03:25 AM

引言

起初是在群里面看到有老哥因为自己的系统出现问题,无法进入系统导致自己养了半年的个人词库丢失,毕竟 rime 的用户资料同步操作是需要自己手动点击才会进行的。
于是为了避免这个问题的出现,就尝试查看一下有没有能够自动进行同步操作的方案,经过查找发现在 Windows 平台上的小狼毫是支持命令进行部署与用户资料同步的操作的,于是就想着使用定时任务进行用户资料的同步操作。下面是具体的内容。

新建同步任务

关机同步任务

首先创建一个在电脑关机时进行同步的基本任务。
notion image

1. 输入名称与描述

notion image

2. 设置任务触发器

任务触发器设置为当特定事件被记录时
notion image

3. 配置关机事件(1074为关机事件)

notion image

4. 选择启动程序

notion image

5. 配置启动程序

选择 WeaselDeployer 对应的程序文件路径,参数填写 /sync
notion image

定时同步任务

1. 创建任务

notion image

2. 填写描述

notion image

3. 新建触发器

新建所需要的触发器(根据自己的需求,有空闲状态进行执行的任务、有开启启动执行的任务、锁屏执行的任务等等,可以添加多个)
notion image
notion image

4. 添加操作

添加对应的操作与上面类似
notion image

最终结果

最终的效果如下:
notion image
My first post在 Arch Linux 上通过 OneDrive 进行 rime 的用户词库同步