Changeset 150
Legend:
- Unmodified
- Added
- Removed
-
trunk/Changes
r136 r150 1 - brackup-target tool, to list/get brackup files from a target, 2 and in the future do garbage collection on no-longer-referenced 3 chunks (once a command exists to delete a brackup file from a target) 4 5 - stop leaking some temp files during restores 6 7 - doc fixes/additions 8 1 9 1.02 (may 22, 2007) 2 10 -
trunk/TODO
r144 r150 1 -- only use tempfiles in a 0700 directory under /tmp/brackup-$USER/ or 2 wherever. or option, when using encryption, to only doing 3 in-memory tempfiles, to avoid hitting disk? 4 5 -- (a future version of brackup-restore will let you grab the metafile from 6 the target, but that's still a TODO item) 7 1 8 -- <lj user=grahams>: if a file which existed when Brackup was 2 9 "discovering files" subsequently goes away while Brackup is working … … 8 15 the metafile also barf, having a trailing \r or \n? 9 16 17 -- "brackup-target <target> gc": find/clean orphan chunks on a target 18 from metafiles 19 10 20 -- figure out how files with intenal \r or \n in filename get written 11 21 to metafile. need to be escaped? 12 22 13 23 -- FUSE script to mount a *.brackup file 14 15 -- fix up docs, move all to POD, in relevant classes.16 24 17 25 -- tool to clean digestcache, based on prefixes, looking for files that no longer … … 26 34 would be pretty easy. 27 35 28 -- find/clean orphan chunks on a target from metafiles29 30 -- (a future version of brackup-restore will let you grab the metafile from31 the target, but that's still a TODO item)32 33 36 -- ionice stuff. network nice stuff. 34 37 35 -- leaking 3 /tmp files after each run 38 -- leaking 3 /tmp files after each run?x 36 39 37 40 -- make tests pass without 'noatime' mount option -
trunk/brackup-target
r148 r150 112 112 sub CMD_get_backups { 113 113 foreach my $si ($target->backups) { 114 debug("Fetching " . $si->filename); 114 my $size = $si->size; 115 my $name = $si->filename; 116 no warnings 'uninitialized'; 117 if (-s "$name.brackup" == $size || -s "$name.brackup.orig" == $size) { 118 debug("Skipping $name; already have it"); 119 next; 120 } 121 debug("Fetching $name"); 115 122 $target->get_backup($si->filename); 116 123 }
