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!
== 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.
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)