Skip to main content

rsync

Using Drush Alias

Submitted by amitsedai on
drush aliases allow you to run a drush commands on your local server but actually execute the command on a remote server. One can create aliases in a folder that drush recognizes, mostly inside the .drush folder for Linux Based Systems. For a mysite example, we can create a file called as mysite.aliases.drushrc.php inside the .drush folder (Or any folder which Drush goes through before executing). All aliases in a site can also be combined in a single file called as aliases.drushrc.php Example data that can be added to mysite.aliases.drushrc.php <?php

RSync file transfer on a different port

Submitted by amitsedai on
To transfer file to a different port using RSync: rsync -avz --progress --rsh='ssh -p1516' source user@host:destDir/
rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/
The source can be a file or a directory to be copied to the destination directory --source: http://www.linuxquestions.org/questions/linux-software-2/rsync-ssh-on-different-port-448112/ http://mike-hostetler.com/blog/2007/12/08/rsync-non-standard-ssh-port/