repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git]
/
acpi-eeepc-generic-svn
/
acpi-eeepc-generic-logsbackup.rcd
blob
05d5f26e82bcc5ba86202409ae51e6c94ea8581e
1
#!/bin/bash
2
3
now
=
`date +"%Y%m%d_%Hh%m"`
4
5
case
"
$1
"
in
6
stop
)
7
mkdir
-p
/
logs_backup
/
$now
8
cp
-Rp
/
var
/
log
/* /
logs_backup
/
$now
/
9
;;
10
start
)
11
;;
12
*)
13
echo
'Usage: /etc/init.d/console-setup {start||stop}'
14
exit
1
15
;;
16
esac