CHMOD per file (644) e directory (755):
Come fare per dare a tutti i file di PATH un livello di permessi e a tutte le directory di PATH un altro livello di permessi.
find PATH -type d -print0 | xargs -0 chmod XXX
Ottimo per imposta i permessi corretti nelle webroot. ;)
CANCELLA di tutti i file più vecchi di N giorni:
find /PATH/ -type f -mtime +N -exec rm {} \;
FIX dei privilegi PHPMyAdmin
mysql -u root -h localhost --force --database=mysql -p < mysql_fix_privilege_tables.sql
SVN: i comandi più comuni:
Dump Repository
svnadmin dump /array/svn/NOMEREPOS > /tmp/svndumps/NOMEFILEDUMP
Load Repository
svnadmin load /disk1/svn/NOMEREPOS/ < /tmp/NOMEFILEDUMP
Create Repository
svnadmin create /disk1/svn/NOMEREPOS
Create User
htpasswd -m /etc/apache2/dav_svn.passwd USERNAME
0 commenti:
Posta un commento