-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbackupGitHub.sh
More file actions
27 lines (23 loc) · 817 Bytes
/
Copy pathbackupGitHub.sh
File metadata and controls
27 lines (23 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Initial Setup (comment out after first run)
# ===========================================
# sudo mkdir -p /mnt/GitHub-Scripts
# sudo chown seltzerb:seltzerb /mnt/GitHub-Scripts/
# sudo chmod 755 /mnt/GitHub-Scripts/
# sudo yum install -y git
# Always Run
# ============
sudo mount -t nfs -o soft,intr,noatime,retrans=1000,timeo=900,retry=5,rsize=1048576,wsize=1048576,nolock mycohesity:/GitHub-Scripts /mnt/GitHub-Scripts/
cd /mnt/GitHub-Scripts/
# Inital Setup (comment out after first run)
# ============================================
# git clone https://github.com/bseltz-cohesity/scripts.git
# git clone https://github.com/otherguy/anotherrepo.git
# Always Run
# ============
cd scripts/
git pull
# cd ../anotherrepo
# git pull
cd ~
sudo umount /mnt/GitHub-Scripts/