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.
The joe folder actually is a watch folder, so once the file gets there it gets imported into another system them deleted. So truly all I need to do is 1) get the file to the joe folder on the other server then 2) delete it from the send2joe folder so it doesn't keep getting put in the joe folder and reimported over and over into the other system.
Rjo, your best bet is to produce and analyze some logs at this point. And since we are too much curious, post them here.
Well I am a little confused here...if you know the "sent2joe" directory doesn't exist, then why are you trying to move files to it? Obviously you are going to get an error. Why not just create the directory so the files are moved there?
But, like forrestt said, it really sounds like rsync is what you want here. rsync will keep track of any changes on the local side, and update the remote server accordingly. As long as you don't explicitly tell it to, rsync won't delete files on the remote side that have been removed from the local either. So files could safely be removed from "send2joe" at any time (or never at all, whatever works for your situation).
I'm confused to, that's why I posted, haha. this whole process was setup by someone else, not myself.
What I think I'm going to do for the interm is just recreate the folder. Then I just have to figure out how I can automatically clean up that soon-to-be-no-longer-missing folder of all files that are older than a week (so that doesn't get overly full and fill up my drive eventually).
that will at least give me time to look into rsync.
Is there a reason they are even being kept? Do you need to retain them as backups for a certain amount of time?
Also (I understand this is not your setup and not your problem directly), that is an exceptionally poor "script". It isn't even verifying if the scp process completed before it moves (deletes) the files. So if that was run while the remote machine was down or you momentarily lost Internet connectivity, the files would simply be deleted and you would never even know they didn't get there.
Whatever you replace this with, you definitely want to make sure it is more robust than what they have now.