-
Notifications
You must be signed in to change notification settings - Fork 88
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
rsync sparse files handling and rsync error notification. #311
Comments
Well, concerning sparse files in a Firefox profile (point 2), I have to admit that I haven't seen anything in Mozzilla's technical literature referring to it ... This allowed me to do some tests (overlay mode is not enabled) to copy the profile by comparing the performance of
versus
No contest! => |
I believe you'll need to clear the caches between tests or else the 2nd test may artificially complete faster. This can be done by |
The difference is less, but still significant:
But of course, resynchronization (destination directory not erased) is more efficient with rsync
Seeing the transfer times ... fortunately there are caches ! |
By experimenting with profile-sync-daemon (overlay mode is not enabled), I realized that some files in my Firefox profile were corrupted (places.sqlite for example). This didn't seem to be too much of a problem for Firefox.
rsync
encountered these kind of errors:It seemed to me that such a problem (
rsync
command which generates errors) should be easily detected, without necessarily having to look into the logs.So I forwarded the
rsync
command lines with an error test and an alert message:Same thing for 'sync' and 'unsync' operations .
On the other hand,
notify-send
command (oralert
or something similar) adds a dependency.What other solution for handling
rsync
errors might be possible?I tested the sparseness of files (to compare backup directory with "volatile" directory in RAM) with :
I also tried
stat
command to see block used by sparse files.The problem seems to be fixed by changing the following line:
For other synchronizations (resync), the --inplace option seems OK.
Since these tests, I have rebuilt my profile and I no longer see any problem. I don't believe psd is the cause of a profile corruption issue, but have you ever seen anything similar that can result from dealing with sparse files?
The text was updated successfully, but these errors were encountered: