Automatically backup PHPBB forum

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team
Post Reply
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Automatically backup PHPBB forum

Post by Tech Support » Thu Sep 22, 2005 11:31 am

Of course, we use Internet Macros to automate the backup of this forum :D

The following macro runs on our server via task scheduler once day.

Code: Select all

VERSION BUILD=4310722     
TAB T=1     
TAB CLOSEALLOTHERS     
URL GOTO=http://forum.imacros.net/    
'Size command is optional, since no X/Y commands are used 
SIZE X=800 Y=600    
'
SET !ERRORIGNORE YES 
'If any user is logged in, log out first!
'=> Replace fixed user with "*"
TAG POS=1 TYPE=A ATTR=TXT:Log<SP>out<SP>[<SP>*<SP>] 
SET !ERRORIGNORE NO
TAG POS=1 TYPE=A ATTR=TXT:Log<SP>in   
'
'Login with admin user
'
'Use clear text password 
SET !ENCRYPTION NO
'
TAG POS=1 TYPE=A ATTR=HREF:http://forum.imacros.net/login.php 
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:login.php ATTR=NAME:username CONTENT=admin 
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:login.php ATTR=NAME:password CONTENT=your-pwd-here 
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:login.php ATTR=NAME:login&&VALUE:Log<SP>in  
'
'2nd login to admin panel
TAG POS=1 TYPE=A ATTR=TXT:Go<SP>to<SP>Administration<SP>Panel    
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:login.php ATTR=NAME:username CONTENT=admin 
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:login.php ATTR=NAME:password CONTENT=your-pwd-here
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:login.php ATTR=NAME:login&&VALUE:Log<SP>in  
'
'Select backup menu
FRAME F=1     
TAG POS=1 TYPE=A ATTR=TXT:Backup<SP>Database   
'
'Start database file download
'
FRAME F=2     
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:admin_db_utilities.php?sid=* ATTR=NAME:backup_type&&VALUE:full CONTENT=full 
' 
ONDOWNLOAD FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}}    
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:admin_db_utilities.php?sid=* ATTR=NAME:backupstart&&VALUE:Start<SP>Backup  
'
'Due to the frames, we need to tell IIM manually to wait for download to complete
WAIT SECONDS=#DOWNLOADCOMPLETE# 
'
'Logout
'
'Next page does not have frames, set F=0
FRAME F=0
URL GOTO=http://forum.imacros.net/     
TAG POS=1 TYPE=A ATTR=TXT:Log<SP>out<SP>[<SP>admin<SP>] 
Notes:

1. After recording the macro, we had to replace all session IDs (e. g. e94dea479ad6db7d80c71722f3bd6bb9) with "*" (see also http://www.iopus.com/iim/help/faq_session_id.htm for details)

2. To schedule a certain macro to run at a certain hour, please use the Windows task scheduler ( http://www.iopus.com/guides/winscheduler.htm ) and the IIM command line interface (same commands as used in the batch files, see for example the file Example-Batchfile.bat that comes with IIM)
Post Reply