nbsp;restic init --repo /tmp/backup
enter password for new backend:
enter password again:
created restic backend 085b3c76b9 at /tmp/backup
Please note that knowledge of your password is required to access the repository.
Losing your password means that your data is irrecoverably lost.
nbsp;restic --repo /tmp/backup backup ~/work
enter password for repository:
scan [/home/user/work]
scanned 764 directories, 1816 files in 0:00
[0:29] 100.00% 54.732 MiB/s 1.582 GiB / 1.582 GiB 2580 / 2580 items 0 errors ETA 0:00
duration: 0:29, 54.47MiB/s
snapshot 40dc1520 saved
restic -r b2:bucketname:/ snapshots
nbsp;restic -r b2:g534fbucket:/ snapshots
enter password for repository:
ID Date Host Tags Directory
----------------------------------------------------------------------
d864c465 2018-03-27 15:20:42 client /home/curt/Documents
restic -r b2:bucketname:/ restore snapshotID --target restoreDirectory
nbsp;restic -r b2:g534fbucket:/ restore d864c465 --target ~
enter password for repository:
restoring <Snapshot d864c465 of [/home/curt/Documents] at 2018-03-27 15:20:42.833131988 -0400 EDT by curt@client> to /home/curt
restic -r b2:g534fbucket:/ restore d864c465 --target /tmp
nbsp;restic -r b2:g534fbucket:/restore snapshotID --target restoreDirectory --include filename
nbsp;restic -r b2:g534fbucket:/ restore d864c465 --target /tmp --include file1.txt
enter password for repository:
restoring <Snapshot d864c465 of [/home/curt/Documents] at 2018-03-27 15:20:42.833131988 -0400 EDT by curt@client> to /tmp
本篇文章来源于微信公众号:GitHub科技
原创文章,作者:software,如若转载,请注明出处:https://www.sldh123.com/1726.html