summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/show_plugin.py
AgeCommit message (Collapse)AuthorFilesLines
2017-03-25Force summain checksum algorithmLars Wirzenius1-0/+1
Summain default has changed, so to be compatible with old summain output files, we have to force the checksum algorithm to what the old default was.
2017-03-03Include the root dir into kdirstat outputSanskritFritz1-3/+0
Root directory is now excluded from kdirstat output done by obnam. That solution was probably a workaround to a k4dirstat bug, however, this broke displaying any --root="/" backups and since we now have qdirstat (and k4dirstat became deprecated) which fixed the bug, it is time to reintroduce the root dir into the kdirstat output. Discussion with Ian about this can be read in the thread "Kdirstat merged to Qdirstat".
2016-10-29kdirstat: Correct output syntax for FIFOIan Campbell1-1/+1
There needs to be some whitspace after the FIFO tag, otherwise k4dirstat (silently!) stops parsing at this entry. This was wrong in the initial commit to add FIFO support to kdirstat 4ce858d7c593 ("kdirstat: Handled named pipes (fifos)"), manual testing at the time apparently only verified that the file was generated, not that it was valid, sorry. I updated the test yarns to also check for FIFO, however this is only run "ASSUMING extended attributes are allowed for users", which does not appear to be the case on my system. Also the testshould probably test for all sorts of files, not just regular and FIFO. Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
2016-01-15Update copyright yearsLars Wirzenius1-1/+1
2016-01-15Use enumerate for clarity, brevityLars Wirzenius1-2/+2
2015-12-17Show time zone in "obnam generations"Lars Wirzenius1-1/+16
2015-12-06Don't get MD5 in show plugin unless allowedLars Wirzenius1-2/+3
2015-10-11kdirstat: Handled named pipes (fifos)Ian Campbell1-0/+5
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-08-29Drop dead codeLars Wirzenius1-2/+0
2015-08-29Fix strange indentLars Wirzenius1-1/+1
2015-07-04Cleanups suggested by pep8Lars Wirzenius1-30/+39
2015-04-03Update copyright yearsLars Wirzenius1-1/+1
2015-03-22Remove unused methodLars Wirzenius1-4/+0
2015-03-22add a XXX to a unused(?) broken piece of codeThomas Waldmann1-1/+1
2015-03-22show_plugin: fix call to undefined methodThomas Waldmann1-1/+1
2015-03-22avoid shadowing builtinsThomas Waldmann1-3/+3
2015-03-22add missing imports, remove unused importsThomas Waldmann1-1/+0
2015-03-22remove uneeded outer parens around boolean expressionsThomas Waldmann1-3/+3
2015-02-26PATCH: minor style fixes, no functional changeThomas Waldmann1-1/+1
Some stuff found by pycharm code checker.
2014-12-08Implement support for listing a generation in kdirstat.cache formatIan Campbell1-2/+1
On Sat, 2014-12-06 at 19:15 +0200, Lars Wirzenius wrote: > On Sun, Nov 16, 2014 at 11:24:11AM +0000, Ian Campbell wrote: > > This implements an ls variant whose output format is compatible with the > > kdirstat cache format. The best reference I can find for this is from an old fork: > > https://github.com/thomas-joiner/k4dirstat/blob/master/kdirstat/cache-file-format.txt > > > > Recent versions of k4dirstat appear to be able to read the files produced just > > fine, although this document is not present in their source AFAICT. > > > > I find k4dirstat to be an excellent way to visualise what is included in a > > backup, e.g. for the purposes of excluding file types or marking directories > > with a CACHEDIR.TAG. My previous solution involved post-processing the output > > of ls which require a ssh to the machine with the files (for stat() purposes). > > This approach pulls all of the data out of the obnam repo, so is much faster, > > less hacky and gets the status of the actual generation and not the current > > files etc. > > Thank you, Ian. I've applied the patch and pushed the changes to > master on git.liw.fi. Thanks. > It would be nice if someone wrote a test case for this (in yarn form), > so that I'll notice when I break it. Your wish etc etc... (it even found a bug!) 8<---------------- >From 8f1aecfee8ec34e5d060f81ee47f9fd8aacdc201 Mon Sep 17 00:00:00 2001 From: Ian Campbell <ijc@hellion.org.uk> Date: Sun, 7 Dec 2014 15:19:57 +0000 Subject: [PATCH] Add a yarn for testing kdirstat cachefile generation. Rather simplistic, but caught one bug (unwanted newline at start of file) which is also fixed here.
2014-12-06Fix overly long lineLars Wirzenius1-1/+2
2014-12-06Implement support for listing a generation in kdirstat.cache formatIan Campbell1-12/+57
This implements an ls variant whose output format is compatible with the kdirstat cache format. The best reference I can find for this is from an old fork: https://github.com/thomas-joiner/k4dirstat/blob/master/kdirstat/cache-file-format.txt Recent versions of k4dirstat appear to be able to read the files produced just fine, although this document is not present in their source AFAICT. I find k4dirstat to be an excellent way to visualise what is included in a backup, e.g. for the purposes of excluding file types or marking directories with a CACHEDIR.TAG. My previous solution involved post-processing the output of ls which require a ssh to the machine with the files (for stat() purposes). This approach pulls all of the data out of the obnam repo, so is much faster, less hacky and gets the status of the actual generation and not the current files etc.
2014-09-02fill in the mode display bitsDavid Fries1-2/+18
This fills in the displayed file mode permission mode bits such as character, block, setuid, sticky, etc.
2014-04-16Remove TAB characterLars Wirzenius1-1/+1
2014-04-13Format long linesLars Wirzenius1-18/+20
2014-04-13Add missing copyright statements, yearsLars Wirzenius1-1/+1
2014-03-29Fix "obnam diff latest"Lars Wirzenius1-1/+2
Add test case. Fix code. Reported-by: Junyx
2014-02-27Get rid of obnamlib.ErrorLars Wirzenius1-1/+1
2014-02-16Catch ObnamError as well in show_plugin.pyLars Wirzenius1-1/+1
2014-02-15Convert show_plugin.py to StructuredErrorLars Wirzenius1-6/+19
2013-12-28Remove wrong FIXMELars Wirzenius1-1/+0
2013-12-28Add more generation keys to repo interfaceLars Wirzenius1-11/+20
2013-12-28Remove obsolete fixme commentLars Wirzenius1-4/+0
2013-12-28Have "obnam ls" report generation timesLars Wirzenius1-2/+6
2013-12-28Fix bugs in calling new codeLars Wirzenius1-1/+2
2013-12-28First, incomplete step to using rep interface in showLars Wirzenius1-81/+117
2013-10-21Fix trailing slash bug for "obnam ls"Lars Wirzenius1-0/+6
Reported-by: Biltong
2013-10-13Handle no-backup-yet correctly for NagiosLars Wirzenius1-1/+5
Patch by Lars Kruse.
2013-10-13Avoid "obnam clients" requiring an existing clientLars Wirzenius1-4/+6
Patch by Itamar Turner-Trauring.
2013-09-06Improve nagios plugin error reporting for NagiosLars Wirzenius1-2/+7
Patch by Martijn Grendelman.
2013-06-16Remove whitespace from ends of linesLars Wirzenius1-25/+25
2013-02-08Change the ls subcommand to take list of filesLars Wirzenius1-3/+8
Baseo on patch by Damien Couroussé, but with changes to make it apply to the current version of Obnam, and to make the test suite pass.
2012-11-24Fix bug: set variable name correctlyLars Wirzenius1-0/+1
Patch from Peter Valdemar Mørch
2012-09-04Fix show plugin to write using cliapp output streamLars Wirzenius1-10/+14
This way, user can use --output=foo.
2012-07-07Make diff command obey --verbose instead of --quietLars Wirzenius1-5/+5
2012-07-07Merge the show subcommand into diffLars Wirzenius1-27/+19
2012-07-07Coding style cleanupsLars Wirzenius1-17/+15
2012-07-07Add show and diff subcommandsLars Wirzenius1-0/+90
Patch by Peter Valdemar Mørch.
2012-05-24Change output of "obnam ls"Lars Wirzenius1-23/+29
Thanks, Edward Allcutt, for the suggestion.
2012-04-13Make "obnam ls" obey --generation if no args given on command lineLars Wirzenius1-1/+1