View Single Post
  #3   (View Single Post)  
Old 7th September 2018
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default

I'd be tempted to use a pipe, and use tar or pax with openssl for the encryption, and write directly to the disk. For example, assuming your USB disk is sd1, to backup the /home partition something like the following should work:

Code:
tar cf - /home | openssl enc -des3 -salt | dd bs=10240 of=/dev/rsd1c
You'll be prompted for a password. To restore, do the reverse:

Code:
dd bs=10240 if=/dev/rsd1c | openssl enc -d -des3 -salt | tar xpfv -
For infrequent backups the above may be enough.

Have you taken a look at sysutils/duplicity?
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'
Reply With Quote