I am working on a project where I have a small MiniITX PC running Debian Jessie (8.3)
When I installed the OS initially:
- I chose the filesystem as btrfs.
- I am not using LVM or any extra partitions except for swap.
- No encryption on drive.
With everything I want/need installed, the entire space used by my system is about 4GB. I don't anticipate using much more than another gig.. ever.
Additionally, I have an empty 16GB flash drive formatted to btrfs.
With this being the setup: (tl;dr) How can I make backups (snapshots?) of my running Debian System, and store them on the flash drive?
Ideally, this is so that if something catastrophic happens to my main hard drive, I could restore it back to a good working condition by utilizing what was saved to the flash drive.
Can someone please spell this out for me?
- /dev/sda1 is the mountpoint for / Format: BTRFS
- /dev/sda2 is the extended partition
- /dev/sda5 is the Linux Swap (6gb)
- /dev/sdb1 Mounted to: /mnt/USB1 Format: BTRFS
btrfs-tools are installed.
I just want to know the commands to accomplish this:
- How to make a snapshot of my entire /
- How to back this up to my flash drive
- How to restore it if everything gets majorly screwed up.
Thank you very much in advance. My sanity is waning..