Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-17-2004, 11:24 AM   #1
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Rep: Reputation: 31
my 1st script file

All right, I've decided after a most recent scare with my Linux machines (which everything's ok now), I was wanting to perhaps write my 1st script file. Basically what I want to do is backup certain folders on each of my Linux boxes (got 2 of em) and copy those files to the hard drive of another computer. I have never done script stuff before but I have some experience with C++ programming and what not, so in the end it'll probably all just be syntax and how LInux does things. So, anyone care to point me in the right direction on how to do this? Thanks.
Old 08-17-2004, 12:36 PM   #2
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Your biggest hurdle will probably be coming up with the method of backing up: straight copy, tarball, cpio, or something like the Amanda program. The shell script itself will be easy. A good guide commonly referenced is the Advanced Bash Scripting Guide. That link provides access to a number of guides, and offers the Bash guide in a number of different formats you can view online or download if you like. Here's a link to the HTML version if you want to jump right in.

You won't find a whole lot of similarity between shell scripting and C++, but the basic concepts of programming will help you hit the ground running.
Old 08-17-2004, 02:30 PM   #3
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
you might want to take a look here: i believe this describes what you want to do:
the only difference is: this one copies them to an FTP server... a few edits will fix that
it tarballs the files (*.tar.gz) and it puts then on the backup server renaming them according to date

Last edited by scuzzman; 08-17-2004 at 02:32 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need for a script file sirrus_linux Linux - Software 7 02-27-2005 02:15 AM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 12:00 PM
help me with this script file alaios Linux - General 11 05-03-2003 03:29 AM
Script that appends a file to start of other file amp2000 Programming 8 06-30-2002 10:56 AM
Script, Reading a file, When end of file? elibm Programming 2 07-16-2001 12:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration