Hi,
Here are answers to those questions:
1. Script needs to copy all files from a specific remote directory whose names have a defined structure (like abc_*)
2. Yes, all files are new .. so sync won't help
3. Files won't exist on local machine
4. Stop copying the files from remote machine when...
Thanks for the reply, PHV. My problem is not cron or du. My problem is that I want to achieve all that in a single ssh tunnel (a set of ';' seperated commands in ssh, perhaps). And how can I take care of the 90% disk space problem .. as this problem can happen during an already-under-execution...
I have to write a script that will be executed periodically to copy files from a remote server, and will have to do the following:
1. Check the disk space on local server, find out how much free disk space is available for the copying (We can assume that the copying can take 90% of the total...
I have to write a perl script that will be executed periodically to copy files from a remote server, and will have to do the following:
1. Check the disk space on local server, find out how much free disk space is available for the copying (We can assume that the copying can take 90% of the...
using ssh -l loginname won't help as then he will be asked for password, right? The key that he generated won't work for the other effective userID ( I guess :-/ )
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.