[root@lenovo 2022-08-09_14-39-50]# ls
@ @home info.json
[root@lenovo 2022-08-09_14-39-50]#
Then opening the @home folder gives the snapshot… of all files and folders!
I checked with a few text files… edited one of them a few times, renamed, duplicated… (with a snapshot in between), and I could select whatever earlier snapshot from the file.
Please correct me if I am wrong.
This “--exclude” options seems a little too much from my point of view.
"/dev/*","/proc/*","/sys/*","/run/*","/mnt/*"
are all different filesystems. They can be excluded with a simple -x or --one-file-system. /media is eventually another separate filesystem too. So that this rsync command could look like:
rsync -aAXHv -x --exclude={"/lost+found"} ...
EDIT:
And I would also add -h to preserve hard links. => -aAhHxX are the options I use by default
But I can restore to another snapshot. Right?
The only thing I have now, sometimes after booting I get a TimeShift error window, saying somethin like you need administrator or root privilege… but rebooting again… instantly… it does not appear!
Yes, but you can restore only to a single snapshot. You can think of snapshots like git diffs and git commits. When you are restoring to a snapshot, you are reverting to a certain commit.
Side Note:
I always found timeshift confusing, I was able to use it but never could understand it enough to tweak it. @dalto 's Btrfs assistant was a godsend. You will learn more about btrfs using the assistant. If possible (since you are interested in learning) try to use Btrfs assistant.
Why not? You are doing an rsync for ‘/’ and you exclude all kernel filesystems with -x. That is /dev /proc /run /sys and eventually /tmp and any other filesystem that is mounted to ‘/’ like /media . No need to specifically exclude them with --exclude={/dev,...}.
This of course assumes that you want to do a backup per filesystem and not all filesystems in one shot incl. /home and everything else. May be that is the misunderstanding here. I translated “entire system” to “just ‘/’”
I understand now! Whatever comes after the LAST snapshot will be gone because it was not snapshot.
In my case… as TimeShift takes a snapshot every hour automatically, so all what I can lose is the last hour that is not snapshot.
I hope I got it right.
I was the same as you a few months ago, I wanted Btrfs support for ARM installs. So I had to do a lot of research on my own and got help from dalto to accomplish it. I had to do lot of experimentation too. Tinkering and experimenting along with reading documentation is the best way to learn in my opinion.
I will certainly do it especially @dalto called for testers Btrfs Assistant 1.0 is coming, testers needed, but as of tomorrow or after tomorrow (to give myself some time to read/ask). This is the least I can do to return something to him.