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: | ||
<blockquote> | <blockquote> | ||
Jesus saves. Buddha does incremental backups. | Jesus saves. Buddha does incremental backups. | ||
Line 37: | Line 33: | ||
cryptsetup luksOpen /dev/sdb backup | cryptsetup luksOpen /dev/sdb backup | ||
Inside, there is [[Wikipedia:Btrfs|btrfs]] filesystem, I mount using compression. | |||
btrfs | mount -o compress -t btrfs /dev/sdb /mnt/backup | ||
For may backups, I use rsync (with delete) to copy my files to an external hard drive. Vanished files will be deleted. | 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/ / | rsync -aPv --delete --exclude downloads --exclude music --exclude .cache /home/nomaster/ /mnt/backup/nomaster/ | ||
After each sync, I make a snapshot of this state of my files. | After each sync, I make a snapshot of this state of my files. | ||
sudo btrfs subvolume snapshot | sudo btrfs subvolume snapshot /mnt/backup/nomaster /mnt/backup/nomaster120331 | ||
Lastly, I unmount the filesystem and close the container. | Lastly, I unmount the filesystem and close the container. | ||
sudo umount / | sudo umount /mnt | ||
sudo cryptsetup luksClose backup | sudo cryptsetup luksClose backup | ||