How to copy a file/directory between servers on Linux

So, you have a file or entire directory to copy from one server to another. The first thing you considered was probably download it to your local machine and upload it to new server. Then you asked yourself – why? And you ended up here :)

Easiest way to copy is directly from one server to another.

If you have a directory best thing you can do is to compress it first. This little line of code will create a tar/gzip file with entire directory content compressed inside – and you have a compressed file:

tar -zcvf filename.tgz /path/to/directory

-z: Compress archive using gzip program
-c: Create archive
-v: Verbose i.e display progress while creating archive
-f: Archive File name

All you need to do now is to copy it to another server:

scp filename.tgz username@remotehost.com:/path/to/target/directory

If you want to copy entire directory (not one file) use ‘-r’ switch (recursive):

scp -r /path/to/source/directory username@remotehost.com:/path/to/target/directory

But it’s much better and faster to copy a compressed file. 
Once compressed file is copied you’ll need to uncompress it:

tar -zxvf filename.tgz

-x: Extract files

And that’s all folks.

Posted in Linux | Tagged , , , , | Leave a comment

Simple way for a easy Google Indexing of your site!

As a first contribution, I’ll help out with small thing from Internet Marketing domain, specifically SEO which is fast and easy indexing of your new site by Google.

Nowdays, SEO is the fashion of the Internet Business. So, getting indexed means to join in, or even – start a race. So, to help you out; lemme give you a small hint;

You’ll start seeing your SEO results from day 1 when you can lay your finger on a search result position of your site using this small method.

To get your new site indexed fast, you can do it like this:

  1. Go to the http://identi.ca, and register an account over there. It’s good for your social networking.
  2. Once you have a profile confirmed, you can enter your homepage URL, and say hello to a world, follow some people, and that’s it.
  3. In about 24h max, your URL will be indexed and you can start the race ;)
It’s no brainer this one, there are so many other solutions for a same problem, but let’s say – this is one from my techniques, that I’m sharing with you;
Cheers!
Posted in Internet Marketing | Leave a comment