Fichier trop long dans cliché instantané

Clic droit sur le cliché instantané Choisir la version par date.
Choisir un dossier ‘propriété’. copie le chemin exemple: \localhost\D$\@GMT-2011.09.20-06.00.04_Data
lancer cmd.exe ou powershell tapez subst Y: \localhost\D$\@GMT-2011.09.20-06.00.04_Data
encore sous powershell et utilisé robocopy pour copier le contenu de X: exemple: robocopy Y: D:\destination\ /E /COPYALL
Vérifier et déconnecter en tapant subst Y: /D

Testez la performance d’un serveur web

apt-get install openload

openload https://www.agent-secret.org 5
(5 répresente le nombre de clients simulés)

Tapez enter pour sortir

MaTps: a 20 second moving average of TPS.
Tps: (Transactions Per Second) is the number of completed requests during that second.
Resp Time: the average response time in seconds for the elapsed second.
Err: the percentage of responses that was erronous, i.e. didn’t return a HTTP 200 Ok staus.
Count: the total number of completed requests.
Total TPS is the average TPS for the whole run, i.e. (Total completed requests) / (Total elapsed time).
Avg. Response time: the overall average response time in seconds.
Max Response time: the highest response time during this run.

Systemd vs Upstart

Systemd

La configuration des services est dans /lib/systemd/system

#systemctl #Liste les services lancés
#systemctl start httpd.service #Lancer le service httpd
#systemctl enable httpd.service #Lancer le service httpd au démarrage
#systemd-analyze time #Temps de démarrage (noyau, initrd et userspace)
#systemd-analyze blame #Les Service du plus lent au plus rapide
#systemd-analyze plot > boot.svg #Créer une image au format svg

Upstart

La configuration des services est dans /etc/init (fichier .conf)

#initctl list |less #Pour voir les services lancés
#update-rc.d apache2 defaults #Le service Apache sera lancé au démarrage sur les niveaux 2-3-4-5
#initctl start apache2 #Lancer un service
apt-get install bootchart
Une image sera créé après chaque démarrage dans /var/log/bootchart

Git en rapide

Git-Logo

#git config   #modifie le fichier situé dans /etc/gitconfig
#git config --global user.name "Agent-secret"
#git config --global user.email user@agent2-3secrets.org
#git config --global core.editor vim
#git config --global merge.tool emerge
#git config --list #affiche la liste des paramètres

Se déplacer dans le répertoire ou l'ont veut démarrer le projet
cd /home/agent-secret/projet-dev

#git init
#git add test.php  #index le fichier test.php (pas encore commit, près a être commit)
#git add *.php  #index les fichiers php (pas encore commit, près a être commit)
#git reset HEAD test.php # pour sortir test.php de la zone d'indexation
#git diff  #pour voir les modifs non-indexés
#git diff --cached # retourne les modifs indexés
#git commit -m "Changement auth srv4"  #validation des changements avec un titre
#git log -p -10 # Permet de voir les 10 derniers changements sur un projet
#git log --online # Permet de voir les commentaires des derniers changements
#touch .gitignore # Pour ignorer des fichiers exemple *.tmp *.log tmp/*