Skip to content

Commit 5f1c3b6

Browse files
committed
dossiers annexes déplacés dans d'autres repo
1 parent 30b0d0a commit 5f1c3b6

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

bckdate.sh

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
function usage
4+
{
5+
echo "Usage:"
6+
echo $0 "<ORIGINAL FILE> <SAVE DIR>"
7+
echo ""
8+
}
9+
10+
DS=`date +%Y.%m.%d-%H.%M`
11+
echo "TIMESTAMP:" $DS
12+
13+
if [ "$1" == "" ] ; then
14+
echo "P1 est vide"
15+
usage
16+
else
17+
echo "P1 est présent"
18+
19+
if [ -e "$1" ] ; then
20+
echo "P1 existe"
21+
FS=`readlink -f $1`
22+
echo $FS
23+
BS1=${FS//\//-}
24+
echo $BS1
25+
BS2=${BS1/-/}.bck-$DS
26+
echo $BS2
27+
28+
if [ "$2" == "" ] ; then
29+
echo "P2 est vide"
30+
else
31+
echo "P2 est présent"
32+
33+
if [ -d "$2" ] ; then
34+
echo "P2 existe"
35+
echo cp $1 $2/$BS2
36+
cp $1 $2/$BS2
37+
else
38+
echo "P2 n'existe pas"
39+
fi
40+
fi
41+
else
42+
echo "P1 n'existe pas"
43+
fi
44+
fi

open-vm-tools.service

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[Unit]
2+
# This file is '/lib/systemd/system/open-vm-tools.service'
3+
Description=Service for virtual machines hosted on VMware
4+
Documentation=http://open-vm-tools.sourceforge.net/about.php
5+
ConditionVirtualization=vmware
6+
DefaultDependencies=no
7+
Before=cloud-init-local.service
8+
After=vgauth.service
9+
After=apparmor.service
10+
RequiresMountsFor=/tmp
11+
After=systemd-remount-fs.service systemd-tmpfiles-setup.service systemd-modules-load.service
12+
After=graphical.target
13+
14+
[Service]
15+
ExecStart=/usr/bin/vmtoolsd
16+
TimeoutStopSec=5
17+
Nice=-20
18+
19+
[Install]
20+
WantedBy=multi-user.target
21+
Alias=vmtoolsd.service

tablesize.sql

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT table_name AS "Table", round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB" FROM information_schema.TABLES WHERE table_schema = "D_TELEINFO" AND table_name = "T_TELEINFO_HISTO" ;

0 commit comments

Comments
 (0)