Giter Club home page Giter Club logo

bituntiltrash's Introduction

Bit Until Trash

一个多目标文件夹定时备份工具。

使用

打开 Actions 页面,下载最新发布的二进制文件。

软件配置

配置文件示例

[settings]
interval = 300
filename = "%name%-%timestamp%"
compression = "zstd"

[backup.save]
from = "/home/mcseekeri/.local/share/PrismLauncher/instances/FengServer/.minecraft/saves/"
dest = "./"

[backup.Server]
from = "/opt/MCSManager/data/InstanceData/"
dest = "./"

配置文件位置

but 将依次在 /etc/but.conf $HOME/.config/but.conf./but.conf 三个位置寻找配置文件,优先级从高到低。

作为系统服务运行

but.service 文件复制到 /etc/systemd/system/ 目录,并执行以下命令:

systemctl daemon-reload
systemctl enable --now but

配置文件假设 but 位于 /usr/local/bin/but,您可以修改 ExecStart 字段以匹配实际位置,也可以将 but 软链接到 /usr/local/bin/ 目录。

如果启动出错,可以输入systemctl status but查看错误日志。

备份原理

限于技术原因,目前 but 不支持增量备份,每次备份都会是完整备份。 不过为了节约空间,当指定目录未发生变化时,but 不会重复备份。

bituntiltrash's People

Contributors

mcseekeri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.