i counld take a backup from my old server to new. i was tak a backup to
ftp remot server(my new server) and the run shell window and write some command like ls and tar -zxvf and so on, but when i wrot the next command :
mv Name of backup file
i got this messager :
mv: missing file argument.
any body can help me
i think this is last command the i will go to my root Control Panel and Restore the backup and my site will be come back to the work.
sorry i'm not an expert in shell commands so can you explain for me by examples.
i has a backup file in red color after extract it became blue and still the backup exist.
i'm using Putty.
thanks for help.
Ok, my post was meant to be an example, but I guess I wasn't clear about that. So here's how I mark up an example. I'll place the text you are supposed to enter on a single line.
# Like this
Text that's in bold should be entered exactly as it is shown. Text that's in italic and surrounded by <>means that you are going to replace that text with an approriate value. So if I was trying to take a file 'test' and rename it 'whatever', I'd show a line like this: mv<test> <whatever>
As for the red and blue lines, this is a guess, but you're using the 'ls' command, right? ls colorizes its output to help identify different kinds of files. There can be slight changes from one system to another in what a specific color means, but I'd guess (again) that for you red means its a compressed file (.zip, .gz, .bz2, ...) and that blue is a directory/folder. Enter ls -p
and if the blue entries have a '/' after the name they're directories. And yes, uncompressing a backup file doesn't remove the original backup file, just in case something goes wrong and you still need it. That's what backups are for after all.
I should have added that the 'man' command will give you the details on most of the commands you're going to be interested in. The 'info' command can provide information on a number of commmands as well. Use man<command>
to find out the command's syntax and other details. Of course learning to read man pages is a learning experience in itself .