Bazaar limits the size of the file that it can commit based on the available virtual memory (in accordance with the opening error ).
I would like to put the database (as a mysqldump text file) under version control. The database is 3 GB and I work on a server with 64 GB of memory. I do not understand why this would be a problem. When I try to commit, I get an error message in error:
bzr: ERROR: exceptions.OverflowError: the requested number of bytes is greater than the Python string may contain
Is there any way to get this file under the control of the bazaar version?
My preference for the bazaar is that I am familiar with it, but I plan to automate the dump and register as a cron job to any suitable version control system.
Two options I came across until a better solution appears. I am currently saving a copy of each weekly dump backup; for now, storing data is not a problem. Otherwise, I could save the first dump, distinguish between the original and the new version of the dump and version control. This will keep a record of the changes, but returning to an earlier state is not possible. This is not convenient for me if there is no direct way to return.
mysqldump mydb > mydb_base.sql touch mydb_diff bzr add mydb_diff bzr commit -m 'first commit'
then in cron script
mysqldump mydb > mydb.sql diff mydb_base.sql mydb.sql > mydb_diff bzr commit -m "`date +%Y.%m.%d-%H.%M` mydb diff" mydb_diff
source share