Ignore:
Timestamp:
08/04/09 14:57:10 (11 years ago)
Author:
cbyrom
Message:

Simplify backups structure in eXist - putting all backups under a
single toplevel structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/src/clients/xmldb/eXist/crudclient.py

    r4976 r5184  
    9191         
    9292        # Now adjust the collection to map to the backup dir 
    93         collection = collection.replace(dc.ATOM_COLLECTION_PATH,  
    94                                         dc.BACKUP_COLLECTION_PATH) 
    95         collection = collection.replace(dc.NDG_A_COLLECTION_PATH,  
    96                                         dc.NDG_A_COLLECTION_PATH_BACKUP) 
     93        collection = dc.BACKUP_COLLECTION_PATH + collection 
    9794         
    9895        # add timestamp to filename 
     
    132129         
    133130        # Now adjust the collection to map to the backup dir 
    134         collection = collection.replace(dc.BACKUP_COLLECTION_PATH, dc.ATOM_COLLECTION_PATH) 
    135         collection = collection.replace(dc.NDG_A_COLLECTION_PATH_BACKUP, dc.NDG_A_COLLECTION_PATH) 
     131        collection = collection.replace(dc.BACKUP_COLLECTION_PATH, '') 
    136132         
    137133        self.createDoc(doc, collection, fileName) 
Note: See TracChangeset for help on using the changeset viewer.