forked from lab-cat/server-backup-config
added shell.nix for dependecies
This commit is contained in:
parent
6d14a4b8e8
commit
6200d0c46b
2 changed files with 24 additions and 0 deletions
15
README.md
15
README.md
|
@ -16,3 +16,18 @@ For this 'pull method' to work I needed to add the following line to the servers
|
||||||
%sudo ALL=(ALL) NOPASSWD: /usr/lib/openssh/sftp-server
|
%sudo ALL=(ALL) NOPASSWD: /usr/lib/openssh/sftp-server
|
||||||
```
|
```
|
||||||
|
|
||||||
|
*Notice:*
|
||||||
|
|
||||||
|
The server file system will be mounted at `tmp/mnt/ag-link-server` on your local machine. Define the paths to be backed up from there on.
|
||||||
|
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
Backup depends on:
|
||||||
|
|
||||||
|
- `borgbackup`
|
||||||
|
- `borgmatic`
|
||||||
|
- `sshfs`
|
||||||
|
|
||||||
|
If you have nix installed, simply run `nix-shell` from this Repository.
|
||||||
|
|
||||||
|
|
9
shell.nix
Normal file
9
shell.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
|
mkShell {
|
||||||
|
name = "Dependencies for Server Backup";
|
||||||
|
buildInputs = [borgbackup borgmatic sshfs];
|
||||||
|
shellHook = ''
|
||||||
|
echo "Good luck backing up!"
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue