소스 검색

Added script files

Simon Royer 2 년 전
커밋
4493248814
2개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      backup.sh
  2. 4 0
      ifconfig.sh

+ 4 - 0
backup.sh

@@ -0,0 +1,4 @@
+#!/bin/bash
+
+test=$(ssh root@172.16.255.1 -C 'cat /root/home.ip')
+rsync -av -e 'ssh -p 27022' /data/nextcloud2/ simon@$test:/backup/

+ 4 - 0
ifconfig.sh

@@ -0,0 +1,4 @@
+#!/bin/bash
+
+curl ifconfig.me > /root/scripts/ip.pub
+scp /root/scripts/ip.pub root@172.16.255.1:/root/home.ip