I have a file named crear into public_html folder that looks like this:
-----------------------------------------------------------------
#!/bin/bash
archivo=`date -u +%d'metalmorfosis.tar.gz'`
cd /home/myusername/domains/mydomain.com/public_html
tar cfspz $archivo metalmorfosis.jpg
ftp -vn ftp.myftp.com << End-Of-Sessionl
user myuser mypassword
binary
put $archivo
bye
-----------------------------------------------------------------
I want to execute this file from cron jobs in my directadmin panel
What is the way to do it?
Is the syntax of my file correct ?
Thanks in advance.
-----------------------------------------------------------------
#!/bin/bash
archivo=`date -u +%d'metalmorfosis.tar.gz'`
cd /home/myusername/domains/mydomain.com/public_html
tar cfspz $archivo metalmorfosis.jpg
ftp -vn ftp.myftp.com << End-Of-Sessionl
user myuser mypassword
binary
put $archivo
bye
-----------------------------------------------------------------
I want to execute this file from cron jobs in my directadmin panel
What is the way to do it?
Is the syntax of my file correct ?
Thanks in advance.