[Borgbackup] Modified ("M") file status with --list

devzero at web.de devzero at web.de
Thu Feb 22 12:42:51 EST 2018


i'm also wondering about this for a while now and cannot find any option (beside diff) to see the difference between added and modified files

roland

> Gesendet: Mittwoch, 21. Februar 2018 um 11:59 Uhr
> Von: "Thomas Guillet" <t.guillet at gmail.com>
> An: borgbackup at python.org
> Betreff: [Borgbackup] Modified ("M") file status with --list
>
> Hi all,
> 
> I noticed that when running borg (v1.1.4) with --list, I never see any
> file marked M for modified; files that were indeed modified seem
> always listed as A.
> 
> Here's a simple example script illustrating it. The files being backed
> up live on an ext4 partition, with mount options:
> rw,relatime,errors=remount-ro,data=ordered
> and running on kernel:
> 4.4.0-112-generic #135-Ubuntu SMP on x86_64.
> 
> 
> Here's the script:
> 
> 
> #!/bin/bash
> 
> set -x
> 
> borg --version
> 
> borg init -e none repo.borg
> mkdir files
> 
> function backup() {
> sleep 5
> touch files/.empty
> borg create --list 'repo.borg::{now}' files/
> }
> 
> date > files/A
> date > files/B
> stat files/A
> backup
> 
> sleep 5
> 
> date >> files/A
> stat files/A
> backup
> 
> 
> and the results:
> 
> 
> + borg --version
> borg 1.1.4
> + borg init -e none repo.borg
> + mkdir files
> + date
> + date
> + stat files/A
>   File: 'files/A'
>   Size: 29        Blocks: 8          IO Block: 4096   regular file
> Device: fc01h/64513d Inode: 8130154     Links: 1
> Access: (0664/-rw-rw-r--)  Uid: ( 1000/  thomas)   Gid: ( 1000/  thomas)
> Access: 2018-02-21 11:25:27.053753395 +0100
> Modify: 2018-02-21 11:25:27.053753395 +0100
> Change: 2018-02-21 11:25:27.053753395 +0100
>  Birth: -
> + backup
> + sleep 5
> + touch files/.empty
> + borg create --list 'repo.borg::{now}' files/
> A files/A
> A files/B
> A files/.empty
> d files
> + sleep 5
> + date
> + stat files/A
>   File: 'files/A'
>   Size: 58        Blocks: 8          IO Block: 4096   regular file
> Device: fc01h/64513d Inode: 8130154     Links: 1
> Access: (0664/-rw-rw-r--)  Uid: ( 1000/  thomas)   Gid: ( 1000/  thomas)
> Access: 2018-02-21 11:25:27.053753395 +0100
> Modify: 2018-02-21 11:25:37.905755879 +0100
> Change: 2018-02-21 11:25:37.905755879 +0100
>  Birth: -
> + backup
> + sleep 5
> + touch files/.empty
> + borg create --list 'repo.borg::{now}' files/
> A files/A
> U files/B
> A files/.empty
> d files
> 
> 
> On the second backup, files/A is listed with status A again, not M.
> Do you have any idea why?
> 
> Thanks!
> Thomas
> _______________________________________________
> Borgbackup mailing list
> Borgbackup at python.org
> https://mail.python.org/mailman/listinfo/borgbackup
> 


More information about the Borgbackup mailing list