This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Full panel backup - in case if there is a server crash
#6
RE: Full panel backup - in case if there is a server crash
I tried to the following but failed... any suggestions?

I've put the script in an .sh file and placed it under directory - /var/sentora/cronbackup/dailybackup.script.sh

Code:
#!/bin/sh
USERNAME="****"
PASSWORD="*****"
SERVER="ftp.****.com"
# local directory to pickup *.tar.gz file
FILE="/var/sentora/hostdata/"
# remote server directory to upload backup
BACKUPDIR="/oxenbackup"
# login to remote server
ftp -n -i $SERVER <<EOF
user $USERNAME $PASSWORD
cd $BACKUPDIR
mput $FILE/*.tar.gz
quit
EOF
#!/bin/sh
USERNAME="****"
PASSWORD="*****"
SERVER="ftp.****.com"
# local directory to pickup *.tar.gz file
FILE="/var/sentora/hostdata/"
# remote server directory to upload backup
BACKUPDIR="/oxenbackup"
# login to remote server
ftp -n -i $SERVER <<EOF
user $USERNAME $PASSWORD
cd $BACKUPDIR
mput $FILE/*.tar.gz
quit
EOF


In crontab -e added the following: 


Code:
* * * * *  /var/sentora/cronbackup/dailybackup.script.sh
But it's not working.... Any suggestions?
Reply
Thanks given by:


Messages In This Thread
RE: Full panel backup - in case if there is a server crash - by mettacell - 09-06-2015, 08:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Server Crash rsthomas 3 8 ,107 05-18-2022, 09:26 AM
Last Post: Nigel
Server Vs. Workstation zHostingSolutions 4 9 ,323 09-14-2021, 06:30 AM
Last Post: sparkrack
https without certificate redirects to panel iraqiboy90 10 22 ,744 02-28-2021, 11:20 AM
Last Post: iraqiboy90

Forum Jump:


Users browsing this thread: 3 Guest(s)