Low on Disk Space - questions about Timeshift and snap

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
neckenth
Level 1
Level 1
Posts: 5
Joined: Sun Jul 08, 2018 9:32 pm

Low on Disk Space - questions about Timeshift and snap

Post by neckenth » Sat Oct 20, 2018 1:43 pm

Hi everyone -

I know there are a bunch of questions on here regarding disk space and Timeshift, but I feel as though disk space issues can be pretty individualized, so - as a total novice - I wanted to check in before I break anything.

I am running Linux Mint 18.3 dual booted onto a Lenovo Thinkpad Yoga 260 - 8 GiB of RAM. I really only use this computer for programming and regular internet stuff - I don't make a ton of system configuration changes at this point (not since I first set it up in March and a few periodic changes and updates since then). I have Timeshift running backups, and until recently, my Schedule was set to keep 5 daily backups and 5 boot backups. This is clearly far too much since I rarely make system changes, so I changed the settings to just keep 1 daily and 1 boot.

Also, when I initially set up this system, I wanted to install Spotify, and I did so via snap, which was pretty unnecessary.

Timeshift seems to be wreaking havoc on my disk space, and snap is saving things to /dev/loop devices. Really unclear what that is all about. (See attached screenshots.)

A few questions:

1 - Is it safe to delete old Timeshift backups? Since these are incremental backups, I imagine that deleting an older backup but keeping a new one would leave me missing things. I clearly have too many, and the only sizeable ones are the one from today (10/20) and the one from 3/5. It would be great if I could free up some space there, but I'm not sure what's safe. Can I just make a backup today and save it to a USB stick and delete at least the old backups?

2 - Since I installed snap just to install Spotify, can I uninstall Spotify and snap (sudo apt autoremove --purge snapd)? Or is it critical for my setup at this point...not sure what the deal is with snap core, to be honest.

Thanks so much for your patience with my beginner questions, and I appreciate any advice in advance!
Attachments
SystemMonitor_10.20.18.png
DiskUsageAnalyzer_10.20.png

gm10
Level 12
Level 12
Posts: 4145
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low on Disk Space - questions about Timeshift and snap

Post by gm10 » Sat Oct 20, 2018 1:56 pm

You can safely remove any Timeshift snapshot, they are not technically incremental despite what it claims. Personally I only do weekly scheduled snapshots - there is no right answer, it comes down to your needs.

You can safely remove snapd if you do not need it anymore.

martinch
Level 1
Level 1
Posts: 22
Joined: Thu Dec 28, 2017 3:50 pm

Re: Low on Disk Space - questions about Timeshift and snap

Post by martinch » Sat Oct 20, 2018 3:47 pm

I don't believe Timeshift backups are incremental - on a machine with no changes made during the last week, the daily Timeshift backups (default settings) are 10GB each.

gm10
Level 12
Level 12
Posts: 4145
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low on Disk Space - questions about Timeshift and snap

Post by gm10 » Sat Oct 20, 2018 3:52 pm

martinch wrote:
Sat Oct 20, 2018 3:47 pm
I don't believe Timeshift backups are incremental - on a machine with no changes made during the last week, the daily Timeshift backups (default settings) are 10GB each.
Timeshift uses hardlinks for unchanged files, i.e. the same unchanged file will appear in each snapshot but only take up disk space once. If your total disk space usage did actually increase by 10 GB with each snapshot then there's a misconfiguration in the filters.
Last edited by gm10 on Sat Oct 20, 2018 4:15 pm, edited 1 time in total.

User avatar
AZgl1500
Level 9
Level 9
Posts: 2748
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Low on Disk Space - questions about Timeshift and snap

Post by AZgl1500 » Sat Oct 20, 2018 4:09 pm

neckenth wrote:
Sat Oct 20, 2018 1:43 pm
A few questions:

1 - Is it safe to delete old Timeshift backups? Since these are incremental backups, I imagine that deleting an older backup but keeping a new one would leave me missing things. I clearly have too many, and the only sizeable ones are the one from today (10/20) and the one from 3/5. It would be great if I could free up some space there, but I'm not sure what's safe. Can I just make a backup today and save it to a USB stick and delete at least the old backups?
You can, if you wish, save all of the Timeshift backups to a separate USB stick/HDD
I do that for several different laptops. Just label the stick for the individual PC, as Timeshift always saves to /root and does not differentiate between different PCs or OSs


My Timeshift folder on the backup drive has not changed in total size very much since I first started using it.
I make a few manual backups, and have the daily backups auto-delete after 3 copies. YMMV, but it works for me.

this is what my Backup drive looks like

Backup.png

neckenth
Level 1
Level 1
Posts: 5
Joined: Sun Jul 08, 2018 9:32 pm

Re: Low on Disk Space - questions about Timeshift and snap

Post by neckenth » Sat Oct 20, 2018 4:46 pm

Wow thank you all so much for your help so far!

What I'd like to do is change my backup location to my USB stick, which I was successfully able to do earlier this year.

However, when I try to switch the location, I get a message that the drive does not have a Linux partition, so I can't select it (see attached image). Somehow, I was able to do this in the past, so I'm not really sure how to circumvent this.

Any advice?
Attachments
Timeshift_img.png

gm10
Level 12
Level 12
Posts: 4145
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low on Disk Space - questions about Timeshift and snap

Post by gm10 » Sat Oct 20, 2018 5:08 pm

As it says in your screenshot, "Devices with Windows file systems are not supported (NTFS, FAT, etc.)."
Solution: Format with a Linux file system:

Code: Select all

sudo mkfs.ext2 /dev/sdb1

neckenth
Level 1
Level 1
Posts: 5
Joined: Sun Jul 08, 2018 9:32 pm

Re: Low on Disk Space - questions about Timeshift and snap

Post by neckenth » Sat Oct 20, 2018 5:16 pm

Yeah - I reformatted it. I was just surprised - there were already system backups on there, so I assumed it was already properly formatted - pretty strange.

Thanks for all the help! Going to delete the old backups from my system, and hopefully I'll free up some space.

neckenth
Level 1
Level 1
Posts: 5
Joined: Sun Jul 08, 2018 9:32 pm

Re: Low on Disk Space - questions about Timeshift and snap

Post by neckenth » Sat Oct 20, 2018 5:29 pm

Wow, huge difference! Thanks again!

smellydog
Level 1
Level 1
Posts: 2
Joined: Wed Oct 24, 2018 6:26 pm

Re: Low on Disk Space - questions about Timeshift and snap

Post by smellydog » Thu Oct 25, 2018 11:00 am

gm10 wrote:
Sat Oct 20, 2018 3:52 pm
martinch wrote:
Sat Oct 20, 2018 3:47 pm
I don't believe Timeshift backups are incremental - on a machine with no changes made during the last week, the daily Timeshift backups (default settings) are 10GB each.
Timeshift uses hardlinks for unchanged files, i.e. the same unchanged file will appear in each snapshot but only take up disk space once. If your total disk space usage did actually increase by 10 GB with each snapshot then there's a misconfiguration in the filters.
Just want to point out a possible common cause of this particular issue: A custom-named 8GB swap file.

gm10
Level 12
Level 12
Posts: 4145
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low on Disk Space - questions about Timeshift and snap

Post by gm10 » Thu Oct 25, 2018 11:05 am

smellydog wrote:
Thu Oct 25, 2018 11:00 am
Just want to point out a possible common cause of this particular issue: A custom-named 8GB swap file.
Good point, although we could argue the "common" - I don't think the average Mint user would begin to know how to create a custom swap file. But good point.

Post Reply

Return to “Hardware Support”