- [Show pagesource]
- [Old revisions]
- [[unknown link type]]
- []
This is an old revision of the document!
Table of Contents
Cheat sheet
- ssh-keygen - udela klic na ssh do .ssh/id_rsa a id_rsa.pub
- na servery se verejny klic pridava do .ssh/authorized_keys
- pouziti stareho klice ssh root@h8.starlab.cz -i .ssh/id_rsa.bad
Proces proverky zaloh
1) porovnat virsh list a /home/godsview/bin
2) mrknout na crontab -l kontrolovat jak casto se pousti a jestli se pousti
- pozn. tejden zacina od nedele
3) checknout datumy u skriptu /home/godsview/bin/ a /srv/storage/backup/*nazev*
- prislusny skript ve storage najdu pomoci nano /home/godsview/bin/backup/nazev
- lepe pomoci virsh domblklist boris-petr
- reportovat mesic a vic stare zalohy
snapshot check
- virsh list
- cd /home/godsview/bin/backup
Rdiff-backup
h1-h9 1) zkontrolovat existenci /etc/cron.daily/backup
- pokud tam je pouze backup.disabled tak : cp backup.disabled backup
- upravit backup tak ze odmazu vse pod 2 vrchnimi prikazy rdiff backup (remove older a print statistics /root)
2) spustit backup ./backup 2.1) pokud nema klic tak
- zkontrolovat existenci rsa klice, pokud neni na serveru vygenerovan tak ssh-keygen, pozor bez
- nedelat keygen pokud uz tam klic je (id_rsa.pub)
- na backup serveru klic pridat pomoci ./add_back.sh
3) kontrola backupu
* ls -al /backup/
* /root/bin/check_rdiff -r /backup/h1-de/root/ -w 30 -c 60 -l 100 -p 20
vps
- zalohovat srv tam, kde je srv disk : df -h
- kontrolovat dobu u zaloh older than 4w obvykle
1) zkontrolovat existenci srv : df -h
Cron
linuxovej planovac uloh
planovane ulohy /var/spool/cron/crontabs/
* crontab -l vypise file s cron ulohami na serveru
MySQL backup user
mysql -u root -p grant select, lock tables, super, process, reload on *.* to backup identified by 'tajneheslo' use mysql update user set password=password('cah7Eingoogh') where user='backup'; flush privileges; ctrl+d quit
Puppet
spusteni puppetu na serveru : puppet agent -t
Hostname rename
1) vi /etc/hostname 2) vi /etc/hosts 3) hostname nazev 4) odhlasit a prihlasit
Sound
When all gui fail, try alsamixer