FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Automated backups
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Automated backups [message #28489 is a reply to message #28485] Wed, 26 October 2005 14:07 Go to previous messageGo to previous message
BugLaden is currently offline  BugLaden   United States
Messages: 216
Registered: February 2002
Location: Westminster, MD
Karma:
Senior Member
After I posted the last message I did a search on cron on this forum and found that as well.

I edited admdump.php so the pertinant section looks like this

	// uncomment the lines below if you wish to run this script via command line
	fud_use('adm_cli.inc', 1); // this contains cli_execute() function.
	// when using this the script accepts 2 arguments
	// php admdump.php /path/to/dump_file [compress]
	// compress is optional and should only be specified if you want to datadump to be compressed

	/* check for cli arguments */
	if (defined('forum_debug')) {
		if (empty($_SERVER['argv'][1])) {
			exit("Usage: php admdump.php /path/to/dump_file [compress]\n");
		}
		$_POST['submitted'] = 1;
		$_POST['path'] = $_SERVER['argv'][1];
		if (!empty($_SERVER['argv'][2])) {
			$_POST['compress'] = 1;
		}
	}



however when I run it from the command line here is the output:

php admdump.php
Status: 302
Content-type: text/html
X-Powered-By: PHP/4.3.4
P3P: CP="ALL CUR OUR IND UNI ONL INT CNT STA"
Set-Cookie: fud_session_1130263541=e49b4bb0261edc194505c6aa942a4393; expires=Wed, 02-Nov-05 13:39:58 GMT; path=/forum/; domain=.ccgworkshop.com
Location: http://www.ccgworkshop.com/forum/adm/admloginuser.php?S=e49b4bb0261edc194505c6aa942a4393


Due to the lack of parameters it should have kicked back and error message. So what am I missing?


-=BugLaden
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Group permissions again
Next Topic: Posts sent to more than one mailing list
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 00:26:12 GMT 2024

Total time taken to generate the page: 0.03628 seconds