Comments (6)
Hi @honzasram
According to the rdiff-backup FAQ:
If rdiff-backup fails with the message "AssertionError: Bad index order," it could be because the files in a directory have changed while rdiff-backup is running. Possible ways of dealing with this situation include implementing filesystem snapshots using the volume manager, excluding the offending directory, or suspending the process that is changing the directory. After the text "Bad index order", the error messge will indicate which files have caused the problem.
I've also heard that it may be an indication of a failing disk or partially corrupted filesystem.
I think the best approach is probably to post on the mailing list until we can determine if it's a bug. I'll keep this issue open for a bit.
- Andy
from rdiff-backup.
the same bad index order
error occured with my backup when i was trying to add a new increment. the initial backup completed without error message on stdout/stderror and session statistics did not indicate any problem. the next backup (or --check-destination-dir
) did then reveal the bad index order
error, which seem not to be recoverable. i have run fsck
with -cc
to check the disk completely - it is no likely that this is hardware problem of the disk; it is, however, possible, that a file was changed while the backup was running (which should not cause a serious error and easily recoverable).
i consider this a damaging problem:
- errors in backup must be detected during the backup and reported then (assuming the error was during the completed backup process)
OR
- errors in a new backup can be thrown out by unwinding the new backup.
OR
- there is a published procedure to recover from the "Bad index order" error.
the problem is serious because i end with an incomplete backup which is not usable anymore, detected only later.
i run debian jessie on armhf with kernel 4.9. and the current rdiff-back from debian 1.2.8-7).
i hope you can indicate a method to recover from 'bad index order' and publish it, in case I or others encounter the same problem again.
thank you for picking up maintenance of rdiff-backup - it is still one of the most reliable backup systems.
andrew
from rdiff-backup.
This is a current limitation of rdiff-backup that it can't handle well files changing while they are backed-up. We can look into this but that might not be trivial and I would consider this as an enhancement.
from rdiff-backup.
Hello @honzasram!
The code base has been rewritten for Python 3 and there will be no further releases for the 1.x series in Python 2 anymore. Could you please help out and test again with the latest development version (https://github.com/rdiff-backup/rdiff-backup#installing-the-latest-development-version) if you can still reproduce this?
With your help, the upcoming 2.0.0 release could be improved and this reported issue eventually solved in future 2.x releases.
from rdiff-backup.
Hi @ottok,
Unfortunately I abandon that solution and resolved it different way.
Exact setup was backup server with mounted SMB disk and running locally. That way, users could easily change data during backup. Since it was order of TB, it took long time to process and users could interfere with backup process. At least that was my understanding of problem.
Cheers.
from rdiff-backup.
OK, then let's close this bug as we wouldn't solve it any time soon anyway.
from rdiff-backup.
Related Issues (20)
- [BUG] Homebrew contains unreleased version 2.4.0 of rdiff-backup HOT 3
- [BUG] pyproject.toml license field should be GPL-2.0-or-later
- [ENH] make tox.ini only write to readable places with --current-env HOT 4
- [?] Is backup to a samba share supported? HOT 3
- [?] rdiff-backup doc and remote HOT 2
- [BUG] CVE-2023-49797 pyinstaller: unauthorized deletion of files HOT 2
- [ENH] allow flexible usage of better hashing algorithm than SHA1
- [BUG] rdiff-backup fails on too long filenames under Windows HOT 1
- What are the errors in statistics? HOT 4
- [ENH] populate no_compression_regexp with _something_ so it matches the documentation HOT 4
- [BUG] read-only commands should return 2 as warning if last back-up failed HOT 6
- [BUG] Removal of setup.py usage in debian/autobuild.sh regressed it HOT 2
- [BUG] crash on date beyond 2038 (last 32 bits date) HOT 3
- test action fails with empty error message when using API 201 HOT 1
- [ENH] Suppress output line-wrapping when using --parsable-output HOT 3
- [?] MacOS with Python Universal2, using pip to install rdiff-backup is working, but the resulting installation is broken HOT 2
- [ENH] Efficient restore to a populated destination HOT 7
- [BUG] Recurring Failure to "find the path specified: b'I:/'" HOT 2
- backup to a pCloud mounted drive[?] HOT 8
- problem [Errno 11] Resource temporarily unavailable, when running backup HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rdiff-backup.