vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Administrative and Maintenance Tools - Cron job for Files Backup (attachments, avatars, etc.) (https://vborg.vbsupport.ru/showthread.php?t=172630)

Jase2 04-22-2008 08:12 PM

Still getting the same error. Hmmm......

Jase2 04-22-2008 09:21 PM

Here's my attached file, Lynne -- as my email client is acting up lol.

Lynne 04-22-2008 09:28 PM

For some reason, the lines are getting all run together by your editor and that is why you are getting the error.

For instance, your file line 1 shows:
Code:

<?php/*======================================================================*\
Whereas it should only be:
Code:

<?php
I will email a fresh copy of the script to you. This is very strange! You are the first person to say this has happened to the file.

Jase2 04-22-2008 09:37 PM

I believe that is from:
Code:

/*======================================================================*\
|| #################################################################### ||
|| # Cron Job to backup all avatars, profiles, and attachments                        ||
|| # Last Modified: December 04, 2007                                  ||
|| #################################################################### ||
\*======================================================================*

I'm using CofeeCup HTML editor 2008, paid version.

Just ran it again, and it worked. However, files are not showing up. I've cmod the backups folder, still isn't working. This is really strange.

Lynne 04-22-2008 09:42 PM

Quote:

Originally Posted by Jase2 (Post 1496853)
I believe that is from:
Code:

/*======================================================================*\
|| #################################################################### ||
|| # Cron Job to backup all avatars, profiles, and attachments            ||
|| # Last Modified: December 04, 2007                                  ||
|| #################################################################### ||
\*======================================================================*

I'm using CofeeCup HTML editor 2008, paid version.

Just ran it again, and it worked. However, files are not showing up. I've cmod the backups folder, still isn't working. This is really strange.

I know what the code is from, however it is on line two of my script and if you look at what you attached, line 2 of my script is merged in which line 1 in your attached script. And, that happened with several lines. Very weird, as I said. I'm not sure why that would happen. I am just using a simple text editor, BBEdit, to write it and I don't think it should cause that problem. Who knows.

Is the action getting logged, just not producing any output? Are you getting any files output? Did you run it 'as-is' or with your modifications? Do you know if passthru() is an allowable function on your server?

Jase2 04-22-2008 09:49 PM

Quote:

Originally Posted by Lynne
Do you know if passthru() is an allowable function on your server?

That I'll have to find out. I'll report back tomorrow. I'm too tired, need some sleep now. See you tomorrow! Thanks for your help, too.

Jase2 04-23-2008 02:12 PM

Hello Lynne,

Haven't seen if passthru() is enabled on my server, yet (although I think it is) -- but I just noticed the attach, avatars, and profilepics in my forums directory as a .tar file. Any ideas as to why it is saving too my forums directory? I certainly don't have that set for the backup folder.

Lynne 04-23-2008 03:53 PM

Quote:

Originally Posted by Jase2 (Post 1497278)
Hello Lynne,

Haven't seen if passthru() is enabled on my server, yet (although I think it is) -- but I just noticed the attach, avatars, and profilepics in my forums directory as a .tar file. Any ideas as to why it is saving too my forums directory? I certainly don't have that set for the backup folder.

If you are getting some files, then passthru is working fine.

It sounds like either you don't have the correct path set for the backup directory you want them to be moved to, or you don't have the correct permissions set for the directory. The script makes the backup and then moves the file. Looking at the file you attached above, you have this as your line:
$backupto = "/home/user/backups1";

You need to add the trailing slash. It should be:
$backupto = "/home/user/backups1/";

Jase2 04-23-2008 05:27 PM

Hi Lynne,

That is an old file, the new one has the trailing slash. I have also cmod the folder to 777. Any other suggestions..... ?

Lynne 04-23-2008 05:34 PM

Quote:

Originally Posted by Jase2 (Post 1497457)
Hi Lynne,

That is an old file, the new one has the trailing slash. I have also cmod the folder to 777. Any other suggestions..... ?

I'd have to look at the form to see if something else is wrong. You can try attaching it here or sending it via email (if you have that working again). It seems that if the permissions and ownership is correct, it should work.


All times are GMT. The time now is 03:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01132 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete