Jump to content
  • 0

The Sftp Backup Failed


Golfvilla

Question

I just recently instaled Blesta on my In Motion Hosting Virtual LAMP server. I am in the process of setting up Blesta. I followed the instructions in the User Manual for setting up a secure FTP:

 

http://docs.blesta.com/display/user/Important+Settings#ImportantSettings-SystemSpecific

 

When I test the settings, I get the following:

 

SFTP connection was successful!

 

When I go back to On Demand backup and click on Force Offsite Backup, I get the following message:

 

The SFTP backup failed.

 

Any thoughts on why I am getting the failed message?  Thanks!

 

 

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

mysql dump is installed on the server.

 

Where is it? Is it in the environment variables? I forget if Blesta simply tries to execute mysqldump, or if it includes the path. I believe the default path on most systems is /usr/bin/mysqldump.

 

Also, are there any commands disabled in your php.ini? It probably uses exec() or shell_exec()

Link to comment
Share on other sites

  • 0

Thanks Paul,

Here is the output of the command:

 

# whereis mysqldump
mysqldump: /usr/bin/mysqldump /usr/share/man/man1/mysqldump.1.gz

 

php.ini diabled commands:

 

asp_tags = Off
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
safe_mode = Off
safe_mode_gid = Off
expose_php = Off
display_startup_errors = Off
ignore_repeated_errors = Off
ignore_repeated_source = Off
track_errors = Off
register_globals = Off
magic_quotes_gpc = Off
magic_quotes_runtime = Off    
magic_quotes_sybase = Off
define_syslog_variables  = Off
sql.safe_mode = Off
mysql.trace_mode = Off
pgsql.auto_reset_persistent = Off
sybase.compatability_mode = Off
mssql.compatability_mode = Off
mssql.secure_connection = Off
 

Link to comment
Share on other sites

  • 0

Let's see if you can run mysqldump via the command line (SSH), try executing this command:

 

mysqldump  -u USER -p DATABASENAME -r dump.sql

 

Replace USER and DATABASENAME with the proper values. You will be prompted for the password after you run the command. You can check your Blesta config at /config/blesta.php for your database details.

 

Do you have a dump.sql after running the command? How large is it? Open it up and see if it looks right.

Link to comment
Share on other sites

  • 0

Thank you Paul, I will try that. I was just thinking, I am setting up my Blesta per the manual procedures, I haven't set up packages, modules, etc. yet. Would that have anything to do with the error message?

Thanks!

 

Nope, the backup should work with a fresh install and is not dependent on a certain level of configuration -- except configuring the backups themselves! :) Curious the result of running mysqldump manually per above.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...