-
Notifications
You must be signed in to change notification settings - Fork 0
/
git_backup_nat.example.sh
executable file
·14 lines (12 loc) · 1.19 KB
/
git_backup_nat.example.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------#
# Just run for test it
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------#
mkdir /tmp/git_backup_nat &> /dev/null; # for example only, delete this
cp ./git_backup_nat.list /tmp/git_backup_nat/ &> /dev/null; # for example only, delete this
export GIT_BACKUP_NAT_CACHE_DIR='/tmp/git_backup_nat/GIT_BACKUP_NAT_CACHE_DIR';
export GIT_BACKUP_NAT_LIST='/tmp/git_backup_nat/git_backup_nat.list';
#GIT_BACKUP_NAT_FILELOG="git_backup_nat.log.$(date +'%Y%m%d_%H%M%S')";
#./git_backup_nat.sh 2>&1 >> "/tmp/${GIT_BACKUP_NAT_FILELOG}";
./git_backup_nat.sh
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------#