https://github.com/markthree/deno-backups
硬链接备份
https://github.com/markthree/deno-backups
daily-tasks deno fs std
Last synced: 6 months ago
JSON representation
硬链接备份
- Host: GitHub
- URL: https://github.com/markthree/deno-backups
- Owner: markthree
- License: mit
- Created: 2022-12-03T13:13:07.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-07T11:45:00.000Z (about 3 years ago)
- Last Synced: 2025-06-22T16:41:01.725Z (7 months ago)
- Topics: daily-tasks, deno, fs, std
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deno-backups
由 `Deno` 实现的硬链接备份
## Motivation
对某一重要文件夹数据进行跨目录备份。
## Stack
- [Deno](https://deno.land/)
## Usage
### 运行
1. 监听
```shell
deno task start:watch {目标目录} {备份目录}
```
2. 同步
```shell
deno task start:sync {目标目录} {备份目录}
```
3. 静态同步
> 静态的同步,用于编译后给 windows 的每日计划任务,路径前往 [static-sync.ts](./static-sync.ts) 修改
```shell
deno task start:static-sync
```
### 编译
1. 监听
```shell
deno task compile:watch
```
2. 同步
```shell
deno task compile:sync
```
3. 静态同步
```shell
deno task compile:static-sync
```
### 后台进程
#### Windows
##### 监听
```shell
start /B deno task start:watch {目标目录} {备份目录}
```
## License
Made with [markthree](https://github.com/markthree)
Published under [MIT License](./LICENSE).