Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #260888 > unrolled thread

Time stamps on sessions on a DVD backup.

Started bypeter@easthope.ca
First post2023-08-12 23:10 +0200
Last post2023-08-13 01:00 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  Time stamps on sessions on a DVD backup. peter@easthope.ca - 2023-08-12 23:10 +0200
    Re: Time stamps on sessions on a DVD backup. "Thomas Schmitt" <scdbackup@gmx.net> - 2023-08-13 00:10 +0200
      Re (2): Time stamps on sessions on a DVD backup. peter@easthope.ca - 2023-08-13 01:00 +0200

#260888 — Time stamps on sessions on a DVD backup.

Frompeter@easthope.ca
Date2023-08-12 23:10 +0200
SubjectTime stamps on sessions on a DVD backup.
Message-ID<H241Y-1o7W-1@gated-at.bofh.it>
Hello again,

Here a session of a backup archive is written to a DVD.

xorriso -for_backup -dev /dev/sr0 \
  -update_r . / \
  -commit \
  -toc -check_md5 failure -- \
  -eject all
 
This command gives the contents of a DVD.
  xorriso -dev /dev/sr0 -toc

TOC layout   : Idx ,  sbsector ,       Size , Volume Id
ISO session  :   1 ,         0 ,    678303s , ISOIMAGE
ISO session  :   2 ,    716368 ,     13376s , ISOIMAGE
ISO session  :   3 ,    737600 ,    816699s , ISOIMAGE
  ...

Session time stamps would help when recovering from a 
storage failure.  Eg.

Date        TOC layout   : Idx ,  sbsector ,       Size , Volume Id
2023-07-23  ISO session  :   1 ,         0 ,    678303s , ISOIMAGE
2023-07-29  ISO session  :   2 ,    716368 ,     13376s , ISOIMAGE
2023-08-06  ISO session  :   3 ,    737600 ,    816699s , ISOIMAGE

Can the current xorriso include session timestamps?  In the manual I 
see file timestamps mentioned.  Not session timestamps.

Thx,                                   ... P.

- 
mobile: +1 778 951 5147
VoIP:   +1 604 670 0140

[toc] | [next] | [standalone]


#260890

From"Thomas Schmitt" <scdbackup@gmx.net>
Date2023-08-13 00:10 +0200
Message-ID<H24Y1-1oHi-9@gated-at.bofh.it>
In reply to#260888
Hi,

peter@easthope.ca wrote:
> Session time stamps would help when recovering from a
> storage failure.  Eg.
>
> Date        TOC layout   : Idx ,  sbsector ,       Size , Volume Id
> 2023-07-23  ISO session  :   1 ,         0 ,    678303s , ISOIMAGE
> 2023-07-29  ISO session  :   2 ,    716368 ,     13376s , ISOIMAGE
> 2023-08-06  ISO session  :   3 ,    737600 ,    816699s , ISOIMAGE
>
> Can the current xorriso include session timestamps?  In the manual I
> see file timestamps mentioned.  Not session timestamps.

Currently only the creation time of the loaded session is in reach:

  $ xorriso -indev /dev/sr0 -pvd_info
  ...
  Creation Time: 2023081220110500
  ...

You would have to load each session and inquire it:
  $ xorriso -load session 1 -indev /dev/sr0 -pvd_info
  ...
  Creation Time: 2023072920104300
  ...

I encode the time in the volume id together with an id of the backup
script (here "HOME_Z"):

  xorriso \
    ... \
    -dev /sr0 \
    ... \
    -volid HOME_Z_"$(date '+%Y_%m_%d_%H%M%S')" \
    ...

The backup medium then bears a -toc like:

  TOC layout   : Idx ,  sbsector ,       Size , Volume Id
  ISO session  :   1 ,        32 ,   1213035s , HOME_Z_2023_07_29_220901
  ISO session  :   2 ,   1213088 ,     19527s , HOME_Z_2023_07_30_223447
  ISO session  :   3 ,   1232640 ,     17993s , HOME_Z_2023_07_31_214713
  ...
  ISO session  :  12 ,   1403136 ,     19367s , HOME_Z_2023_08_10_223506
  ISO session  :  13 ,   1422528 ,     15773s , HOME_Z_2023_08_11_222313
  ISO session  :  14 ,   1438304 ,     16758s , HOME_Z_2023_08_12_221015

Having an id for the backup script makes it possible to ensure that the
script is not applied to the medium of a different backup script.
Before loading the youngest session by -dev, i set the constraint

  -assert_volid 'HOME_Z_2*' FATAL \

which will let the next -dev command fail if the volume id does not match
the pattern 'HOME_Z_2*' or is (pseudo-)blank.


Have a nice day :)

Thomas

[toc] | [prev] | [next] | [standalone]


#260893 — Re (2): Time stamps on sessions on a DVD backup.

Frompeter@easthope.ca
Date2023-08-13 01:00 +0200
SubjectRe (2): Time stamps on sessions on a DVD backup.
Message-ID<H25Kp-1oXt-3@gated-at.bofh.it>
In reply to#260890
    From: "Thomas Schmitt" <scdbackup@gmx.net>
    Date: Sun, 13 Aug 2023 00:08:23 +0200
> You would have to load each session and inquire it:

OK, thanks.

> Having an id for the backup script makes it possible to ensure that the
> script is not applied to the medium of a different backup script.

Good, thanks,                     ... P.



- 
mobile: +1 778 951 5147
VoIP:   +1 604 670 0140

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web