summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-10-25Store bags in a directory hierachyliw/bagtreeLars Wirzenius1-1/+7
Previously, they were all stored in one flat directory, resulting in millions upon millions of files in one directory.
2015-10-25setup.py: fix get_wanted_formats() not to use global configuration fileKalle Valo1-1/+2
When I tried to run unit tests it failed because of permission access: $ ./check run unit tests Running test 650/650: test_updates_subdirectory_of_persistent_directory OK 436 excluded statements 42 excluded modules Time: 2.6 s ERROR:root:Command failed: ./obnam list-formats CRITICAL:root:Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 182, in _run self.setup_logging() File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 408, in setup_logging delay=False) File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 58, in __init__ *args, **kwargs) File "/usr/lib/python2.7/logging/handlers.py", line 118, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib/python2.7/logging/handlers.py", line 65, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib/python2.7/logging/__init__.py", line 897, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 65, in _open return logging.handlers.RotatingFileHandler._open(self) File "/usr/lib/python2.7/logging/__init__.py", line 916, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/tmp/obnam.log' This was because my global configuration had a log file configured and it was not accessible to a normal user: $ grep '^log:' /etc/obnam.conf log: /var/tmp/obnam.log $ ls -l /var/tmp/obnam.log -rw------- 1 root root 24112886 Oct 25 08:58 /var/tmp/obnam.log $
2015-10-24Reformat code for pep8Lars Wirzenius1-2/+2
2015-10-24Reimplement scan_tree without recursionLars Wirzenius2-26/+52
Previously, scan_tree would, when encountering a very deep directory tree, crash due to Python's maximal stack depth limit. To avoid that, avoid recursion and use an explicit list of unprocessed items.
2015-10-20Set temporary GNUPGHOME permissionsLars Wirzenius1-0/+1
2015-10-19Update INSTALL with copyright infoLars Wirzenius1-0/+8
2015-10-19Update NEWSLars Wirzenius1-0/+3
2015-10-19Avoid storing compressed data when the tagged compressed data would be ↵Henri Sivonen1-2/+9
longer than the uncompressed data.
2015-10-19Add INSTALL and note test requirements in READMERichard Ipsum2-0/+17
2015-10-17Drop creating a $HOME during testsLars Wirzenius1-5/+0
Yarn now does that automatically.
2015-10-17Drop obsolete README.benchmarksLars Wirzenius1-79/+0
2015-10-13Output final backup summary to stdoutLars Wirzenius2-11/+18
This avoids using ttystatus, since ttystatus doesn't provide anything useful for this.
2015-10-11Update NEWSLars Wirzenius1-0/+3
2015-10-11kdirstat: Handled named pipes (fifos)Ian Campbell2-0/+15
For some reason this was missing from the mode_str lookup, it is the only type listed on https://github.com/thomas-joiner/k4dirstat/blob/master/kdirstat/cache-file-format.txt which wasn't handled. For unknown file types emit a commented "#UNHANDLED ..." line rather than crashing with a backtrace. Add a yarn for this scenario, although I've not been able to run it due to "ASSUMING extended attributes are allowed for users". Real world use has been tested by Florian Geyer, http://listmaster.pepperfish.net/pipermail/obnam-support-obnam.org/2015-September/003836.html Cc: Florian Geyer <blueice@fobos.de>
2015-10-11Update NEWSLars Wirzenius1-0/+3
2015-10-11Add extra space before in-line commentLars Wirzenius1-1/+1
2015-10-11encryption_plugin: add a gnupghome configuration optionBen Boeckel4-6/+68
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
2015-10-11encryption_tests: make robust against bad default keyringsBen Boeckel1-3/+12
If the default keyring is not pristine, the test suite fails with errors related to gpg not being able to read the keyring. Since the symmetric encryption tests can use an empty keyring, make an empty directory for it. Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
2015-10-11encryption: support custom gpghome in symmetric key functionsBen Boeckel1-6/+7
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
2015-10-11encryption: refactor _gpg_pipe to use _gpgBen Boeckel1-12/+5
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
2015-10-10Make BackupPlugin.pretend be a real attributeLars Wirzenius1-4/+1
It turns out to be costly to call the method often in a big backup.
2015-10-10Drop now-obsolete benchmark programsLars Wirzenius3-559/+0
2015-09-28Fix un-idiomatic type checks (thanks, pylint)Lars Wirzenius7-9/+12
2015-09-28Silence pylint by initialising more Metadata members by nameLars Wirzenius1-0/+3
2015-09-28Avoid using assertTrue(True) in unit testLars Wirzenius3-5/+4
2015-09-28Split out stuff from __init__.py to placate pep8Lars Wirzenius5-46/+119
2015-09-28Drop obsolete paramiko deprecation warning suppressionLars Wirzenius1-10/+1
2015-09-28Run pylint only if >= 1.3.1, and fix same for pep8Lars Wirzenius1-4/+16
2015-09-27Use multiline ttystatus when availableLars Wirzenius2-5/+21
2015-09-26Run pep8 conditionally depending on its versionLars Wirzenius1-1/+8
2015-09-23Update NEWS about sftp ipv6 address fixLars Wirzenius1-0/+8
2015-09-23use urlparse for hostname, port and usernameWilliam Boughton1-25/+4
2015-09-23Add test to test-sftpfs for sftp://[::1]/ URLsLars Wirzenius1-0/+17
2015-09-15Update copyright years (check, obnam.1.in)Lars Wirzenius2-2/+2
2015-09-12build: support build/ being a symlinkBen Boeckel2-2/+6
I use a symlink to keep build artifacts off of my main drive, so preserve the link if it exists. Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
2015-09-12manpage: remove rogue trailing whitespaceBen Boeckel1-1/+1
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
2015-09-12Prepare release version 1.17obnam-1.17Lars Wirzenius4-3/+9
2015-09-10Update NEWSLars Wirzenius1-0/+5
2015-09-10Don't see if root is file, it isn'tLars Wirzenius1-8/+0
We do not, in fact, currently support the live data root being a non-directory. The code removed here assumes it can be (it can't, neither LocalFS nor the SFTP plugin support it), and (sometimes) gets the check for whether it is wrong, resulting in backing up the parent directory instead, breaking things and confusing people.
2015-09-10Move backup progress reporting to its own moduleLars Wirzenius4-138/+160
2015-09-10Fix typo in parameter name in RootIsNotADirectoryLars Wirzenius1-1/+1
2015-09-07coverage-4.0a6 compatibilityMichel Alexandre Salim1-1/+2
coverage 4.0a6 no longer generates .coverage file, so check first if it exists before attempting removal.
2015-09-07Update NEWSLars Wirzenius1-0/+7
2015-09-07fsck: add an option to not check checksumsLukáš Poláček1-5/+11
This speeds up fsck more than 5 times, depending on the backup structure and history.
2015-09-06Prepare files for release version 1.16obnam-1.16Lars Wirzenius4-5/+5
2015-09-05Add another Debian bug closed by the new versionLars Wirzenius1-0/+1
2015-08-29Update NEWSLars Wirzenius1-0/+2
2015-08-29Merge Lukas's changes to unlock if gpg failsLars Wirzenius3-2/+16
Conflicts: obnamlib/__init__.py
2015-08-29Thank Mesar Hameed for fix to exclusion pluginLars Wirzenius1-1/+2
2015-08-29Add note to debian/changelog of bug fixedLars Wirzenius1-0/+7