shell prikazy

rozbalenie

tar -vxf my_file.tar
dum database
$ mysqldump -u username -h localhost -p database_name | gzip -9 > backup_db.sql.gz

— ziskanie databazy —
mysqldump -u xxxx -pxxxx nazov > nazov.sql

mysqldump –insert-ignore …..

— zbalenie databazy —-

tar -czf nazov.tar.gz nazov.sql

— restore DB —–

$ mysql -u [uname] -p[pass] [db_to_restore] < [backupfile.sql]

———-
unzip

unzip -q nazov.zip