Be Your Own Cloud code · PART 5 — GOING FURTHER

Chapter 26 Scaling Out: Multiple Machines and Off-Site Nodes

1 block · p. 120 in the paperback

The Simple Version: Two Independent Machines

# p. 120

Run Terminal, on the server
# On the off-site machine, an independent Restic repository that
# both machines can push to, giving you geographic redundancy
# without either machine depending on the other to function:

export RESTIC_REPOSITORY=sftp:user@offsite-machine:/backups/primary
restic backup /opt/stacks --exclude-caches

Reproduced exactly from Be Your Own Cloud, Chapter 26. The book explains what each line does and what to do when it doesn't work. About the book

Something here not working as the book describes? Tell the author.