Basically, $ rsync options source destination Synchronize Files From Local to Remote (Plesk to cPanel) $ rsync -avz /var/www/vhosts/domain.com/httpdocs/ sshuser@192.168.200.99:/home/user/public_html/ Synchronize Files From Remote to Local )cPanel to Plesk) $ rsync -avz sshuser@198.50.162.99:/home/username/public_html/ /var/www/vhosts/domain.com/httpdocs/ Here is a short summary of…
Category: Administration
Create or Extract a tar.gz File
Make an archive of a plesk httpdocs directory tar -cvzf domain.com_backup_7.17.14.tar.gz /var/www/vhosts/domain.com/httpdocs/ Result -rw-r–r– 1 root root 14482441 Jul 17 14:09 domain.com_backup_7.17.14.tar.gz Extract the same file tar -xf domain.com_backup_7.17.14.tar.gz
Export/Import Mysql Database
Export a database mysql # mysqldump -u -p username database_name > dbname.sql Plesk Server # mysqldump -u admin -p`cat /etc/psa/.psa.shadow` wordpress_database > domain_backup_7.16.14.sql To export a single table from your database you would use the following command: # mysqldump -p…
Find All The Files Owned By a Particular User / Group
Find file owned by a group find directory-location -group {group-name} -name {file-name} directory-location : directory path. -group {group-name} : group-name. -name {file-name} : The file name or a search pattern Issue: Plesk server will not allow updating plugins and the…
Find reason for linux server crash
Check the logs /var/log/messages, which stores logs from many native CentOS services, such as the kernel logger, the network manager, and many other services that don’t have their own log files. This log file tells you if there are kernel…
Who is Logged-In on Your Linux System
w command is used to show logged-in user names and what they are doing. The information will be read from /var/run/utmp file. The output of the w command contains the following columns: Name of the user User’s machine number or…
Jitsi Install
Instructions for 32 bit systems: $ wget -c https://download.jitsi.org/jitsi/nightly/rpm/jitsi-2.5-5314.i686.rpm $ sudo rpm -i jitsi-2.2-latest.i386.rpm Instructions for 64 bit systems: $ wget -c https://download.jitsi.org/jitsi/nightly/rpm/jitsi-2.5-5314.x86_64.rpm $ sudo rpm -i jitsi-2.2-latest.x86_64.rpm
Find All Files and Directories that are permissions 777
For directories [root@server]# find /var/www/vhosts/domain.com/httpdocs -type d -perm 777 -print Set to 755: root@server ]# find /var/www/vhosts/domain.com/httpdocs/ -type d -perm 777 -exec chmod 755 {} \; For Files [root@server]# find /var/www/vhosts/domain.com/httpdocs -type f -perm 777 -print Set to 644: [root@server]#…
RCA
Root Cause Analysis Root cause analysis (RCA) is a method of problem solving that tries to identify the root causes of faults or problems. RCA practice tries to solve problems by attempting to identify and correct the root causes of…
Nslookup Domain for Name Servers
NS Lookup # nslookup > set querytype=soa > stackoverflow.com Server: 217.30.180.230 Address: 217.30.180.230#53