Backup and restore data (on encrypted) device.
Freydis use rsync
and cryptsetup
.
$ gem install --user-install freydis
$ freydis -h
First, you need to configure freydis and optionnaly encrypt a device disk.
$ freydis --disk /dev/sdc --encrypt --save
The config file will be created at ~/.config/freydis/freydis.yaml
.
---
:disk: '/dev/sdc'
:disk_is_encrypt: true
:gpg_recipient: ''
:backup_paths: []
:exclude_paths: []
:restore_at: '/'
Freydis will use rsync
, all paths must be separated by a comma:
$ freydis --paths-add /home,/etc --save
You can also exclude some paths with --paths-del
$ freydis --paths-del ~/.cache,~/.npm --save
And backup
$ freydis --backup
With --disk
and --paths-add
saved in the config file, you only need to write:
$ freydis --restore
Freydis will restore all files in /
by default, use --restore-at PATH
to change.