Mercurial > hg > soundsoftware-site
comparison extra/soundsoftware/scripted-deploy/config/cron.monthly/00-backup-files @ 1586:d0d59d12db94 dockerise
Add some cron scripts, update
author | Chris Cannam |
---|---|
date | Wed, 16 Aug 2017 16:58:22 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1585:37d4559a9fce | 1586:d0d59d12db94 |
---|---|
1 #!/bin/sh | |
2 for location in var/www etc/apache2 etc/cron.*; do | |
3 target="/var/files/backups/`echo $location | sed 's,/,_,g'`-`date +%Y%m%d%H%M`" | |
4 oldmask=`umask` | |
5 umask 0277 | |
6 cd / | |
7 tar cjf "$target".tar.bz2 "$location" | |
8 umask "$oldmask" | |
9 done | |
10 |