Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated hourly backups are preferred, but backups are not hourly #883

Closed
grahamperrin opened this issue Nov 13, 2021 · 12 comments
Closed

Comments

@grahamperrin
Copy link

grahamperrin commented Nov 13, 2021

Description

Initially, I imagined a file naming bug.

After more than an hour without an additional backup, I'm not sure what's wrong.

After more than three hours, it seems that, maybe:

  • the penultimate hourly backup is wrongly deleted

– leaving only the most recent hourly backup.

Reproduction

  1. With the previous version of Simple Tab Groups, have hourly backups
  2. update to version 4.71
  3. quit Firefox
  4. start Firefox
  5. observe the first backup of the thirteenth day of the month, literally auto-stg-backup-day-of-month-13@drive4ik.json
  6. after more than hour, seek the subsequent backup review the list of backups
  7. nothing beyond just one auto-stg-backup-day-of-month-13@drive4ik.json

Expected

  1. hourly backups

Screenshots

2021-11-13 00:44, the initial backup by 4.71:

2021-11-13 01:16:09 day-of-month-13

2021-11-13 02:19, no subsequent backup it seems that the 00:44 backup has disappeared:

image

  • at the foot of the Dolphin window: output from ls -hlrt

My preference for hourly backups (unchanged):

image

Environment

% pkg query '%o %v %R' firefox
www/firefox 94.0.1,2 FreeBSD
% freebsd-version -kru
14.0-CURRENT
14.0-CURRENT
14.0-CURRENT
% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #114 main-n250511-5f73b3338ee: Sat Nov  6 21:15:23 GMT 2021     root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG  amd64 1400040 1400040
% 

Simple Tab Groups 4.71.

Additional context

0caedab

#506 (comment)

@grahamperrin grahamperrin changed the title auto-stg-backup-day-of-month-13@drive4ik.json and no hourly backup auto-stg-backup-day-of-month-13@drive4ik.json and hourly backup lost? Nov 13, 2021
@grahamperrin

This comment has been minimized.

@grahamperrin
Copy link
Author

An 02:52 view of things:

% pwd
/usr/home/grahamperrin/Downloads/STG-backups-FF-94.0.1
% date ; uptime; ls -hlrt | tail -n 2
Sat 13 Nov 2021 02:52:31 GMT
 2:52a.m.  up 1 day, 22:18, 7 users, load averages: 5.28, 4.59, 3.07
-rw-r--r--  1 grahamperrin  grahamperrin   9.8M 12 Nov 15:48 auto-stg-backup-2021-11-12~15-48@drive4ik.json
-rw-r--r--  1 grahamperrin  grahamperrin   9.8M 13 Nov 02:45 auto-stg-backup-day-of-month-13@drive4ik.json
% 
  • 02:45 is the ultimate backup
  • the 01:44 (penultimate) backup is no longer listed.

@grahamperrin grahamperrin changed the title auto-stg-backup-day-of-month-13@drive4ik.json and hourly backup lost? auto-stg-backup-day-of-month-13@drive4ik.json and losses of hourly backups Nov 13, 2021
@jtagcat
Copy link

jtagcat commented Nov 16, 2021

Can replicate with a larger sample size:

...
auto-stg-backup-2021-11-11~22-01@drive4ik.json
auto-stg-backup-2021-11-11~23-01@drive4ik.json
auto-stg-backup-2021-11-12~00-01@drive4ik.json
auto-stg-backup-2021-11-12~01-02@drive4ik.json
auto-stg-backup-2021-11-12~02-06@drive4ik.json
auto-stg-backup-2021-11-12~03-06@drive4ik.json
auto-stg-backup-2021-11-12~04-06@drive4ik.json
auto-stg-backup-2021-11-12~05-06@drive4ik.json
auto-stg-backup-2021-11-12~16-53@drive4ik.json
auto-stg-backup-day-of-month-12@drive4ik.json
auto-stg-backup-day-of-month-13@drive4ik.json
auto-stg-backup-day-of-month-14@drive4ik.json
auto-stg-backup-day-of-month-15@drive4ik.json
auto-stg-backup-day-of-month-16@drive4ik.json

@jtagcat
Copy link

jtagcat commented Nov 16, 2021

0caedab #506

image

Contrary to the issue's title, I didn't find any RFC about the format (nor was any references in the issue). Starting with zero or 1 for all backups should be fine.


Settings: moz-extension://ff7e9429-b707-44e3-85c5-d2ac87ab605b/options/options.html

Also, the string The backup file will look like this: "auto-stg-backup-day-of-month-22@drive4ik.json" is hardcoded in the translations, and doesn't change when checking-unchecking the box.

@Drive4ik
Copy link
Owner

@grahamperrin disable this option and everything will be as before
изображение

@nekohayo
Copy link

I think the issue being reported here was that it uses the string "day-of-the-month" instead of the actual month number, or is that really what you intended, to have no more than one month's backups so that it essentially overwrites its own backups on a rolling basis?

I was similarly confused and didn't spontaneously imagine/realize this was a new rolling-overwrite feature due to the way that string is named (to the users it "looks" broken even if maybe it isn't). Maybe a string like "monthly-rolling-backup-no{number}" would be clearer (or perhaps @grahamperrin would have a better idea than me here)?

@Drive4ik
Copy link
Owner

@nekohayo

I think the issue being reported here was that it uses the string "day-of-the-month" instead of the actual month number, or is that really what you intended, to have no more than one month's backups so that it essentially overwrites its own backups on a rolling basis?

Absolutely right. The backups are overwritten after a month, because the numbers of the day of the month are repeated.

@grahamperrin
Copy link
Author

Please reopen; not fixed.

disable this option and everything will be as before …

I did so (experimentally) before the suggestion was made, it has been disabled for a few days and still, no hourly backups:

image

The most recent succession of true hourly backups was on 12th November, the day before I opened this bug.

@grahamperrin grahamperrin changed the title auto-stg-backup-day-of-month-13@drive4ik.json and losses of hourly backups Automated hourly backups are preferred, but backups are not hourly Nov 24, 2021
@nhoizey
Copy link

nhoizey commented Dec 7, 2021

@Drive4ik I can confirm that I don't have hourly backups anymore.

Firefox on macOS Big Sur with STG 4.7.2.1

@Kelvino9
Copy link

Kelvino9 commented Jan 8, 2022

This issue is definitely not yet fixed and should not be closed.

@grahamperrin
Copy link
Author

#883 (comment)

Please reopen; not fixed.

Truly, it's not fixed. Before the bug bit, I had multiple backups per day.

Now (bugged since November): no more than one per day.

image

@ShingenPizza
Copy link

eh? the backups ARE hourly. if you set them to be hourly, of course.
the problem is only that because of their name lacking hour/minute now, and thus being the same throughout the entire day, they get overwritten by one another.
it was also reported in #901

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants