Problems with backup files | Page 2 | Wordpress Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_Feed Topic RSSsp_TopicIcon
Problems with backup files
November 29, 2010
5:26 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

If you are still getting the "No input file specified" error, that means the path to the cron script is incorrect, i would advise rechecking it with your hosting support

November 29, 2010
10:20 pm
Avatar
D
Member
Members
Forum Posts: 21
Member Since:
November 23, 2010
sp_UserOfflineSmall Offline

Is the cron_btype set to "0" by default in cloner.cron.php?, because backing up with cloner.cron.php creates a Full backup and seems to be pulling the title of the backup (FULLbackup) from the custom config file I created for a Full backup.

To simplify and get past all these technical issues with the plugin, I'd like to initially create a Full backup manually (which I've tested and it works), and schedule cron jobs for the tables and files separately.

So I'd like to be able to modify the code in cloner.cron.php to backup only the database or files and save those changes as separate cron.php files which I can choose as the command path for cron jobs, since my hosting server doesn't seem to work with appending config files to the cron.php file command path.

The following code is visible in the cloner.cron.php file indicating that it is selecting what files to backup.

I just need to know what to modify so it chooses to backup the database, or the files, instead of both (Full backup) -

if($_CONFIG['cron_btype']==0){
    $_REQUEST[dbbackup] = 1;

    logxx("Creating a fullbackup");
    $msg = 'full backup';
    }
if($_CONFIG['cron_btype']==1){
    $_REQUEST[dbbackup] = 0;

    logxx("Creating a files only backup");
    $msg = 'file backup';
    }
if($_CONFIG['cron_btype']==2){
    $_REQUEST[dbbackup] = 1;

    #for ($i=0, $n=count($excludedFolders); $i < $n; $i++) {
        $_CONFIG['cron_exclude'] = $_CONFIG['backup_path'];
        $GLOBALS['_CONFIG'] = $_CONFIG;
        $_REQUEST[cron_dbonly] = 1;
    #}
    
    logxx("Creating an sql only backup");
    $msg = "database backup";
   }

 

NOTE: the issue with my hosting server (Goddaddy – shared hosting) may be arising from use of CGI to run PHP, as evident in the command path its Cron manager creates, as shown in the subject line of the Cron logs generated when I run a cron job from the cloner.cron.php file.

Subject line from Cron log -

Cron <xyz@linhost> /web/cgi-bin/php5 "$HOME/html/xyz/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php"

November 30, 2010
7:55 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Please check that error from each if{} statement, when $_CONFIG[cron_btype] is"

 

0 - full backup

1 - files only backup

2. database only backup

 

Ovidiu

November 30, 2010
12:31 pm
Avatar
D
Member
Members
Forum Posts: 21
Member Since:
November 23, 2010
sp_UserOfflineSmall Offline

I was able to construct custom cron and matching custom config files for each of the 3 types of backups, and all 3 work fine.

Except they write over the previous file, which has the same name, instead of creating a new one with the same name and a different creation date.

Is there any place in the code to tell the script not to write over the previous file?

Or do I have to remove the backup name from the script and have an auto assigned name instead?

November 30, 2010
12:56 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

You would need to remove the custom backup name and leave xcloner to generate the unique one based on date

 

Ovidiu

November 30, 2010
2:55 pm
Avatar
D
Member
Members
Forum Posts: 21
Member Since:
November 23, 2010
sp_UserOfflineSmall Offline

1) Should the backup files always be the same size regardless of how they were generated
(manual, execute cron, or cron job from server)?

I'm getting difference in size of files by around 2MB.

Sometimes, different size files are created even though I'm using same method of generation (such as manual full backup),
but I've kept testing different backups until I've gotten the following which seems consistent -

Cron Job from server seems to be consistent at : Database (1.44MB) + Files (MB) = Full (257.61MB)

But Manual backup is bigger : Database (1.45MB) + Files (257.77MB) = Full (259.21MB)

 

Execute Cron backups seem to be consistent with server Cron Jobs : Database (1.44MB), Files (256.16MB)
but I'm having problems executing these for full and files because the browser seems to time out and not complete backup (browser message stops at "Generating Backup ..." and never completes).

2) Is there any adjustment that can be made so that the larger full and files Execute Crons complete?

November 30, 2010
5:30 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

1) the backup size depends on the size of the files to be included in the backup, so yes, on a normal site usually size increases in time, and yes, you might get a small difference in size between several backups created at different points in time

2) yes, check your cronlog output(the one from your hosting provider) and determine first where the backup fails and see if you get any error message, then you could start from that, usually increasing your php memory_limit limit as well as max_execution_time helps

 

Ovidiu

December 1, 2010
3:18 am
Avatar
D
Member
Members
Forum Posts: 21
Member Since:
November 23, 2010
sp_UserOfflineSmall Offline

1) As stated much earlier, I am testing on a site to which no additions have been made. So why is there around a 2MB difference between manual backup and cron job?

2) Also, is there a problem with appending the config file in a CGI bin PHP hosting environment?

I sent the following support question to Godaddy, and they have replied that the issue with the config append not functioning is a scripting problem originating from XCloner. See below -

I have no problem getting a cron job to complete when selecting the cron.php script file for the Wordpress XCloner plugin, but when I try
to append that command path with a custom config file as instructed by XCloner support, I get the following error -
Status: 404 Not Found
Content-type: text/html
No input file specified.

XCloner support instructed that the custom config file be appended to the cron script by inserting a space after the command path to the
script, followed by the name of the custom config file, as shown below -
"$HOME/html/lgs/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php LGSdatabase.php"

REPLY from Godaddy:

Thank you for your response. At this time I have tested the functionality of your hosting account and show no errors. Additionally there are no known issues with the server. The issue you are encountering appears to be with scripting or coding. You will need to either consult your favorite search engine or forum for more information on the possible cause of this issue. You may also want to check on the requirements for this plugin to run to ensure that you are in the correct hosting environment. We appreciate your patience in this matter.

December 1, 2010
9:45 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

1) i have no way of knowing what actually happens on your hosting environment, there are tools which you can use to compare 2 folders and so 2 backup archives to see which files to not match 

 

2) I am guessing the cron command you are using there is somehow not working, the "Status: 404 Not Found" indicates that the php executable does not find the php script you've setup for execution, again, this path "$HOME/html/lgs/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php" would be the execution script and LGSdatabase.php the argument; this topic forum might explain explaining more on this issue http://forums.cpanel.....50237.html

 

Ovidiu

December 30, 2010
11:49 am
Avatar
Guest
Guests

Hi,

I'm new to Xcloner. This is my first post.

Well, I have managed to install the plugin in my WP 3.0.1 installation.

The cron was properly set and it works.

The problem is that XCloner is creating fullbackups with very different capacities.  However, there has been no changes at all in the site.

No new posts, no new plugins, no new images, ect.

1) Why is such a big difference between backups?

2) How do I correct this issue, since it seems not been normal.

3) I also created a Fullback with Cpanel and this is the file size provided in the confirmation email sent by Cpanel: "size is: 139725074".

Please help. Thanks.

This are the list of backups created and seen within the XCloner interface:

 

1 backup_2010-12-28_18-16_zzzz.com-sql-nodrop.tar [Image Can Not Be Found] 70.33 MB Tue 28th Dec 2010 18:16:29 (GMT -0600)
2 backup_2010-12-28_18-35_zzzz.com-sql-nodrop.tar [Image Can Not Be Found] 112.85 MB Tue 28th Dec 2010 18:35:26 (GMT -0600)
3 backup_2010-12-29_06-34_zzzz.com-sql-nodrop.tar [Image Can Not Be Found] 112.89 MB Wed 29th Dec 2010 06:34:38 (GMT -0600)
4 backup_2010-12-29_07-29_zzzz.com-sql-nodrop.tar [Image Can Not Be Found] 42.04 MB Wed 29th Dec 2010 07:29:31 (GMT -0600)
5 backup_2010-12-29_07-35_zzzz.com-sql-nodrop.tar [Image Can Not Be Found] 0 bytes Wed 29th Dec 2010 07:35:21 (GMT -0600)
6 backup_2010-12-30_01-00_zzzz.com-sql-nodrop.tar [Image Can Not Be Found] 780 KB Thu 30th Dec 2010 01:00:44 (GMT -0600)
7 backup_2010-12-30_05-11_zzzz.com-sql-nodrop.tar [Image Can Not Be Found] 0 bytes Thu 30th Dec 2010 05:11:50 (GMT -0600)
Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar Vera
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0