added shell.nix for dependecies

This commit is contained in:
Peter Kannewitz 2023-03-29 21:43:27 +02:00
parent 6d14a4b8e8
commit 6200d0c46b
2 changed files with 24 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1,9 @@
with import <nixpkgs> {};
mkShell {
name = "Dependencies for Server Backup";
buildInputs = [borgbackup borgmatic sshfs];
shellHook = ''
echo "Good luck backing up!"
'';
}