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!
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 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????
Hi Laura.
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.
Not my area of expertise, but it seems you need the output signal from a UPS to trigger some action. (Otherwise, how would the SW know there had been a power surge?)
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.
OR:
Are we saying here that:
a) files are being transferred all the time, at any given time, whenever they need to be transferred,
AND:
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.
and/or:
2) schedule the file transfers for a certain time, and don't update anything during this process.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.