Restore files from certain increments using Duplicity
        Posted  
        
            by 
                luckytaxi
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by luckytaxi
        
        
        
        Published on 2011-06-21T15:50:34Z
        Indexed on 
            2011/06/21
            16:24 UTC
        
        
        Read the original article
        Hit count: 323
        
duplicity
Given the following backup sets ...
Found primary backup chain with matching signature chain:
-------------------------
Chain start time: Tue Jun 21 11:27:26 2011
Chain end time: Tue Jun 21 11:27:59 2011
Number of contained backup sets: 2
Total number of contained volumes: 2
Type of backup set:                            Time:      Num volumes:
     Full         Tue Jun 21 11:27:26 2011                 1
     Incremental         Tue Jun 21 11:27:59 2011                 1
If i run the following command, it works (1308655646 was converted from Tue Jun 21 11:27:26 2011):
duplicity --no-encryption --restore-time 1308655646 --file-to-restore ORIG_FILE \
file:///storage/test/ restored-file.txt
However, if I run the following command, it restores the from the latest set.
duplicity --no-encryption --restore-time 2011-06-21T11:27:26 --file-to-restore \
ORIG_FILE file:///storage/test/ restored-file.txt
What am I doing wrong w/ the time? I prefer the second option only because I don't want to have to do the conversion manually.
© Server Fault or respective owner