Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #278900
| From | peter@easthope.ca |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Backup. |
| Date | 2025-04-06 16:20 +0200 |
| Message-ID | <Kyz0R-byCo-7@gated-at.bofh.it> (permalink) |
| References | <IU2Fj-62Pv-5@gated-at.bofh.it> <IU4e5-63Cw-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: "Thomas Schmitt" <scdbackup@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" <scdbackup@gmx.net>
Date: Mon, 24 Mar 2025 08:48:34 +0100
Message-id: <21203323233134896576@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
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Backup. peter@easthope.ca - 2024-06-27 21:10 +0200
Re: Backup. eben@gmx.us - 2024-06-27 22:00 +0200
Re: Backup. eben@gmx.us - 2024-06-28 05:20 +0200
Re: Backup. peter@easthope.ca - 2024-06-30 17:10 +0200
Re: Backup. eben@gmx.us - 2024-06-30 18:10 +0200
Re: Backup. Jerome BENOIT <sphericaltriangle@rezozer.net> - 2024-06-27 22:20 +0200
Re: Backup. peter@easthope.ca - 2024-06-30 16:50 +0200
Re: Backup. "Thomas Schmitt" <scdbackup@gmx.net> - 2024-06-27 22:50 +0200
Re: Backup. CHRIS M <CHRIS@CWM030.COM> - 2024-06-27 23:00 +0200
Re: Backup. peter@easthope.ca - 2024-06-28 20:00 +0200
Re: Backup. "Thomas Schmitt" <scdbackup@gmx.net> - 2024-06-28 23:40 +0200
Re: Backup. peter@easthope.ca - 2024-06-30 15:40 +0200
Re: Backup. "Thomas Schmitt" <scdbackup@gmx.net> - 2024-07-02 14:20 +0200
Re: Backup. peter@easthope.ca - 2025-04-06 16:20 +0200
Re: Backup. peter@easthope.ca - 2024-06-30 16:00 +0200
Re: Backup. Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-06-30 16:10 +0200
Re: Backup. Andy Smith <andy@strugglers.net> - 2024-06-30 16:30 +0200
Re: Backup. <tomas@tuxteam.de> - 2024-06-30 16:40 +0200
Re: Backup peter@easthope.ca - 2024-06-30 17:40 +0200
Re: Backup Andy Smith <andy@strugglers.net> - 2024-06-30 17:50 +0200
Re: Backup. Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2024-06-30 17:30 +0200
csiph-web