mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
Screencasts/basic: use sample data
This commit is contained in:
parent
6e197f66f5
commit
5e8e10a53c
3 changed files with 2541 additions and 2444 deletions
9
docs/misc/asciinema/Vagrantfile
vendored
9
docs/misc/asciinema/Vagrantfile
vendored
|
|
@ -3,6 +3,11 @@ Vagrant.configure("2") do |config|
|
|||
config.vm.provision "install dependencies", type: "shell", inline: <<-SHELL
|
||||
apt-get update
|
||||
apt-get install -y wget expect gpg asciinema ssh adduser fuse
|
||||
mkdir -p /wallpaper
|
||||
wget \
|
||||
--user-agent="borgbackup demo screencast" \
|
||||
--input-file=/vagrant/sample-wallpapers.txt \
|
||||
--directory-prefix=/wallpaper
|
||||
SHELL
|
||||
config.vm.provision "record install", type: "shell", inline: <<-SHELL
|
||||
gpg --recv-keys "6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393"
|
||||
|
|
@ -14,6 +19,7 @@ Vagrant.configure("2") do |config|
|
|||
# this is useful when testing changes
|
||||
rm -r /media/backup/borgdemo || true
|
||||
rm -r ~/.ssh/ || true
|
||||
rm -r Wallpaper || true
|
||||
deluser --remove-home borgdemo || true
|
||||
|
||||
# In case we have skipped "record install"
|
||||
|
|
@ -23,6 +29,9 @@ Vagrant.configure("2") do |config|
|
|||
fi
|
||||
|
||||
mkdir -p /media/backup/borgdemo
|
||||
mkdir Wallpaper
|
||||
cp -r /wallpaper Wallpaper/bigcollection
|
||||
cp /wallpaper/Trapper_cabin.jpg Wallpaper/deer.jpg
|
||||
|
||||
adduser --disabled-password borgdemo
|
||||
echo '127.0.0.1 remoteserver.example' >> /etc/hosts
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -3,12 +3,6 @@
|
|||
# Tweak this if typing is too fast or too slow
|
||||
set send_human {.05 .1 1 .01 .2}
|
||||
|
||||
# The screencast uses relative paths "Wallpaper"
|
||||
# We should not mess with the contents of whatever cwd happened to be
|
||||
cd [exec mktemp -d]
|
||||
file mkdir Wallpaper/bigcollection
|
||||
exec touch Wallpaper/deer.jpg
|
||||
|
||||
set script {
|
||||
# Here you'll see some basic commands to start working with borg.
|
||||
# Note: This teaser screencast was made with __BORG_VERSION__ – older or newer borg versions may behave differently.
|
||||
|
|
|
|||
Loading…
Reference in a new issue