mj-saunders
41580f9a0d
Simplify things by placing the server wrap code into it's own function in the main script. Move to predominantly lowercase and local variables. Introduce usage of separate config files for each server. |
||
---|---|---|
.. | ||
README.md |
README.md
Server Configuration
Create a file for each of your remote servers to be backed up. The contents is used to determine what and what not to back up.
File Names
Each filename must match an entry in your ~/.ssh/config
.
It will be used to connect to the remote machine.
It must also match the name of the target borg-backup repository.
A minimal example:
~/.ssh/config
Host repo-name
HostName <ip-address>
User foo
File Content
We use bash arrays to list include
and exclude
paths.
These are then sourced by the backup script and prepared for use with borg
.
See the template
file for a more complete example.
include=( path/to/include ... )
exclude=(
# Comments should be safe to use
path/to/exclude
...
)