15 lines
263 B
Bash
Executable file
15 lines
263 B
Bash
Executable file
#!/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/lib/cgi-bin usr/scripts root/scripts home/corbeau/scripts
|
|
rm `ls -t ${pref}* | tail +$nb`
|
|
|
|
#df
|