Vad ca multi au problema cu logurile/scripturile/backupul si vor sa scape de le dar , uneori poate nu au timp, nu sunt la pc sau dorm
In acest tutorial veti invata cum sa faceti FreeBSD-ul sa ruleze scripturile automat.
1. Intra in SFTP folosind clientul SFTP (Winscp ,FIlezilla ....)
2. Dute : /etc
3. Deschide -> crontab
4. Jos de tot lipeste urmatoarele linii :
# Curatare loguri.
#minute hour mday month wday who command 3
*/2 * * * * root /usr/home/game/curata_log.sh
Explicatie :
2 reprezinta (2minute). Daca doriti ore , schimbati a2-a * cu nr de ore si asa mai departe.
root -> directorul root (inceput)
dupa el puneti locatia la fisierul .sh + fisierul.sh.
Cam atata a fost
5. Save.
Mda ... puteti folosii si la alt ceva chestia asta ... nu numai la loguri.
Reset parola mysql
In ultimul timp am vazut multi detinatori de servere care nu stiu sa reseteze parola mysql din...