Changeset 150

Show
Ignore:
Timestamp:
05/23/07 17:24:21 (3 years ago)
Author:
bradfitz
Message:

more brackup-target work, and todo/changes updates

Location:
trunk
Files:
3 modified

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 
    191.02 (may 22, 2007) 
    210 
  • 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 
    18-- <lj user=grahams>: if a file which existed when Brackup was 
    29  "discovering files" subsequently goes away while Brackup is working 
     
    815   the metafile also barf, having a trailing \r or \n? 
    916 
     17-- "brackup-target <target> gc": find/clean orphan chunks on a target 
     18   from metafiles 
     19 
    1020-- figure out how files with intenal \r or \n in filename get written 
    1121   to metafile.  need to be escaped? 
    1222 
    1323-- FUSE script to mount a *.brackup file 
    14  
    15 -- fix up docs, move all to POD, in relevant classes. 
    1624 
    1725-- tool to clean digestcache, based on prefixes, looking for files that no longer 
     
    2634   would be pretty easy.   
    2735 
    28 -- find/clean orphan chunks on a target from metafiles 
    29  
    30 -- (a future version of brackup-restore will let you grab the metafile from 
    31    the target, but that's still a TODO item) 
    32  
    3336-- ionice stuff.  network nice stuff. 
    3437 
    35 -- leaking 3 /tmp files after each run 
     38-- leaking 3 /tmp files after each run?x 
    3639 
    3740-- make tests pass without 'noatime' mount option 
  • trunk/brackup-target

    r148 r150  
    112112sub CMD_get_backups { 
    113113    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"); 
    115122        $target->get_backup($si->filename); 
    116123    }