Mercurial Hosting > luan
view backup/macos/luanBackup.sh @ 2157:484d2b42f2d1 nginx_sites_addon
only include nginx.conf in nginx_sites in nginx.conf.luan
| author | Violet7 |
|---|---|
| date | Tue, 27 Jan 2026 19:51:41 -0800 |
| parents | 077366d117bb |
| children |
line wrap: on
line source
#!/bin/bash BKP=/Volumes/External/luanBackup DIR=/Users/administrator/luan/backup function bkp_machine() { mkdir -p $BKP 2>/dev/null; rm -f `find $BKP/ -name '*.tgz' -mmin +4000`; cd $DIR; rm -rf backups.copy; ./luan.sh copy_backups.luan tar czvf /Volumes/External/luanBackup/$(date +"backup%Y%m%d%H%M").tgz backups.copy; } sleep 60; bkp_machine; sleep 3600;
