Browse Source

Bug fixes.

dev
Franco Masotti 3 years ago
parent
commit
4a0df54a35
  1. 7
      _posts/2019-02-23-my-backup-system.md

7
_posts/2019-02-23-my-backup-system.md

@ -1,7 +1,7 @@
---
title: My backup system
tags: [bash, shell, backup, rsync, LUKS, cryptsetup, sync]
updated: 2019-02-23 17:24
updated: 2019-03-02 16:00
description: A detailed exaplanation of my backup system which is both encrypted and unencrypted for different purposes.
---
@ -95,7 +95,8 @@ I also keep two different types of incremental backups. It's not exactly the *3
4. Partition and format the encrypted backups as written in the [Arch Wiki page](https://wiki.archlinux.org/index.php?title=Dm-crypt/Device_encryption&oldid=557648#Encryption_options_with_dm-crypt).
We will use some non-default options to make the encryption stronger
# cryptsetup -v --type luks2 --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-urandom --verify-passphrase luksFormat device /dev/sd{w,z}1
# fdisk /dev/sd{w,z}
# cryptsetup -v --type luks2 --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-urandom --verify-passphrase luksFormat /dev/sd{w,z}1
5. We will now
[mount and create a filesystem on the encrypted partitions](https://wiki.archlinux.org/index.php?title=Dm-crypt/Encrypting_a_non-root_file_system&oldid=495610#Manual_mounting_and_unmounting).
@ -109,7 +110,7 @@ I also keep two different types of incremental backups. It's not exactly the *3
6. Unmount
# umount /mnt/backup_{root,data}_enc
# cryptsetup close /dev/mapper/{root,data}_enc
# cryptsetup close {root,data}_enc
7. [Backup the LUKS headers](https://wiki.archlinux.org/index.php?title=Dm-crypt/Device_encryption&oldid=557648#Backup_using_cryptsetup)
of the encrypted drives in case they need to be recovered in the future.

Loading…
Cancel
Save