Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
User:Nomaster/Backup
(section)
From Chaosdorf Wiki
Views
Read
Edit
Edit source
View history
associated-pages
User page
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Initial Setup == '''I assume the external drive is /dev/sdb. If you have no idea about this, stop right now and come back when you know.''' First, make sure, the external drive is clear to use. So mount it and have a look at the files if present. Overwrite everything with zeroes. sudo dd if=/dev/zero of=/dev/sdb bs=1024 Format the drive sudo cryptsetup luksFormat /dev/sdb (follow the instructions) Open the crypto container sudo cryptsetup luksOpen /dev/sdb backup Create a BTRFS file system sudo mkfs.btrfs /dev/mapper/backup Mount it (with compression) sudo mount -o compress /dev/mapper/backup /mnt Create a subvolume sudo btrfs subvolume create /mnt/nomaster # <- insert username here Unmount, close and continue with '''daily routine'''. sudo umount /mnt sudo cryptsetup luksClose backup
Summary:
Please note that all contributions to Chaosdorf Wiki are considered to be released under the Attribution 3.0 Unported (see
Chaosdorf Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)