TinyPortal

Development => Feedback => Topic started by: redshark on September 27, 2005, 06:49:54 AM

Title: [Backup]
Post by: redshark on September 27, 2005, 06:49:54 AM
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

Title: Re: [Backup]
Post by: eldacar on September 27, 2005, 09:49:51 AM
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.
Title: Re: [Backup]
Post by: bloc on September 27, 2005, 11:59:31 AM
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.
Title: Re: [Backup]
Post by: borgBOB on September 27, 2005, 09:13:48 PM
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.
Title: Re: [Backup]
Post by: bloc on September 28, 2005, 10:04:29 AM
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.
Title: Re: [Backup]
Post by: redshark on September 29, 2005, 01:51:16 AM
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
Title: Re: [Backup]
Post by: IchBin on September 29, 2005, 05:33:39 AM
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..
Title: Re: [Backup]
Post by: redshark on September 29, 2005, 05:49:34 AM
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
Title: Re: [Backup]
Post by: IchBin on September 29, 2005, 01:23:04 PM
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

Title: Re: [Backup]
Post by: redshark on September 29, 2005, 05:56:57 PM
So let me see what i can do for this language pack  :coolsmiley:

cheers

ReD
Title: Re: [Backup]
Post by: IchBin on September 29, 2005, 08:30:30 PM
If you get the english files change then just rename them to German instead. :)
Title: Re: [Backup]
Post by: redshark on September 29, 2005, 09:01:26 PM
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
Title: Re: [Backup]
Post by: redshark on September 29, 2005, 09:06:07 PM
@IchBin

how can the german files bind in TP ?

Cheers

ReD
Title: Re: [Backup]
Post by: IchBin on September 29, 2005, 09:10:27 PM
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?
Title: Re: [Backup]
Post by: redshark on September 29, 2005, 09:17:53 PM
But in the neptune folder i canÂÃ,´t find any files like TPmodules.language.php, TPortal.language.php or TPortalAdmin.language.php
Title: Re: [Backup]
Post by: IchBin on September 29, 2005, 09:48:49 PM
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.
Title: Re: [Backup]
Post by: borgBOB on September 30, 2005, 08:59:27 PM
Bullseye!
Title: Re: [Backup]
Post by: redshark on October 01, 2005, 02:14:48 AM
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:
Title: Re: [Backup]
Post by: Ray on October 01, 2005, 03:26:19 AM
Nice site redshark - to bad I can not read anything lol- hey but it looks good :laugh:
Title: Re: [Backup]
Post by: IchBin on October 01, 2005, 05:20:14 PM
neptune doesn't have a calendar.template.php file. It uses the defaults calendar template.
Title: Re: [Backup]
Post by: redshark on October 01, 2005, 06:44:53 PM
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
Title: Re: [Backup]
Post by: IchBin on October 02, 2005, 05:33:39 AM
You need to look at the calendar template file or the manage.calendar file that is in the default theme.
Title: Re: [Backup]
Post by: 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 (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.
Title: Re: [Backup]
Post by: borgBOB on October 12, 2005, 12:36:27 AM
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 (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
Title: Re: [Backup]
Post by: IchBin on October 12, 2005, 01:12:20 AM
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. :)