initial import
darcs-hash:20000522114755-92525-69a72999157b346a9dee061f02d4c3e416f951b2.gz
This commit is contained in:
parent
072fbadd44
commit
53e27f3168
2 changed files with 39 additions and 0 deletions
15
save-etc
Executable file
15
save-etc
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
freq="$1"
|
||||
nb=$2
|
||||
|
||||
pref="/backups/tars/etc${freq}-"
|
||||
suff=`date +"%Y-%m-%d--%H-%M-%S.tgz"`
|
||||
tarball="${pref}${suff}"
|
||||
|
||||
umask 077
|
||||
cd /
|
||||
tar zcf ${tarball} etc usr/scripts root/scripts home/corbeau/scripts
|
||||
rm `ls -t ${pref}* | tail +$nb`
|
||||
|
||||
#df
|
Loading…
Add table
Add a link
Reference in a new issue