install.tcl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Configuration for send -h
  2. # Tries to emulate a human typing
  3. # Tweak this if typing is too fast or too slow
  4. set send_human {.05 .1 1 .01 .2}
  5. set script [string trim {
  6. # 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.
  7. # First, we need to download the version, we'd like to install…
  8. wget -q --show-progress https://github.com/borgbackup/borg/releases/download/1.2.1/borg-linux64
  9. # and do not forget the GPG signature…!
  10. wget -q --show-progress https://github.com/borgbackup/borg/releases/download/1.2.1/borg-linux64.asc
  11. # In this case, we have already imported the public key of a borg developer. So we only need to verify it:
  12. gpg --verify borg-linux64.asc
  13. # Okay, the binary is valid!
  14. # Now install it:
  15. sudo cp borg-linux64 /usr/local/bin/borg
  16. sudo chown root:root /usr/local/bin/borg
  17. # and make it executable…
  18. sudo chmod 755 /usr/local/bin/borg
  19. # Now check it: (possibly needs a terminal restart)
  20. borg -V
  21. # That's it! Now check out the other screencasts to see how to use borgbackup.
  22. }]
  23. # wget may be slow
  24. set timeout -1
  25. foreach line [split $script \n] {
  26. send_user "$ "
  27. send_user -h $line\n
  28. spawn -noecho /bin/sh -c $line
  29. expect eof
  30. }