Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to create a shell script which backs up one directory to another. It should takes two parameters from the user, firstly the directroy to back and the directory to back up to. I then need the script to check if the directories are valid, if not output to user, and then to check if there will be any files over written in the process and to report these to the user with an option to overwrite or not.
Help would be greatly appreciated as this is an assignment that i have to do and im getting no-where fast.
Thanks all
Last edited by WarriorWarren; 04-06-2003 at 09:32 AM.
Have you decided what shell you are going to write this script in? csh, tcsh, bsh, bash, ksh, ash, sh, or some other? In other words, have you written your first line of code? It is always a good first step.
If there is a choice in the matter, I might recommend bash, in part because of the Advanced Bash-Scripting Guide at the LDP. It should have all the information you need. I'ld give you a link, but I use a mirror near me and I don't know where you are located.
terribly sorry chris, I didnt realize that the forum doesnt enjoy helping others understand Linux.
I also am not asking someone to do my homework, im asking for a little help and guidance. All the tools required are not in the resources that are supplied, it is intened that some information is
researched and discussed with others.
Also being from UK myself, and being a part time adult student I must admit I am struggling with this assignment and this is a last resort to actually ask online.
Dont worry, no more questions about homework thoug. Thanks for your time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.