Tech Support Forum banner
Status
Not open for further replies.
1 - 4 of 4 Posts

· Elite Commander
Veeam, HyperV, Vcentre, Server (2008 - 2022)
Joined
·
1,441 Posts
Discussion Starter · #1 ·
Hi all,
I guess this is pretty simple but i have no idea what or how to do it. I have a Raspberry Pi running Debian Wheezy.
This is the process I need to complete:

1. each day a txt file is created, with a name of 20140001-******* (where *****) is date stamp.
2. after the creation of this file, at 3am I need to transfer (copy then delete) this created file to www.b787register.com/radar/uploads

Obviously I have the file created ok, and sometimes if my internet connection is down for more than 24 hours we may have more than one file created.

can someone please point me in the right direction pleasE?????
 

· Registered
Joined
·
852 Posts
Do you have FTP access to the "upload" server? First thing that comes to mind is fire off a shell script with a cron job that FTP's the file to the remote server.
 

· Premium Member
Joined
·
2,755 Posts
Don't use FTP. FTP login credentials are sent unencrypted. If you use wireless anyone sniffing traffic will have your details and you could loose your website.

Instead see if it supports SFTP which is FTP with SSH or FTPS.
Better still see if you can use SSH with public/private keys.

You need to log into your server and manage it through cpanel:

cPanel Redirect

Have a scroll down to security and manage SSH connections. Once SSH has been set up between your Pi and the server you can do the same with a cron task.
 
1 - 4 of 4 Posts
Status
Not open for further replies.
Top