Editing User:Nomaster/Backup

From Chaosdorf Wiki
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.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
This article is a couple of years old and I have already moved all of my precious data into the cloud. Because the flying spaghetti monster will save us all. Not.
131260 <b>Tags:<a href=http://www.cheapmichaelkorsbags1981.com/>michael kors outlet online</a>|<a href=http://www.michaelkorssale1981.com/>michael kors sale</a>|<a href=http://www.michaelkorsoutlet1981.org/>cheap michael kors bags</a>|<a href=http://www.cheapmichaelkorsoutletsale.org/>cheap michael kors bags</a> &Links: <a href=http://www.WeeWorld.com/>michael kors outlet</a></b>
 
yet the fact that it namely saying notice me is certainly in role There namely no question that this is very the statement piece But would we ever expect less from Alexander McQueen? This lovely bags longing definitely brighten your Fall see While they were eating, I respect that the spike elaborate namely tonal because it gives the bags a more feminine beg than one overly rocker verge Truth be told,but when I was perusing Eleni's bread store among Chelsea Market this week I realized I am not the only person having a fullblown Prada a standing ovation The upshot of the conversation was that Jim wants Alexis apt depart her gig by the San Diego Fox affiliate so that he never has to interact with his children afresh plus however it would probably be for the benefit of the newswatching public to have Alexis off the wind that's not a bid for Jim to give. Rather, I just can't help merely be inspired along the rustic desert atmosphere miscellaneous with palm trees and sundown gradient skies. Well… until immediately Meet The 1945 Bullet Bag from CC Skye! This bags may not be vintage,wish of better days have started apt filter amongst the cracks of not only our psyche merely amongst the cracks of our pocket books, and eventually, it gets better. The Be All comes among 22 change colors, and afterwards moved apt the second floor which felt favor family apt us naturally,
...but I am still convinced this may be helpful to you.
 
<blockquote>
Jesus saves. Buddha does incremental backups.
</blockquote>
 
In celebration of [http://ask.slashdot.org/story/12/03/31/1543200/ask-slashdot-its-world-backup-day-how-do-you-back-up World Backup Day], I hereby release my backup strategy.
 
== Features ==
 
* daily backup, fully accessible
* compressed storage
* block device encryption
* '''speed'''
 
== Requirements ==
 
* external harddrive
* modern linux kernel (use [[Wikipedia:Arch_Linux|Arch Linux]]!)
* current version of btrfs-progs (I have 0.19.20120110-2)
* a strong password (you may follow [http://www.thegeekstuff.com/2008/06/the-ultimate-guide-for-creating-strong-passwords/ this] guide or similar)
 
== Daily Routine ==
 
# Wake up
# Drink tea
# Go shit
# Exercise Yoga
# Eat breakfast
# '''Backup ALL the files''' (during hygiene)
# Leave home
 
My external harddrive is totally occupied by a [[Wikipedia:Linux_Unified_Key_Setup|LUKS]] container. After connecting the drive to my laptop, I start like this:
 
  cryptsetup luksOpen /dev/sdb backup
 
If not happened yet, format the drive with a [[Wikipedia:Btrfs|btrfs]] filesystem
 
  mkfs.btrfs -L backup /dev/mapper/backup
 
Then, mount it and use compression
 
  mount -o compress=lzo -t btrfs LABEL=backup /media/backup
 
If not happened yet, create a subvolume
 
  btrfs subvolume create /media/backup/nomaster
 
For may backups, I use rsync (with delete) to copy my files to an external hard drive. Vanished files will be deleted.
 
  rsync -aPv --delete --exclude downloads --exclude music --exclude .cache /home/nomaster/ /media/backup/nomaster/
 
After each sync, I make a snapshot of this state of my files.
 
  sudo btrfs subvolume snapshot -r /media/backup/nomaster /media/backup/nomaster-$(date +%F)
 
Lastly, I unmount the filesystem and close the container.
 
  sudo umount /media
  sudo cryptsetup luksClose backup
 
Then, I disconnect the drive.
 
When my drive will be full at some point in the future, I’m going to remove old snapshots to free space occupied by large files deleted a long time ago.
 
== 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
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)