2022-02-07 17:05:12 +00:00
# Configuration for send -h
# Tries to emulate a human typing
# Tweak this if typing is too fast or too slow
set send_human { .05 .1 1 .01 .2}
set script [ string trim {
# This asciinema will show you the installation of borg as a standalone binary. Usually you only need this if you want to have an up-to-date version of borg or no package is available for your distro/OS.
# First, we need to download the version, we'd like to install…
2022-07-06 21:34:35 +00:00
wget - q - - show-progress https:/ / github.com/ borgbackup/ borg/ releases/ download/ 1.2 .1/ borg-linux64
2022-02-07 17:05:12 +00:00
# and do not forget the GPG signature…!
2022-07-06 21:34:35 +00:00
wget - q - - show-progress https:/ / github.com/ borgbackup/ borg/ releases/ download/ 1.2 .1/ borg-linux64.asc
2022-02-07 17:05:12 +00:00
# In this case, we have already imported the public key of a borg developer. So we only need to verify it:
gpg - - verify borg-linux64.asc
# Okay, the binary is valid!
# Now install it:
sudo cp borg-linux64 / usr/ local/ bin/ borg
sudo chown root:root / usr/ local/ bin/ borg
# and make it executable…
sudo chmod 755 / usr/ local/ bin/ borg
# Now check it: (possibly needs a terminal restart)
borg - V
2022-12-29 22:26:54 +00:00
# That's it! Now check out the other screencasts to see how to use borgbackup.
2022-02-07 17:05:12 +00:00
} ]
2022-02-20 11:51:13 +00:00
# wget may be slow
set timeout - 1
2022-02-07 17:05:12 +00:00
foreach line [ split $script \ n] {
send_user " $ "
send_user - h $line \ n
spawn - noecho / bin/ sh - c $line
expect eof
}