Re: Backup.
Hi,
peter@easthope.ca wrote:
> Thanks Thomas. Ideally I should find time to follow your suggestions
> but already overcommitted to volunteer activities. I might have to wait
> until -toc_info_type is in a Debian release.
Yeah. Everybody has to follow the own timetable.
So without any implied expectation of a test report by you:
I uploaded the new development snapshot
https://www.gnu.org/software/xorriso/xorriso-1.5.7.tar.gz
with the new time oriented table-of-content features.
They are for situations where the usually shown volume ids are fewly
informative (like "ISOIMAGE" in each session) but also if it is difficult
to create a search expression for the desired volume id when mounting.
Time oriented table-of-content:
$ xorriso -indev /dev/sr0 -toc_info_type mtime -toc
...
TOC layout : Idx , sbsector , Size , Modification Time
ISO session : 1 , 32 , 1240808s , 2024.06.20.232334
ISO session : 2 , 1240864 , 29797s , 2024.06.21.220651
ISO session : 3 , 1270688 , 20484s , 2024.06.23.225019
ISO session : 4 , 1291200 , 28928s , 2024.06.24.224429
ISO session : 5 , 1320128 , 21352s , 2024.06.25.223943
ISO session : 6 , 1341504 , 30352s , 2024.06.26.223934
ISO session : 7 , 1371872 , 29023s , 2024.06.27.225617
ISO session : 8 , 1400896 , 31463s , 2024.06.28.232751
ISO session : 9 , 1432384 , 34008s , 2024.06.30.223451
ISO session : 10 , 1466400 , 20329s , 2024.07.01.220901
Media summary: 10 sessions, 1486544 data blocks, 2903m data, 1579m free
Creating mount command lines by time constraints:
$ xorriso -mount_cmd /dev/sr0 not_after 2024.06.26.060000 /mnt/iso
...
mount -t iso9660 -o nodev,noexec,nosuid,ro,sbsector=1320128 '/dev/sr0' '/mnt/iso'
The defined time constraints are:
"at_time", "before", "after", "not_before", "not_after"
Time can be given in various formats, among them 'June 26' and
'June 26 2024'. See man xorriso, command -alter_date and "Examples of
input timestrings". If you become too perky, expect rejections like:
xorriso : SORRY : -mount: Cannot decode timestring 'Rapunzel'
Complaints about unfulfillable time constraints will tell the internally
used seconds since 1970:
$ xorriso -mount_cmd /dev/sr0 before "June 01 2024" /mnt/iso
...
libisoburn: FAILURE : Failed to find "before" "=1717192800"
"=" is the time_t indicator for xorriso.
Program "date" digests the string if "=" gets replaced by "@":
$ date -d @1717192800
Sat Jun 1 00:00:00 CEST 2024
Have a nice day :)
Thomas
Reply to: