$ sudo apt-get updateInstall update manager core if not:
sudo apt-get install update-manager-core Start the command line upgrade tool
$ sudo do-release-upgrade
$ sudo apt-get updatesudo apt-get install update-manager-core $ sudo do-release-upgrade
foobar = /usr/bin/ssh -i /home/foo/.ssh/foobar.private -p 12345 svn co svn+foobar://user@svn.test.com/home/test/repos/foobar
$ sudo -u svnuser svnadmin create --fs-type fsfs /path/to/repository
* we can use bdb as well as db format$chmod g+w /path/to/repository[local_machine]$ svn co svn+ssh://user@svnhost/path/to/repos localdirectory
[local_machine]$ mkdir -p localdirectory/trunk localdirectory/tags localdirectory/branches
[local_machine]$ cd localdirectory; svn commit -m "initial repository structure" > mysql -u db_user -p -e "CREATE DATABASE db_name" > GRANT REPLICATION SLAVE ON *.* TO 'replication_user'@'replication_clients" IDENTIFIED BY 'replication_password' [mysqld]
server-id = 1 # Important with replication
log-slave-updates
log-bin = /var/lib/mysql/mysql-bin
log-bin-index = /var/lib/mysql/mysql-bin.index
replicate-do-db = db_name # specify the dbs to replicate
log-warnings
innodb_flush_log_at_trx_commit=1
sync-binlog=1
innodb_safe_binlog
use db_name;
FLUSH TABLES WITH READ LOCK;
$ mysqldump -u dbuser -p db_name > db_dump.sql $ mysql -u dbuser -p db_name > db_dump.sql
use db_name;
UNLOCK TABLES;
[mysqld]
old_passwords=1
server-id=2
innodb_file_per_table
log-slave-updates
master-host = master_hostname
master-port = master_port
master-user = master_user
master-password = master_password
log-bin = /var/lib/mysql/mysql-bin
log-bin-index = /var/lib/mysql/mysql-bin.index
Master: > show master status;
Replicas: > show slave status;
System Preference --> Sharing --> Internet Sharing
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:+EXPServerTokens ProductOnlyLoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]#!/bin/bash
# Arun N S
# variables
DATE="$(date +"%d-%m-%Y")"
TIME="$(date +"%d-%m-%Y-%H%M")"
USER=username
PASSWORD=password
DATABASE=dbname
# Directories and dump
/bin/mkdir -p /backup/Mysql/$DATE
/usr/bin/mysqldump -l -F -u $USER --password=$PASSWORD $DATABASE > /backup/Mysql/$DATE/backup_$TIME.sql
# Compressing
/usr/bin/bzip2 /backup/Mysql/*/*.sql
#Removing files older than x days eg: 90 days
for i in `/usr/bin/find /backup/Mysql/ -maxdepth 1 -type d -mtime +90 -print`; do
/bin/echo -e "Deleting old directories $i"; /bin/rm -rf $i; done
$ mysql $database_name -u $user_name -h $host_name -p
$ mysqldump -l -F $database_name -u $user_name -h $host_name -p > file.sql$ mysqldump -l -F $database_name -u $user_name -h $host_name --tables $tables_name -p > file.sql$ mysqldump -l -F -d $database_name> -u $username -h $hostname -p > file.sql> show grants for 'user'@'hostname';
$cat | sed 's/[ \t]*$//' >
find -name "" -mtime +N -exec rm -r {} \;
find /var/log/ -name "*.log" -mtime +5 -exec rm -r {} \;
This will remove the *.log files older than 5 days in directory /var/log/
find / -type d -print0find / -type f -print0
$ cd ~mailman
$ bin/discard /var/lib/mailman/data/heldmsg--*
$ find /var/lib/mailman/data -name heldmsg--\* -print | xargs bin/discard