Mtime won't be a reliable indication of what's in an incremental backup.
First, other meta data might have changed (eg, rsync checks all file meta
data including permissions, size etc) that would cause the file to be
transferred during the incremental.  You could look at the XferLOG file to
parse which files were transferred.  Another consideration is that creating
a subset of a tar archive of a backup stored in BackupPC might not
accurately capture hardlinks.

The high-level question is what are you trying to do?  Offsite archives of
BackupPC's backups?  As has been discussed in other threads, using rsync or
a parallel BackupPC instance could accomplish what you want.

Craig

On Fri, Oct 12, 2018 at 8:27 AM Patel, Tarak (SSC/SPC) <
tarak.pa...@canada.ca> wrote:

> Hello,
>
> Archive of incremental backups (only delta) has not been discussed in a
> long time. One of the proposed option was to create a tarball of
> pc/host/BackupNum however this requires some gymnastics to correctly
> interpret the paths. Has anyone come up with an elegant solution to this
> problem? I had successfully modified BackupPC_tarCreate to only write files
> based on mtime of file and a timedelta. By adding 'next if($hdr->{mtime} <
> $TimeDelta);' in TarWriteFile function.  The TimeDelta is simply the time
> stamp of last full.
>
> If there was a way to know which file is new in an incremental backup,
> then we can use remaining code as is.
>
> Any thoughts?
>
> Thanks,
> Tarak
>
> --
>
> Tarak Patel
>
> Chef d'équipe, Integration HPC, Solution de calcul E-Science
> Service partagé Canada / Gouvernment du Canada
> tarak.pa...@canada.ca
> 1-514-421-7299
>
> Team Lead, HPC Integration, E-Science Computing Solution
> Shared Services Canada, Government of Canada
> tarak.pa...@canada.ca
> 1-514-421-7299
>
>
>
>
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to