question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

generational backup misbehaving?

See original GitHub issue

Hi, I think I ran into an issue. I configured the configurational backup. (Thanks for the amazingly fast implementation btw!)

I used the following configuration:

{
  "max_snapshots_in_hassio": 3,
  "max_snapshots_in_google_drive": 30,
  "days_between_snapshots": 1,
  "use_ssl": false,
  "send_error_reports": true,
  "generational_days": 6,
  "generational_weeks": 3,
  "generational_months": 11,
  "generational_years": 10
}

While it started good (4th of april, next 11th of april), I afterwards still have all my daily backups in Google drive. image Shouldn’t it delete everythung but 18th and 25th?

Or am I missunderstanding the behaviour? Does it start deleting only if it gets to the max limit? But then, why did it “work” at the beginning.

Clearly, it’s no serious bug as no data is lost, I’m just wondering if something is wrong or I just don’t understand.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sabeechencommented, Apr 30, 2019

Here’s an option I hadn’t thought of, I could just make it configurable. Like add a checkbox for “Purge Generational Snapshots Early”, where when you check it snapshots get cleaned up if they’re not associated with one of the time-frames associated with a generational snapshot even if you have the space available in Google Drive. That would have the added benefit of being “opt-in”, so anyone that already had generational backups enabled wouldn’t suddenly see their snapshots disappear when they update the add-on.

0reactions
sabeechencommented, Nov 1, 2019

Took me a loooong while to get to this, but I’ve added an option to “aggressively” clean up old snapshots with generational backup in v0.99.0. You can check for it under “Keep Generational Backups” in the settings menu.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Often Should You Backup Your Data, Really?
In this article we discuss How Often Should You Backup Your Data. Read more to find out.
Read more >
What happens if you don't have Data backup and data security?
Physical damages: When the hard disk is damaged due to faulty hardware, voltage variation, software misbehavior or operating system crash. What are the ......
Read more >
Has the risk of ransomware changed your backup strategy?
At work no. Our backups were pretty tight to start with and we were going to implement virtual servers, replication, cloud backups etc...
Read more >
Perfecting replication - InfoWorld
However, alternatives such as replication software are a better way to protect data at a remote office -- especially compared to running backup...
Read more >
Parenting: backing each other up | Raising Children Network
Decide together on the consequences you'll use for misbehaviour. Back up your partner's decisions. If an issue comes up with your children ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found