|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
--- |
|
|
|
|
title: My backup system |
|
|
|
|
tags: [bash, shell, backup, rsync, LUKS, cryptsetup, sync] |
|
|
|
|
updated: 2019-05-01 17:30 |
|
|
|
|
tags: [bash, shell, backup, rsync, LUKS, cryptsetup, sync, shred] |
|
|
|
|
updated: 2019-06-20 19:06 |
|
|
|
|
description: A detailed exaplanation of my backup system which is both encrypted and unencrypted for different purposes. |
|
|
|
|
--- |
|
|
|
|
|
|
|
|
@ -85,9 +85,10 @@ I also keep two different types of incremental backups. It's not exactly the *3
|
|
|
|
|
# chown 700 backup_{root,data}{_enc,} |
|
|
|
|
# popd |
|
|
|
|
|
|
|
|
|
3. Partition, format and mount the unencrypted hard disks. You should use |
|
|
|
|
3. Shred, partition, format and mount the unencrypted hard disks. You should use |
|
|
|
|
fstab instead of mounting the filesystems manually |
|
|
|
|
|
|
|
|
|
# shred /dev/sd{x,y} -n1 --random-source=/dev/urandom --verbose |
|
|
|
|
# fdisk /dev/sd{x,y} |
|
|
|
|
# mkfs.ext4 /dev/sd{x,y}1 |
|
|
|
|
# mount /dev/sd{x,y}1 /mnt/backup_{root,data} |
|
|
|
|