Copidar在Debian的运行环境需先安装依赖,再通过源码编译或包管理器安装,具体如下:
sudo apt update && sudo apt install build-essential cmake git libssl-dev libboost-all-dev
。sudo apt install copidar
,安装后通过copidar --version
验证。mkdir build && cd build && cmake .. && make && sudo make install
。copidar /path/to/directory
。*/5 * * * * /usr/bin/copidar /path/to/source/ /path/to/destination/ > /var/log/copidar.log 2>&1
。/etc/systemd/system/copidar.service
)实现开机自启。/var/log/copidar.log
)排查问题。参考来源: