purge timeshift backups

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
barneyblogggs
Level 1
Level 1
Posts: 27
Joined: Mon Dec 29, 2014 7:40 am
Location: Newcastle, UK

purge timeshift backups

Post by barneyblogggs »

Hi,
I am running out of space on my external HDD and need to purge old timeshift snapshots but am not sure how to do this.
I create monthly backups and use the command timeshift --check
If the check reveals its not time for the monthly backup yet I use timeshift --create
Thus I have a mixture of On Demand backups and monthly backups.
I havent tried anything yet as dont want to leave myself without any backups.
Ive checked timeshift --help but this didnt give the answer I was looking for
I have also tried man timeshift but there is no manpage
Could somebody point me in the right direction.

cheers,
barneyblogggs

ajgringo619
Level 7
Level 7
Posts: 1572
Joined: Thu Mar 01, 2018 8:36 pm
Location: San Diego, California, USA

Re: purge timeshift backups

Post by ajgringo619 »

(From the Menu) Administration --> Timeshift. Click on the snapshot you want to remove, then click Delete.
Mint 19.3 XFCE
kernel 5.3.0-51-generic
AMD FX-8350 Eight-Core w/16 GB RAM
Nvidia GeForce 960 w/2GB RAM [440.82]
Image

barneyblogggs
Level 1
Level 1
Posts: 27
Joined: Mon Dec 29, 2014 7:40 am
Location: Newcastle, UK

Re: purge timeshift backups

Post by barneyblogggs »

Thanks ajgringo619.
Simple as that.
I was concerned that doing that I would ruin the incremental nature of the backups
But I have looked at them again and there were monthly backups created at a later date after the on demand ones so I have deleted the on demands.
I have also deleted the oldest monthly backup as it was 5 months old.
I now have space on me external HDD again ready for the next backup run.

Regards,
barneyblogggs

User avatar
pbear
Level 14
Level 14
Posts: 5085
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: purge timeshift backups

Post by pbear »

barneyblogggs wrote:
Mon Aug 26, 2019 8:43 am
I was concerned that doing that I would ruin the incremental nature of the backups.
No need to worry about which snapshots you delete or in what order. Long story short, Timeshift consists of two components: (i) a mini local repository with a copy of all your packages and system files and (ii) snapshots which are, in effect, lists of the packages and files on the system at a particular point in time. Importantly, each file is copied only once (packages are files also, of course). So, your first snapshot will be about the same size as the system. The next requires space only for the new snapshot list (a series of hardlinks, actually) and any additional files. Because the mini repo is independent of the snapshots, you may delete the latter in any order without impairing the integrity of the other snapshots. Only when all snapshots linking to a particular file are deleted is that file removed from the mini repo. Credit to slipstick, by the way, on whose explanation the foregoing is based.
Time flies like an arrow. Fruit flies like a banana.
Before you post, please read how to get help.

barneyblogggs
Level 1
Level 1
Posts: 27
Joined: Mon Dec 29, 2014 7:40 am
Location: Newcastle, UK

Re: purge timeshift backups

Post by barneyblogggs »

Hi pbear,
Many thanks for the explanation.
Im now more confident that I havent f&%$ed things up.
Many thanks to slipstick too who you say gave you the inspiration for your answer.

Regards,
barneyblogggs

Post Reply

Return to “Software & Applications”