From: "Thomas Schmitt" <scdbac...@gmx.net>
    Date: Thu, 27 Jun 2024 22:49:10 +0200
> You could give the backups volume ids which tell the date.
> 
>          -volid BOB_"$(date '+%Y_%m_%d_%H%M%S')"
> ...

Just ran this shell function with no difficulty evident.

FilesToHDD () { \
  source=/home/root/Backup;
  echo "source is $source";
  destination=stdio:/dev/disk/by-id/usb-SEAGATE_ST3500830A_10000E000D959403-0:0;
  echo "destination is $destination";
  xorriso -for_backup \
          -dev "$destination" \
          -assert_volid 'BOB.*' fatal \
          -volid BOB."$(date '+%Y.%m.%d.%H:%M:%S')" \
          -update_r "$source" / \
          -commit \
          -toc \
          -check_md5 failure -- \
          -rollback_end ; }
          
/dev/disk/by-id/... is too long but avoids ambiguity.

> You could easily have one or more ISOs with history and one or more 
> rsync mirror trees in the same filesystem. It is always good to keep 
> one valid backup untouched when the other gets endangered by 
> writing.

Will have two backups at each of two sites.

> (If xorriso -update_r is too slow compared to rsync, consider 
> xorriso command -disk_dev_ino as in the man page example.)

Thanks.  No complaint about speed.

    From: "Thomas Schmitt" <scdbac...@gmx.net>
    Date: Mon, 24 Mar 2025 08:48:34 +0100
    Message-id: <21203323233134896...@scdbackup.webframe.org>
> You could use command -rollback_end to refrain from writing:
> 
>   xorriso ...the.desired.commands... -rollback_end
> 
> This will perform the commands but then just end the program run
> instead of writing the result and thus reading all the content of
> the files which were mapped into the ISO.

The shell function above has -rollback_end and delivered output.
-commit overrides -rollback_end?  -rollback_end should replace or 
precede -commit?

 > I have a classification of my
> system disks in startup file /etc/opt/xorriso/rc :
> 
>   -drive_class banned   '/dev/sda*'
>   -drive_class banned   '/dev/sdb*'
>   -drive_class harmless /dev/null
 
Did that.  Thanks.  Incidentally, "-drive_class banned   '/dev/sda*'" 
as first option in the command gave an error message.

Your manual page is excellent.  Thanks.   Some of the details you 
mentioned might fit in examples.

Thx,                 ... p.

-- 
VoIP:   +1 604 670 0140
work: en.wikibooks.org/wiki/User:PeterEasthope

Reply via email to