Skip to content
/ xcbackup Public

Encrypted Backup Tool with Separate File Headers

License

Notifications You must be signed in to change notification settings

arvse/xcbackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This tools keeps file encrypted with separate file headers. Let's create a backup on disk device:

sudo xcbackup -c stdin /dev/sdzzz dir1 dir2 file1

stdin <- read password from terminal

Then backup could be extracted to current directory with:

sudo xcbackup -x stdin /dev/sdzzz

stdin <- read password from terminal

If only some sectors are gone, you should not loose other files in the backup, because each file is prefixed with byte sequence and has separate encryption header and separate file header located before its encrypted body. If a corrupted data sequence is found by checking HMAC, then the progranm will lookup for the nearest file prefix bytes sequence to extract the next file. In other words, writing a few random bytes at the beginning of backup file will result in losing only first files, but not whole backup.

Usage

usage: xcbackup -cxlts stdin|password [-o random|offset] archive path [paths...]

version: 2.0.11

options:
  -c    create new archive
  -x    extract archive
  -l    list files in archive
  -t    test archive checksums
  -s    do not print progress
  -o    output file offset

Build & Install

  1. Install mbedtls-dev with: sudo apt install libmbedtls-dev
  2. Build xcbackup with: make
  3. Install xcbackup with: sudo make install

Update file permissions after extract

sudo chown -R user:user destination-directory

About

Encrypted Backup Tool with Separate File Headers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published