scp command

How do I copy a file with Colon (punctuation) name in it. When I type the following command to copy “file:name.txt” to a remote host called server1:

scp file:name.txt user@server1:/path

I get the following error:

ssh: Could not resolve hostname s: Name or service not known

How do I copy file with scp or rsync with a colon in it?

{ 8 comments }

UNIX / Linux: Rsnapshot Restore Backups

by Vivek Gite on January 27, 2011 · 2 comments

I‘ve created the backup server using this tutorial under Redhat and Debian Linux systems. How do I restore files (such as /var/www/html) with rsnapshot backup tool? How do I restore MySQL database dumps with rsnapshot under UNIX or Linux operating systems?

{ 2 comments }

Linux / UNIX scp Copy Hidden . (Dot) Files

by Vivek Gite on November 9, 2010 · 0 comments

How do I copy all hidden files from $HOME using scp command line tool?

{ 0 comments }

Q. How do I copy all the file including subdirectories from DVD disk mounted at /mnt/dvd to /home/tom at a shell prompt under CentOS Linux? A. You need to use cp command to copy SOURCE to DESTINATION or multiple SOURCE(s) to a DIRECTORY. Gnu cp command has -a option which copy directories recursively while preserving [...]

{ 0 comments }

Q. I would like to use duplicity package to automatically encrypting and storing remote backups in a bandwidth efficient manner in our backup server. The server is already configured and I’d like to install the same under RedHat Enterprise Linux. How do I install duplicity w/o compiling from source code? A. Duplicity is a piece [...]

{ 2 comments }

How can I import a MySQL dumpfile into my database? I’m using CentOS Linux 5 server. My old hosting provider gave me a data.sql file and I do have access to my Unix / Linux server via ssh. So How do I restore my data using command line over the ssh session?

{ 53 comments }