Updates
This commit is contained in:
parent
cf9ae184fc
commit
77118176e8
2 changed files with 13 additions and 13 deletions
|
@ -1,6 +1,5 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
ifExists = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||
rsync-backups = pkgs.writeScriptBin "rsync-backups" ''
|
||||
#!${pkgs.stdenv.shell}
|
||||
# Send the gotify notification:
|
||||
|
@ -185,8 +184,8 @@ fi
|
|||
|
||||
echo -e "================================================================================"
|
||||
echo -e "======= Time: `date`"
|
||||
echo -e "rsync -avr --delete --exclude=Downloads/ --exclude=Data/Docker/sysctl\.io/ root@nuc-docker01:/Storage/Data/ /mnt/$drive1/Data/"
|
||||
rsync -avr --delete --exclude=Downloads/ --exclude=Data/Docker/sysctl\.io/ root@nuc-docker01:/Storage/Data/ /mnt/$drive1/Data/
|
||||
echo -e "rsync -avr --delete --exclude=Downloads/ --exclude='Data/Docker/sysctl.io/' root@nuc-docker01:/Storage/Data/ /mnt/$drive1/Data/"
|
||||
rsync -avr --delete --exclude=Downloads/ --exclude='Data/Docker/sysctl.io/' root@nuc-docker01:/Storage/Data/ /mnt/$drive1/Data/
|
||||
|
||||
echo -e "======= Time: `date`"
|
||||
echo -e "======= Time complete: `date`"
|
||||
|
@ -243,8 +242,8 @@ fi
|
|||
|
||||
echo -e "================================================================================"
|
||||
echo -e "======= Time: `date`"
|
||||
echo -e "rsync -avr --delete --exclude=Downloads/ root@framework-server:/Storage/Data/Docker/sysctl.io/ /mnt/$drive1/Data/Docker/sysctl.io/"
|
||||
rsync -avr --delete --exclude=Downloads/ root@framework-server:/Storage/Data/Docker/sysctl.io/ /mnt/$drive1/Data/Docker/sysctl.io/
|
||||
echo -e "rsync -avr --delete root@framework-server:/Storage/Data/Docker/sysctl.io/ /mnt/$drive1/Data/Docker/sysctl.io/"
|
||||
rsync -avr --delete root@framework-server:/Storage/Data/Docker/sysctl.io/ /mnt/$drive1/Data/Docker/sysctl.io/
|
||||
|
||||
echo -e "======= Time: `date`"
|
||||
echo -e "======= Time complete: `date`"
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
{ pkgs, config, lib, ... }: {
|
||||
{ pkgs, ... }: {
|
||||
|
||||
# Allow these hosts to directly communicate with their hostnames
|
||||
networking.extraHosts = ''
|
||||
10.100.0.1 osaka-linode-01
|
||||
10.100.0.2 framework-server
|
||||
10.100.0.3 backups-rpi4
|
||||
|
||||
10.100.0.2 git.sysctl.io
|
||||
10.100.0.2 loki.sysctl.io
|
||||
10.100.0.2 telegraf.sysctl.io
|
||||
10.100.0.2 headscale.sysctl.io
|
||||
'';
|
||||
|
||||
# 10.100.0.2 framework-server
|
||||
# 10.100.0.2 git.sysctl.io
|
||||
# 10.100.0.2 loki.sysctl.io
|
||||
# 10.100.0.2 telegraf.sysctl.io
|
||||
# 10.100.0.2 headscale.sysctl.io
|
||||
# '';
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ 51820 ];
|
||||
networking.firewall.interfaces.wireguard0.allowedTCPPorts = [ 22 ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue