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

history keep period #286

Open
mezoology opened this issue Oct 22, 2021 · 2 comments
Open

history keep period #286

mezoology opened this issue Oct 22, 2021 · 2 comments

Comments

@mezoology
Copy link

Hello, and Excuse me if this is the wrong place to ask.

Is this self-hosted project have the same Firefox Cloud limits 👍

Synced tabs expire in 7 days. Synced history expires in 60 days. New history is only uploaded for the last 30 days.

and if so, is there any way to make it permanent.

Thanks in Advance.

@jrconlin
Copy link
Member

This repo is just a wrapper for two other services. Tokenserver and Sync Server. It's absolutely possible to run both of these on their own, or go in to the code or settings and change them however you see fit.

Although, a word of caution: If you don't expire data, you're going to need a lot of disk space. Things will accumulate very quickly (even for a single user). Plus, some really don't make a lot of sense to retain. Once a tab or history is sync'd (for instance) it appears in both browser instances's history, so retaining that info doesn't really help anything, and since it's never referred to afterwards, it's just extra junk in your database. Plus, pages tend to "rot" faster than you expect.

@jackyzy823
Copy link

Expired data in db will not be deleted unless manual operation. https://github.com/mozilla-services/server-syncstorage/blob/master/syncstorage/scripts/purgettl.py

If you want data not to expire. You can make a database schedule job like CREATE EVENT ON SCHEDULE in mysql to execute SQL like UPDATE sync.bso set ttl=2147483647.

New history is only uploaded for the last 30 days.

this is a client side behavior . server can do nothing to help.

Another point is that client side have download and upload size limit too.
see https://searchfox.org/mozilla-central/source/services/sync/modules/constants.js#76

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

3 participants