Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
people:tomka [2019/10/14 11:45]
admin [Rdiff-backup]
people:tomka [2019/10/15 17:28] (current)
tomka [Nastaveni site]
Line 21: Line 21:
  
 ====== Rdiff-backup ====== ====== Rdiff-backup ======
 +h1-h9
 1) zkontrolovat existenci /​etc/​cron.daily/​backup 1) zkontrolovat existenci /​etc/​cron.daily/​backup
      ​*pokud tam je pouze backup.disabled tak : cp backup.disabled backup      ​*pokud tam je pouze backup.disabled tak : cp backup.disabled backup
Line 35: Line 35:
  
 * /​root/​bin/​check_rdiff ​ -r /​backup/​h1-de/​root/ ​ -w 30 -c 60 -l 100 -p 20 * /​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
  
  
Line 47: Line 54:
  
  
 +====== MySQL backup user ======
 +   mysql -u root -p
 +   use mysql
 +   
 +   ​select user from mysql.user; ​
 +   
 +   grant select, lock tables, super, process, reload on *.* to backup identified by '​cah7Eingoogh';​
 +   
 +  ​
 +   ​update user set password=password('​cah7Eingoogh'​) where user='​backup';​
 +   flush privileges;
 +   
 +   ​ctrl+d quit
 +   bacha na stredniky
 +====== 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
 +
 +
 +
 +====== Nastaveni site ======
 +ip a
 + * a k nenastavene ens viz dale 
  
 +vi /​etc/​network/​interfaces
  
 +pridat do toho souboru:
 +auto ens9
 +iface ens9 inet dhcp
  
 +ens podle :
 +source /​etc/​network/​interfaces
  
 +nakonec spustit:
  
 +ifup ens9
 ======Sound ====== ======Sound ======
 When all gui fail, try //​alsamixer//​ When all gui fail, try //​alsamixer//​
  
    
 
people/tomka.1571046304.txt.gz · Last modified: 2019/10/14 11:45 by admin