Mercurial Hosting > luan
annotate backup/macos/luanBackup.sh @ 1815:3dabc11da660
xml minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 11 Jun 2024 17:34:27 -0600 |
parents | 077366d117bb |
children |
rev | line source |
---|---|
1694 | 1 #!/bin/bash |
2 | |
3 BKP=/Volumes/External/luanBackup | |
4 DIR=/Users/administrator/luan/backup | |
5 | |
6 function bkp_machine() { | |
7 mkdir -p $BKP 2>/dev/null; | |
8 | |
9 rm -f `find $BKP/ -name '*.tgz' -mmin +4000`; | |
10 | |
11 cd $DIR; | |
1699
e6750146faa1
no restart on backup
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
1694
diff
changeset
|
12 rm -rf backups.copy; |
1701 | 13 ./luan.sh copy_backups.luan |
1699
e6750146faa1
no restart on backup
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
1694
diff
changeset
|
14 tar czvf /Volumes/External/luanBackup/$(date +"backup%Y%m%d%H%M").tgz backups.copy; |
1694 | 15 } |
16 | |
17 sleep 60; | |
18 bkp_machine; | |
19 | |
20 sleep 3600; |