Here is the screenshot of my backups in TimeShift:
What are the TimeShift tags like 'O', 'D'?
I try to explain Timeshift v20.03 to exclude my download folder.
My Kubuntu using:
$ lsb_release -a
Description: Ubuntu 20.04.1 LTS
I tried to add Exclusion here Settings > Filters:
change:
Settings > Filters:
⚈⚆ + /home/m/**
⚆⚈ - /root/***
⚆⚈ - /home/**
to:
⚈⚆ + /home/m/**
⚆⚈ - /root/***
⚆⚈ - /home/m/Downloads/***
⚆⚈ - /home/m/Downloads/**
then i pressed OK Button OK.
I looks created. Got no errors.
but if i open the Settings > Filters again my both new lines are not there. its looks like before.
I am trying to install *20.04.01 on my desktop with full (or almost full as Tj puts it) disk encryption including encrypted swap partition that allows hibernation, and btrfs.
The last few years I am using ManualFullSystemEncryption but even being careful to make sure I do not turn my system off after an update before the grub fix script automatically runs, these updates or *Windows updates if dual booting, have broken grub and I have often had to boot to a live USB and run fix-grub.sh.
Yesterday I followed Tj's Full_Disk_Encryption_Howto_2019 but when I got to the point of formatting /dev/mapper/ubuntu--vg-root I searched to see if I needed to do anything extra to use btrfs and ext3. I have since learned that using btrfs is not as simple as just selecting another filesystem from the dropdown.
This next brought me to Willi Mutschler's Ubuntu 20.04 with btrfs-luks full disk encryption including /boot and auto-apt snapshots with Timeshift which is very similar to Tj's, although it includes many extra steps for optimising btrfs and SSD. This is almost perfect for my intention, the only issue is that Willi sets it up so that swap is encrypted with a random password as he does not use hibernation:
export SWAPUUID=$(blkid -s UUID -o value /dev/vda2)echo "cryptswap UUID=${SWAPUUID} /dev/urandom swap,offset=1024,cipher=aes-xts-plain64,size=512" >> /etc/crypttab
cat /etc/crypttab
# cryptdata UUID=8e893c0f-4060-49e3-9d96-db6dce7466dc none luks
# cryptswap UUID=9cae34c0-3755-43b1-ac05-2173924fd433 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64,size=512
He references Archlinux's dm-crypt/Swap encryption which I have looked through, and it would seem I need to set up some kind of hook for swap, but I have not been able to make much more sense of it than that.
Last night I found Félix Saparelli's Full-disk encryption with Btrfs, swap, and hibernation. It gives commands for setting up encrypted swap but not the rest of the install, so I had planned today to try and use it in conjunction with Willi's guide to achieve my desired install.
I wanted to post and ask if this is the best approach, or if there is better way to do this or a more complete guide?
Edit: HOWTO - GPT/UEFI install with full disk encryption: BTRFSonLUKS with separate root, home and pkg subvolumes; hibernation with a swapfile; auto-snapshots with easy system rollback (GUI); boot into snapshots describes the kind of install I am trying to get to although I am not sure exactly how to change it to work with Ubuntu.
*I would prefer to install Ubuntu Server edition on my desktop and then manually install my desktop environment as I have read this is an even more stripped down version of Ubuntu than the minimal install. Unfortunately when following Tj's guide, which is not intended for Server, after selecting the partitions the installer errored. Willi's guide references files for optimising btrfs in /usr/lib/partman which is not contained in the server installer and the same files do not exist anywhere else and it does not seem I can just install a package for partman.
*I was running a setup with Windows 10 on the same drive encrypted with VeraCrypt. This time I am not dual booting.
I have a Samba NAS that I would like to be able to backup to using Timeshift. I am able to mount it to a folder via cifs-utils, but it does not show as an available local drive in timeshift. Mounting it in the /timeshift folder does nothing either, timeshift copies to the local folder instead of the network one.
Is there a way to mount the NAS as a local drive so Timeshift can find it and backup to it?
I only make rare snapshots on an external drive (RSYNC option). I would like to backup all my programs with all their configuration settings as I have them now, but when I restore my system all programs are reset to their defaults as if newly installed.
I see an option to include all home files, but I don't want Timeshift to backup my Vido, Music etc (I do that by other methods if I need to).
I imagine the configurations I want to save are set under /home
option of Timeshift.
Is the "Include hidden" option (for /home
) supposed to provide what I ask - while "Include all" would save also Videos, Music etc?
Or is the result influenced by options for /root
? Are those options affecting what I ask?
Also: considering my stated goal, is there a difference between the results of restoring a snapshot on top of my existing system compared to restoring it on a new empty partition?