Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have a problem with my server not transferring all cash office files whenever there is a power surge. I am asking in general how I would fix this problem with cron. Would that be the right approach to make sure that everytime there is a power surge that all the files that are supposed to transfer are tranferring????
That title you have chosen for your thread ("Urgent"), has NOTHING to do with the content of your thread. Therefore, the people who actually know how to help you, probably won't peek in to see if they can help or not.
Please locate the LQ posting rules and give them a quick scan. Perhaps hitting the REPORT button on your post, and kindly asking a moderator to rename your thread appropriately, will help.
Meanwhile, CRON does not sound like the solution you are looking for.
You might need to write a script for the re-transmission; however, the issue really
is the power. I'm with Pixellanny on that one - get a UPS, and make sure it's one
that the relevant Linux tools know about ...
I'm thinking that it is not a power surge. Now I am finding out that it happens unexpectedly and it is not a total loss of power. She said the computer reboots ... ahhhhh, so I knew when she said that, we were talking about sending updates. So, this probably happens when we send updates and the server reboots. Files are transferring and immediately stop and are lost during the transfer so the transfer never finishes. When they go in to grab the files to print out a report they are not there.
Transferring these files should be a three step process, atleast:
1 - COPY the files over.
2 - VERIFY the files are copied.
3 - Remove the originals if required.
That way, if the system crashes, you just need to restart the copy process over.
If the system is crashing under load, and doing so on a regular basis, it sounds like bad hardware, specifically the power supply.
Are we saying here that:
a) files are being transferred all the time, at any given time, whenever they need to be transferred,
b) sometimes, updates get sent to the machine, after which the machine automatically reboots, thereby interrupting the transfer?
If this is the case, there are (two) things to do:
1) schedule updates for a certain time, and during this time, don't transfer any files.
2) schedule the file transfers for a certain time, and don't update anything during this process.