Архиви на блога

mysql export every table in different file

#!/bin/bash # dump-tables-mysql.sh # Descr: Dump MySQL table data into separate SQL files for a specified database. # Usage: Run without args for usage info. # Author: @Trutane # Ref: http://stackoverflow.com/q/3669121/138325 # Notes: # * Script will prompt for password

С етикет: , ,
Публикувано в linux

301 .htaccess redirect

Sometimes we need to redirect old links to new pages, it`s very easy. Redirect 301 /oldpage.php http://newlink/newpages.php

Публикувано в Joomla, linux

rsync sync directories with resume

rsync -rPtz –progress -e ssh /local_backup_path/ remote_host:/remote_backup_path/ The -e ssh tells rsync to use a ssh client instead of rsh. The -z option compresses the file. -t preserves time attributes and the -P option resumes incomplete file transfers. If you

С етикет: , ,
Публикувано в linux

untar only one directory

This is how to extract only one directory with all files from tar archive tar xf rosen4o-01Dec.tar home/www/root/

С етикет: , , , ,
Публикувано в linux

rrdtool negative value

I have one rrd file in which store information about outside temperature. Now the temperature is negative so I have problem with storing negative values. The problem is fixed with rrdtool tune rrdtool tune temperature.rrd -i temp:-20

С етикет: , , , , ,
Публикувано в linux