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

ignore_regexp won't go away #58

Closed
oOZeVsOo opened this issue Jan 15, 2016 · 5 comments · Fixed by #122
Closed

ignore_regexp won't go away #58

oOZeVsOo opened this issue Jan 15, 2016 · 5 comments · Fixed by #122

Comments

@oOZeVsOo
Copy link

Hi,

I did a subfolder sync one time and since then I can't do a full sync.
I tried:
grive -p .
grive -p /my/folder
grive -s .
grive -s /my/folder
and so on.

I can't see the "ignore_regexp" in the .grive_state is still filled with the regexp from my first subfolder sync. How can I reset it ?

Thank you very much for your great work.

PS: My grive version: grive version 0.5-pre Jan 6 2016 18:55:52

@vitalif
Copy link
Owner

vitalif commented Jan 15, 2016

Use grive --ignore ''

@oOZeVsOo
Copy link
Author

It seems to work but:

  • the ignore_regexp is not reset so if I launch it again without --ignore it won't work
  • all the improvements you just did (checksum cache) seems to be ignored (it has been running for an hour without any files synced yet).
    Thanks

@vitalif
Copy link
Owner

vitalif commented Jan 15, 2016

Just checked it, the empty ignore regexp is saved in .grive_state without problem. Maybe you didn't let it finish the sync? The regexp is saved only after sync is finished and only without --dry-run (dry run does not change anything in local fs and thus doesn't update .grive_state).

About the second point - grive removes ignored files from the local index so it recalculates checksums when you clear the ignore regexp, and does not save them until you run it without --dry-run.

@oOZeVsOo
Copy link
Author

I wanted to use "-s" when needed and do an extensive sync once or twice a day. But since checksums are cleared after "-s" launch my syncs are going to be 2 hours+ long.

Is there a way to backup the checksums before "-s" launch (for other directories) or something like that ?

Thank you very much.

@vitalif
Copy link
Owner

vitalif commented May 11, 2016

OK I've done it, the ignore regexp is not persistent anymore...

aschei added a commit to aschei/grive2 that referenced this issue Dec 6, 2016
"Make ignore regexp non-persistent (fix vitalif#58)" should be reflected in the
man page.
vitalif added a commit that referenced this issue Nov 21, 2017
Fix man page to reflect fix #58
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

Successfully merging a pull request may close this issue.

2 participants