While doing some work on migrating accounts to a new server, I needed to use rsync over ssh. The ssh daemon on the remote server runs on a non-standard port, and all the port related options to rsync only change settings if you’re running the rsync-daemon.
After some searching, the man page of rsync offered a solution:
rsync -avz -e "ssh -p $portNumber" /localpath user@remoteip:/remotepath
Rsync (Remote Sync) is a most commonly used command for copying and synchronizing files and directories remotely as well as locally in Linux/Unix systems. With the help of rsync command you can copy and synchronize your data remotely and locally across directories, across disks and networks, perform data backups and mirroring between two Linux machines.
This article explains 10 basic and advanced usage of the rsync command to transfer your files remotely and locally in Linux based machines. You don’t need to be root user to run rsync command.
Some advantages and features of Rsync command
- It efficiently copies and sync files to or from a remote system.
- Supports copying links, devices, owners, groups and permissions.
- It’s faster than scp (Secure Copy) because rsync uses remote-update protocol which allows to transfer just the differences between two sets of files. First time, it copies the whole content of a file or a directory from source to destination but from next time, it copies only the changed blocks and bytes to the destination.
- Rsync consumes less bandwidth as it uses compression and decompression method while sending and receiving data both ends.
Continue reading Rsync (Remote Sync): 10 Practical Examples of Rsync Command in Linux
Prerequisite: This tutorial covers adding a new disk drive to your linux computer. First it is assumed that the hard drive was physically added to your system.
IDE based systems, can support two drives on each ribbon cable. The cable is attached to either the Primary or Secondary IDE controller. A “jumper” is pressed onto two pins (thus connecting the two pins) on the drive to define the drive as a “Master” or a “Slave” drive. Each cable can support one master and one slave drive. Typically new desktop systems have one hard drive connected as a Master on the Primary controller and one CD-Rom on the second cable configured as a master. Continue reading Add an Additional Disk Drive to Your Linux Server or VM and and partitioning it
The file that actually handles WHM > DNS Functions > Nameserver IPs area is at /var/cpanel/nameserverips.yaml location.
If you want this to be changed, you’d want to make a backup of that file first and then modify it:
cp nameserverips.yaml nameserverips.yaml.back
Need to test the read and write speed of your VPS , checking your I/O speed ?
try this :
dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
Video games don’t affect kids. If Pacman had affected us as kids , we’d all be running around in darkened rooms , munching magic pills and listening to repetitive electronic music! Continue reading Classic Nintendo CEO statement
If you are new to linux you probably will wonder how to change the hostname of your computer or server. (A hostname is the unique name by which a network attached device is known on a network.) If you enter the wrong hostname during the installation, and you need to change the hostname, here is the solution:-
- Edit file /etc/sysconfig/network using your favourite editor. In my case is nano. So i’ll enter nano /etc/sysconfig/network
- Look for HOSTNAME=xxxxxx
- Change the xxxx to the name you wish to set for your computer. (ex: HOSTNAME=wiredgorilla.com)
- Save the file and restart the xinetd service. (ex: type service xinetd restart in your shell)
- Done! You have just changed your hostname in Linux platform
This is a step-by-step guide to Install, Jailbreak and unlock iPhone 4.3.3. You may choose to jailbreak iPod Touch, iPad with the same method except leaving the options that are only available to locked iPhones. You should jailbreak factory unlocked iPhone with Redsn0w
Plesk Login prompt Issue
A strange login prompt is presented when trying to view a website on a windows plesk account , even though the website directory is not password protected.
This issue results from the anonymous account password used to deliver the site to public web viewers , getting out of sync with the main account password. To fix, just re sync anonymous password by issuing the following command in the run dialog:
"%plesk_bin%\websrvmng.exe " --update-anon-password --domain-name=yourdomain.com