PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Backup error - 4.8.5 upgrade (http://www.photopost.com/forum/photopost-pro-installation-upgrades/111191-backup-error-4-8-5-upgrade.html)

firstrebel December 28th, 2004 03:09 PM

Backup error - 4.8.5 upgrade
 
1 Attachment(s)
I have upgraded 4.8.2 > 4.8.5 and all is OK but cannot now do a backup. See attached jpeg for error message. The backup files are not being created.

Bob

Chuck S December 28th, 2004 04:00 PM

Have you uploaded the latest version?

The backup directory path is located in the admin options now not the config file.

firstrebel December 29th, 2004 04:32 AM

After I ran the upgrade script I uploaded the new config-inc.php after entering the mysql access details. I then 'saved' the settings in both the config and options admin pages. The backup does not work with the new config-inc.php file even though the correct path is shown in the options admin page. I reverted to the 4.8.2 config-inc.php file and backup ran OK.

Chuck S December 29th, 2004 07:33 AM

You have not downloaded the latest download as I stated. The initial download in the adm-backup it was looking for the backup directory in the config.

This has been corrected and the distribution has been corrected about a week ago.

firstrebel December 29th, 2004 07:47 AM

I downloaded 4.8.5 on December 17. Are you saying there is a more current version that is also 4.8.5??

Chuck S December 29th, 2004 08:51 AM

Of course that is exactly what I have said.

firstrebel December 29th, 2004 09:05 AM

I just downloaded the 'latest' v4.8.5 and then uploaded adm-backup.php and tried again. Same error message. Are there any other files I need to reupload?

I cant see any documentation referring to this.

Chuck S December 29th, 2004 09:48 AM

As with all backups there are 3 things one needs to consider.

The new file has this

print "Directory to store backups: <i>{$Globals['backupdir']}</i><br /><br />";

Number 1

The directory server path you have entered in the global option for backups must exist and be writable 777

Number 2

Mysql must be on the same server as the install.

Number 3

The path to mysql must be entered correctly also in the backup options in admin


If you now have the new file and it still does not work you have not done one of the other options.

Michael P December 29th, 2004 10:05 AM

You only need the adm-backup.php file from the current build.

firstrebel December 29th, 2004 10:06 AM

I followed the upgrade instruction from 4.8.2 > 4.8.5 to the letter - not uploading config-inc.php until after running the upgrade script and saving the settings.

So to your points.

Quote:

Number 1

The directory server path you have entered in the global option for backups must exist and be writable 777
Nothing here has changed since 4.8.2
/home/backups/photopost

Quote:

Number 2

Mysql must be on the same server as the install.
Nothing here has changed since 4.8.2

Quote:

Number 3

The path to mysql must be entered correctly also in the backup options in admin
Nothing here has changed since 4.8.2
/usr/bin/mysqldump

Chuck S December 29th, 2004 10:21 AM

Are those the entries in the new admin options as yes it has changed since 4.8.2. They are no longer exist in the config file. They are found in the global options.

What do your global options state for 4.8.5 on this subject? I have the following in my config and it backups without flaw

Directory for backups?
The full path to the directory to store backups

/var/www/html/backups

Path to mysqldump
The full path to your mysqldump executable

/usr/bin/mysqldump

firstrebel December 29th, 2004 10:36 AM

1 Attachment(s)
The paths are in the new admin global options - see attached jpeg. The only way to run the backup is with the old (v4.8.2) config-inc.php file. Running the backup with the new (v4.8.5) config-inc.php gived 0 size backup files.

Chuck S December 29th, 2004 10:59 AM

Firstrebel


Try changing this line

print "Path to mysqldump: <i>$mysqldumpcmd/mysqldump</i><br />";

to this

print "Path to mysqldump: <i>{$Globals['mysqldumppath']}</i><br />";


then this line

$dumpcmd = "$mysqldumppath --opt -h $host -u$mysql_user -p$mysql_password $database ";

to this

$dumpcmd = "{$Globals['mysqldumppath']} --opt -h $host -u$mysql_user -p$mysql_password $database ";

firstrebel December 29th, 2004 11:23 AM

Yes, that fixed the problem. Thanks for your time and prompt help.

Bob

firstrebel February 1st, 2005 03:02 PM

Upgrade 4.8.5 > 4.86 backup error
 
I have just upgraded 4.8.5 > 4.86 and this same error has happened. The fix you suggested above has not worked for 4.86

Bob

firstrebel February 2nd, 2005 03:02 PM

Any help with this please?


All times are GMT -5. The time now is 03:05 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97