mkdir -p ~/data/workspace/borg
cd ~/data/workspace/borg
borg init -e none backup
borg create backup::1 data
borg create backup::2 data
borg list backup
# 1 Wed, 2020-10-28 13:55:56 [xxx]# 2 Wed, 2020-10-28 13:56:13 [xxx]# 换名称borg create backup::`date +%FT%T` data
# list filesborg list backup::2
# recoverborg extract backup::1
borg extract backup::1 data/a.txt
borg delete backup::1
borg diff backup::1 2# 加载备份到本地,可以拷贝需要恢复的文件出来borg mount
borg umount