mirror of
https://github.com/borgbackup/borg.git
synced 2026-09-02 14:43:21 +02:00
Backport of the borg2 demo automation to 1.4-maint, adapted to the borg 1.x command syntax (borg init, repo::archive, no archive series / archive IDs, no undelete). record.sh builds borg from the git tag given by BORG_VERSION in a container (podman or docker, see #8040), generates the demo data and records the whole demo automatically - so re-recording it for a new release is one command. The demo data is generated by demo-data.py: compressible, but not trivially repetitive, so compression and deduplication show realistic numbers (#6303). Removes the old borg 1.2 era Vagrant based install/basic/advanced scripts and their casts. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
10 lines
439 B
Text
10 lines
439 B
Text
# Start the recording in a terminal of a well-defined size, no matter how big
|
|
# the terminal is that ./record.sh was started from (asciinema records the size
|
|
# of its terminal and the players use it to size the screencast).
|
|
set stty_init "rows 30 cols 100"
|
|
set timeout -1
|
|
|
|
spawn -noecho asciinema rec --overwrite --idle-time-limit 2 \
|
|
--title "BorgBackup 1.4 demo" \
|
|
--command "expect -f /demo/demo.tcl" /tmp/borg14-demo.cast
|
|
expect eof
|