15
submitted 2 years ago by tubbadu@lemmy.kde.social to c/linux@lemmy.ml

Hello! I just set up timeshift on my EndeavourOS pc, but this time I chose BTRFS instead of rsync. I currently decided to store the snapshot on the same hard drive of my installation because, well, it's my only one. during the setup, it only asked me if I wanted to include the @home or not. using rsync, instead, it asked for a bunch of locations, and I could choose to include only dotfile, everything, nothing,... is this normal?
also, the snapshot took like... 1 second? with rsync it may take up to 5 minutes... is this normal? or am I backupping fried air?

you are viewing a single comment's thread
view the rest of the comments
[-] 0x4E4F@lemmy.rollenspiel.monster 4 points 2 years ago* (last edited 2 years ago)

Yep, you're doing it right... or at least that's how I do it as well, lol 😂.

A snapshot is exactly that, a snapshot. It doesn't take forever to create, like with rsync, it litelarly takes a second, even on very old rigs (775 or even older). It's basically a snapshot of what the current drive holds. If a file changes (gets added, removed, whatever), the snapshot grows cuz it needs to hold the older versions of the files (the ones saved at the time of the snapshot).

This might not be exactly how snapshots work in BTRFS, but this is what I gathered from using it with snapshots enabled. The older the snapshot, the larger the size of the snapshot (takes way more room cuz more changes have occured).

Also, it's wise to set up daily, weekly and monthly snapshots. I have it set up to hold 5 or 6 (can't really remember now) daily snapshots, 4 weekly and 2 montly. So basically, I can go back in time for a max of 2 months. I was thinking or raising the montly snapshots to 3 or 4, but I'm still not sure. Still, I wouldn't go lower than 2.

[-] tubbadu@lemmy.kde.social 1 points 2 years ago

Also, it’s wise to set up daily, weekly and monthly snapshots

wouldn't this take a lot of disk space?

[-] 0x4E4F@lemmy.rollenspiel.monster 2 points 2 years ago* (last edited 2 years ago)

Nah, I got it set up on a P4 with a 20GB drive, takes about 2 or 3GB. As time progresses, older snapshots get deleted automatically by Timeshift 😉. So, say you got 4 daily set up, 4 weekly and 2 montly. Only the last 4 daily, 4 weekly and 2 monthly stay, the rest are deleted as new snapshots are created. That's the while point of having this setup, so you can go back in time, but you decide how long.

[-] tubbadu@lemmy.kde.social 1 points 2 years ago* (last edited 2 years ago)

woah! this is amazing! thanks for the help!!!

[-] 0x4E4F@lemmy.rollenspiel.monster 2 points 2 years ago

NP, glad I could help 😉 👍.

load more comments (5 replies)
load more comments (5 replies)
this post was submitted on 20 Jul 2023
15 points (94.1% liked)

Linux

57274 readers
549 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS