TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 367
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 85
  • Total: 85

[Backup]

Started by redshark, September 27, 2005, 06:49:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

redshark

Hi all,

iÂÃ,´m very new on php and mysql.....

now i search for a very easy solution to make a daily backup of our forum. so in the worst case we can refresh our forum in very short time.

Any Tips & Tricks ?

- we are using Neptune_tp and the neptune_smf

Thx a lot

ReD


eldacar

Go to Forum Maintenance and download the database dump it will make for you there. I'm not sure if that will backup any TP stuff though.

bloc

It won't. It has a different prefix than your smf installation. Best is to use ftp for the files, and phpMyAdmin for the tables.

Although some servers/hosts can download the whole website in one file..check if you have that option.

borgBOB

The problem with a 'whole site' back-up is restoring a very large file. If you have a small file/site, then
it should be no trouble. (except that it's a manual process)
But if you site grows to 1/2 a GB, then up-loading the back-up to restore it could take a long time.

Some hosts offer 'cron' jobs that will run automatically on a pre-set schedule, but I don't know how to use them.

bloc

True. Cron jobs might be better.

I simply use a ftp manager, download any new files of attachments and avatars, and do a phpMyAdmin "export" job. But of course it takes time when the site is big.

redshark

Thx for this tips

my hostserver have the option to do the "cron jobs" but iÂÃ,´m also doesnÂÃ,´t know how it works. so i will check this feature next days

Cheers

ReD

IchBin

Cron jobs are pretty easy. Here's an example of one of mine that I use.

25 01 * * * tar -zcvf DBbackup.tar.gz /var/lib/mysql/

# Minute - Minutes after the hour (0-59).
# Hour - 24-hour format (0-23).
# Day - Day of the month (1-31).
# Month - Month of the year (1-12).
# Weekday - Day of the week. (0-6; the 0 refers to Sunday).

Explaination:
So by the standard above my cronjob will backup my MySQL database on the 25th minute of 1 AM everyday of everymonth on every weekday. If you don't specify a number in each section and put in a *, that means you'll be specifying every day or month etc..

redshark

Thx....IchBin

i will check this next time

at the moment i have the challenge to fix problems on the neptune style by Bloc bevor 01.Oct 05

- i need a calendar in german speak and the function to edit the "holy days". In vers. 1.05 i donÂÃ,´t have these oprion and i donÂÃ,´t know if i can upgrade to RC1. IÂÃ,´m using neptune_smf & neptune_tp

- Bloc tells me that a user will build a language pack ( german ) for TP ....but i donÂÃ,´t know if the pack is closed to download or is it on work or freeze ?!

cheers

ReD

IchBin

I don't think anyone has done german yet. Seeing as you know english pretty good you could actually do this yourself if you dare give it a try. There are three files for TinyPortal that you need to translate if you can. Here's the post that has the files you need to change. All you need to do is go through and change all the language between the ' and '.
Like this:
$txt['tp-changetheme'] = 'Change'; to $txt['tp-changetheme'] = 'ÃÆ'ââ,¬Å¾nderung'; <--- I can't remember if that's the right German word or not lol. I have a friend that can speak German but I am unable to get ahold of him right now. If you don't think you can do it, I wouldn't worry about it I will probably be able to get my friend too.



Here's where you can download the files in Bloc's post.
http://www.tinyportal.net/smf/index.php?topic=867.0


redshark

So let me see what i can do for this language pack  :coolsmiley:

cheers

ReD

IchBin

If you get the english files change then just rename them to German instead. :)

redshark

Hi IchBin,

the coarse translation is done. But i have no time for check or fine tuning at this time.

Hey german folks.....can you check the german translation files please ?????

Cheers

ReD

redshark

@IchBin

how can the german files bind in TP ?

Cheers

ReD

IchBin

Depending on if you have your Forum set to use the german files. If you do, then it will automatically use the german TP files that you edited and changed the name to German. :)
TP uses the SMF functions to call the language strings. So if you're board is set to German, then TP will look for the TP German files automatically. Neat eh?

redshark

But in the neptune folder i canÂÃ,´t find any files like TPmodules.language.php, TPortal.language.php or TPortalAdmin.language.php

IchBin

I don't think you need to do it for each Theme. I think the way Block has it setup is that by default it will use the default themes language files. The same thing goes for other things, like the Calendar. If you take Blocs calendar.template file out of his theme, it will automatically use the calendar.template file that is in the default theme. That is why it's not smart to mess with anything on the default theme. :)

Someone correct me if I'm wrong please.

borgBOB


redshark

IÂÃ,´m blind or i must sleep a while. Where i can find this calender template ?  ???

btw. we are online now: www.kite-lounge.com  :laugh:

Ray

Nice site redshark - to bad I can not read anything lol- hey but it looks good :laugh:

IchBin

neptune doesn't have a calendar.template.php file. It uses the defaults calendar template.

redshark

Ray...thx.... ::)

@IchBin

and that it is what i mean....i canÂÃ,´t found the file where i can change the american holy days to the german. So i need it for an event calendar

Cheers

ReD

IchBin

You need to look at the calendar template file or the manage.calendar file that is in the default theme.

WizardHawk

While looking for a way to cron a backup, I came across this at simplemachines.org:

http://www.simplemachines.org/community/index.php?topic=15467.0

Shows you how to make a script that first kills existing backups, then compresses a backup of one (or more) sql databases and puts them in the backup folder. I'm playing with it now but it may help several of you.

borgBOB

Quote from: WizardHawk on October 11, 2005, 09:37:23 AM
While looking for a way to cron a backup, I came across this at simplemachines.org:

http://www.simplemachines.org/community/index.php?topic=15467.0

Shows you how to make a script that first kills existing backups, then compresses a backup of one (or more) sql databases and puts them in the backup folder. I'm playing with it now but it may help several of you.

Great find WizzardHawk

IchBin

These types of things are great. I setup my server to automatically make a backup of my website and database files every night with a similar cron job setup. Then on my windows machine  I made a batch file to connect and download the files via scheduled tasks. :)

This website is proudly hosted on Crocweb Cloud Website Hosting.