comparison backup/macos/luanBackup.sh @ 1699:e6750146faa1

no restart on backup
author Vadim Filimonov <fffilimonov@yandex.ru>
date Tue, 28 Jun 2022 16:13:37 +0300
parents 09aaca079ff3
children 47302bc83b2e
comparison
equal deleted inserted replaced
1698:2dbcc8360a3e 1699:e6750146faa1
7 mkdir -p $BKP 2>/dev/null; 7 mkdir -p $BKP 2>/dev/null;
8 8
9 rm -f `find $BKP/ -name '*.tgz' -mmin +4000`; 9 rm -f `find $BKP/ -name '*.tgz' -mmin +4000`;
10 10
11 cd $DIR; 11 cd $DIR;
12 ./stop.sh 12 rm -rf backups.copy;
13 tar czvf /Volumes/External/luanBackup/$(date +"backup%Y%m%d%H%M").tgz backups; 13 luan copy_backups.luan
14 ./start.sh 14 tar czvf /Volumes/External/luanBackup/$(date +"backup%Y%m%d%H%M").tgz backups.copy;
15 } 15 }
16 16
17 sleep 60; 17 sleep 60;
18 bkp_machine; 18 bkp_machine;
19 19