All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to put a file to FTP server ? BASH
Hello,
I've mixed some of scripts & at last made something which can backup all of databases & files etc (Just learning).
I've tried that with rsync on another server & all going well with rsync but i want to get it working with FTP (I've 2x100GB FTP account from online.net lying around) but not sure why it's not working.
# ftp -n -i dedibackup-dc2.online.net
Trying 62.210.17.4...
Connected to dedibackup-dc2.online.net (62.210.17.4).
220 server ready - login please
ftp> user $USERNAME $PASSWORD
331 password required
230 login accepted
ftp> put aa.sh /si.net/aa.sh
local: aa.sh remote: /si.net/aa.sh
227 Entering Passive Mode (62,210,17,9,54,81)
ftp: connect: Connection timed out
Is there anyone who can help with it ? Seems like online.net doesn't have passive mode enabled, is there any way to bypass it ?
Comments
Send a ticket into online.net and ask? :P
Actually they have passive mode, check if your firewall block opening ports for passive mode
why dont you use php + cron to do it for you ? If you need help I can do it,
pftp -n -i dedibackup-dc2.online.net
As a Script: http://pastebin.com/raw.php?i=2yDzit8A
They would not reply as it's weekend
Thank you so much, you were right. Actually CSF was blocking ports, disabled that & all seems to be good now
Well, it is only for learning,
The fact is that one of my colleague inspired me with his bash scripts.
Actually i was using ftp not pftp
The issue was my firewall.
Okay.
Offtopic: i have one of theses backup acxounts as well and in the control panel I see 0/1000 files. So I can use my 100GB for maximum of 1000 files?
@trexos yes but by using tar before sending the files it's more than enough
http://www.cyberciti.biz/tips/how-to-backup-mysql-databases-web-server-files-to-a-ftp-server-automatically.html
@StephenIzzy I was sure about the firewall
Flagged at resolved by thread starter.