Add upload-to-files script
This commit is contained in:
parent
0a535c1c4e
commit
922012c215
3 changed files with 13 additions and 1 deletions
9
nix/pkgs/upload-to-files.nix
Normal file
9
nix/pkgs/upload-to-files.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "upload-to-files";
|
||||
|
||||
text = ''
|
||||
${pkgs.rsync}/bin/rsync -avz --info=progress2 "$1" ssh.oliverdavies.uk:/var/www/vhosts/files.oliverdavies.uk
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue