[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Scheduled Backup Failed
- Subject: Re: [cobalt-users] Scheduled Backup Failed
- From: "Worldwide Beauty Store Staff" <email@xxxxxxxxxxxxxxxxx>
- Date: Fri Aug 11 10:39:17 2000
- Organization: Worldwide Beauty Store, LLC
You wrote:
. I am afraid I am a newbie to the Unix and
Linux world and am a bit too busy to learn the intricacies of the better
ways of administering the machine.
I wrote:
I believe most windows PC come with a decent (basic) telnet program - look
at the read me (for your cobalt) on how to enter the shell and practice with
the following commands (only as "user" permissions - do not practice as
admin or root in particular) Here are some basics you can copy and practice
with - these are the 21 most used commands:
1. Command: pwd
Usage: The pwd command tells you what the current working directory you are
in.
Example: Simply type "pwd" at a telnet command prompt and it will return
something like
"/home/sites/yahoo.com"
2. Command: ls
Usage: The ls command lists the files and subdirectories of the current
directory you are in. You can also add some arguments to the ls command to
make it more meaningful.
If you type "ls -F" it will append a forward slash to the subdirectory names
so you can easily distinguish them from file names.
If you type "ls -a" it will show all hidden files such as .htaccess files.
If you type "ls -l" it will show detailed information about each file and
directory, including permissions, owners, size, and when the file was last
modified.
Example: Type "ls -al" at a telnet command prompt and it will return your
file names including hidden files.
DOS Equivalent: dir
3. Command: mkdir
Usage: The mkdir command makes a new directory. Simply type "mkdir
directory" at a telnet command prompt and replace directory with the name of
the directory you want to create.
Example: Type "mkdir temp" at a telnet command prompt to create a new
directory called temp.
DOS Equivalent: md, mkdir
4. Command: rmdir
Usage: The rmdir command deletes (removes) a directory. Simply type "rmdir
directory" at a telnet command prompt and replace directory with the name of
the directory you want to delete.
Example: Type "rmdir temp" at a telnet command prompt to remove a directory
called temp.
DOS Equivalent: rd, rmdir
5. Command: cp
Usage: The cp command copies a file to a new location or filename. Simply
type "cp filename copyname" at a telnet command prompt and replace filename
with the name of the file you want to copy, and copyname with the name of
the new copy.
You can also add a directory structure if you want to copy the file to a
completely new location. Simply type "cp filename directory/copyname" and
replace directory with the name of the directory in which you want the new
copy placed.
Example: Type "cp home.htm index.html" at a telnet command prompt to copy a
file called home.htm to a file called index.html
DOS Equivalent: copy
6. Command: mv
Usage: The mv command renames a file or moves it to a new location. Simply
type "mv oldfile newfile" at a telnet command prompt and replace oldfile
with the name of the file you want to rename or move, and newfile with the
new name of the new file.
You can also add a directory structure if you want to move the file to a
completely new location. Simply type "mv oldfile directory/newfile" and
replace directory with the name of the directory in which you want the file
moved.
Example: Type "mv test.conf test.old.conf" at a telnet command prompt to
move a file called test.conf to a file called test.old.conf
DOS Equivalent: move, rename
7. Command: rm
Usage: The rm command deletes (removes) a file. Simply type "rm filename" at
a telnet command prompt and replace filename with the name of the file you
want to delete.
Example: Type "rm test.html" at a telnet command prompt to remove a file
called test.html.
DOS Equivalent: del
8. Command: grep
Usage: The grep command finds lines in files that match specified text
patterns. Simply type "grep "text" filenames" at a telnet command prompt and
replace "text" with the word or phrase you want to search for, and replace
filenames with the files you want to search in. To search all files in the
current directory, simply replace filenames with *
Example: Type "grep "for sale" *" at a telnet command prompt to find any
files in the current directory that contain the text "for sale" in them.
9. Command: tar
Usage: The tar command copies a file or files to or from an archive. To put
all the files in a directory into one tar format file, simply type "tar cvf
tarfile directory" at a telnet command prompt and replace tarfile with the
name you want to call your archived file, and replace directory with the
name of the directory that contains the files you want to tar.
To extract the files fram a tar format archive, simply type "tar xvf
tarfile" at a telnet command prompt and replace tarfile with the name of the
archived file you are extracting.
Example: Type "tar cvf pages.tar htdocs" at a telnet command prompt to
archive the files in the htdocs directory to a tar format file called
pages.tar.
You could also type "tar xvf pages.tar" at a telnet command prompt to
extract into the current directory the files in the archive pages.tar.
10. Command: zip
Usage: The zip command compresses a file or list of files into a zip format
archive file. This command is compatable with pkzip on a pc. Simply type
"zip zipfile file1 file2 file3" at a telnet command prompt and replace
zipfile with the name you want to use for your compressed zip archive file,
and replace fileX with the name of the file(s) you want to compress into the
zip archive.
Example: Type "zip back.zip home.html index.html" at a telnet command prompt
to compress and archive the files called home.html and index.html into the
file called back.zip.
DOS Equivalent: pkzip
11. Command: unzip
Usage: The unzip command extracts a zip format archive file. This command is
compatible with pkunzip files from a pc. Simply type "unzip zipfile" at a
telnet command prompt and replace zipfile with the name of your zip format
archive file.
Example: Type "unzip old.zip" at a telnet command prompt to extract the
archive called old.zip.
DOS Equivalent: pkunzip
12. Command: compress
Usage: The compress command shrinks a file or files into compressed versions
to save space on your virtual server. This command is good for you to use on
your log files when they get very large. Simply type "compress filename(s)"
at a telnet command prompt and replace filename(s) with the name of your
files you want to compress.
Example: Type "compress access_log agent_log" at a telnet command prompt to
compress the access_log and agent_log files. The compressed files will then
be access_log.Z and agent_log.Z
14. Command : vi
Vi is a text editor for editing files directly on the server. It can be used
for editing html, cgi, .htaccess, and any other text based files on the
server.
Here is a brief description of how to us vi:
Use the arrow keys to move the cursor.
You can only type when in insert mode.
"shift-a" Puts you in insert mode at the end of the line.
While in insert mode, you can use backspace on what you just typed.
"i" Puts you in insert mode at the cursor.
Escape key takes you out of insert mode.
"x" Deletes the character at the cursor when not in insert mode.
":q!" Quits without saving.
":wq" Saves the file and quits.
15. Command: pico
Pico is another text editor that you can use to edit text files on the
server. It can be used in the same place that vi can. There are not any
special commands to use pico like vi. The only thing you need to remember is
to use the Ctrl key instead of the shift key for the carat symbol. All the
commands are listed along the bottom of the screen. When you have made
changes, use Ctrl o to save changes before exiting.
16. Command: cd
Usage: The cd command allows you to change directories.
Example: Type "cd cgi-bin". This will move you into the cgi-bin directory.
17. Command: locate
Usage: The locate command allows you to find a directory or file on the
server, for instance if you cannot remember the path to sendmail.
Example: Type "locate sendmail" and every file and directory on the server
that has the word sendmail in the name will be listed.
18. Command: | (symbol for pipe)
Usage: The pipe symbol allows for the output of one command to be the input
of another command.
Example: Type "ld |more". This combines two commands together to further
define the commands.
19. Command: chmod
Usage: The chmod command is used to change permissions on files in order to
allow certain users and groups to be able to use files or not. Simply type
"chmod 777 filename" where the "777" is the permissions you want to set and
"filename" is the name of the file you want to change the permissions for.
Example: If you type "chmod 755 index.html", it will change the permissions
to 755 for the file called "index.html". For a complete description of what
the individual numbers set the permissions to, you will need to consult a
more in-depth Unix tutorial.
20. Command: gzip
Usage: the gzip command is used to compress files into the .gz archive
format. Simply type "gzip filename" and replace "filename" with the name of
the file you wish to compress.
Example: Type "gzip archive.html" at a telnet prompt to compress the file
archive.html into a .gz file called archive.gz .
21. Command: gunzip
Usage: The gunzip command is used to uncompress files from the .gz archive
format. Simply type "gzip filename" and replace "filename" with the name of
the file you wish to uncompress.
Example: Type "gunzip archive.gz" at a telnet prompt to uncompress the file
archive.gz .
----- Original Message -----
From: "Mike Johnston" <mike.johnston@xxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Friday, August 11, 2000 5:40 AM
Subject: RE: [cobalt-users] Scheduled Backup Failed
>
>
> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx] On Behalf Of Robert G. Fisher
> Sent: Thursday, August 10, 2000 11:35 AM
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: Re: [cobalt-users] Scheduled Backup Failed
>
> On Thu, Aug 10, 2000 at 10:48:21AM -0400, Mike Johnston wrote:
> > I have a Raq 3 and have a scheduled FTP backup of the entire Raq going
to
> a
> > user FTP site on the Raq that I then download to another machine. The
> first
> > night it worked well and I received an email telling me the backup was a
> > success. Since then I receive an email each day saying the backup
failed.
> > I have checked the FTP and sure enough there is no backup. The failed
> > backup email gives me no indication why it failed and looking at the GUI
I
> > cannot figure out what is happening. Any suggestions on how to find out
> why
> > the backup is failing and what to do to make it work correctly?
>
> Huh? You FTP the backup to a virtual site on the same RaQ3?
>
> Yes I do. I have only a single Raq that is used to host our website and
> email. It is isolated from the corporate network and therefore difficult
to
> send the ftp somewhere else. In addition we have only one virtual site on
> the Raq. I send the backup FTP to a user account set up for just that
> purpose. This became necessary when the upgrade to 3.0 caused the manual
> GUI backup to fail by timing out. I do not leave the backup on the Raq
> however. As part of my routine I FTP to the user site and download the
> backup to my corporate network for safe keeping.
>
> Could you be more specific or perhaps post this script
> that you run the backup with?
>
> I am not using a script to run the backup. I am using the browser based
GUI
> to accomplish my admin tasks. I am afraid I am a newbie to the Unix and
> Linux world and am a bit too busy to learn the intricacies of the better
> ways of administering the machine. You can set up a scheduled backup with
> the GUI however there is little control over how and when it runs using
this
> method. I know there are better ways to do these admin tasks but for
> efficiency I can't beat the GUI right now.
>
> Thanks for taking the time to help me solve this one.
>
> Mike Johnston
> I.T. Manager
> Fastco Threaded Products Inc
> --
> Robert G. Fisher NEOCOM Microspecialists Inc.
> System Administrator/Programmer (540) 666-9533 x 116
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>