Skip to content

Latest commit

 

History

History
executable file
·
62 lines (39 loc) · 1.4 KB

README.md

File metadata and controls

executable file
·
62 lines (39 loc) · 1.4 KB

Freydis

Gem Version Gem GitHub last commit (branch) GitHub

Backup and restore data (on encrypted) device.

Requirements

Freydis use rsync and cryptsetup.

Install freydis locally

$ gem install --user-install freydis

Usage

$ freydis -h

Examples

0x01 - Initialisation

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: '/'

0x02 - First backup

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

0x03 - Restore

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.