登峰造极境

  • WIN
    • CSharp
    • JAVA
    • OAM
    • DirectX
    • Emgucv
  • UNIX
    • FFmpeg
    • QT
    • Python
    • Opencv
    • Openwrt
    • Twisted
    • Design Patterns
    • Mysql
    • Mycat
    • MariaDB
    • Make
    • OAM
    • Supervisor
    • Nginx
    • KVM
    • Docker
    • OpenStack
  • WEB
    • ASP
    • Node.js
    • PHP
    • Directadmin
    • Openssl
    • Regex
  • APP
    • Android
  • AI
    • Algorithm
    • Deep Learning
    • Machine Learning
  • IOT
    • Device
    • MSP430
  • DIY
    • Algorithm
    • Design Patterns
    • MATH
    • X98 AIR 3G
    • Tucao
    • fun
  • LIFE
    • 美食
    • 关于我
  • LINKS
  • ME
Claves
长风破浪会有时,直挂云帆济沧海
  1. 首页
  2. Platforms
  3. LINUX
  4. 正文

跨平台、多端加密同步神器 Restic

2022-10-10
链接:https://www.hi-linux.com/posts/42308.html

一、基本使用

1.1 安装

sudo apt-get install restic

1.2查看版本

restic version

1.3自升级

restic self-update

1.4创建仓库

restic init --repo /home/restic/seafile_backups

1.5手工备份

restic -r /home/restic/seafile_backups --verbose backup /home/seafile/files

1.6免输密码备份

# 创建密码文件
echo "000" >/home/restic/password.txt
# 备份命令
restic -r /home/restic/seafile_backups --verbose backup /home/seafile/files --password-file=/home/restic/password.txt

1.7定时自动备份

# 仅添加当前登录用户定时任务
crontab -e -u restic
# 每天凌晨5:00自动备份
0 5 * * *       restic -r /home/restic/seafile_backups --verbose backup /home/seafile/files --password-file=/home/restic/password.txt
标签: 暂无
最后更新:2022-10-26

代号山岳

知之为知之 不知为不知

点赞
< 上一篇
下一篇 >

COPYRIGHT © 2099 登峰造极境. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

蜀ICP备14031139号-5

川公网安备51012202000587号