Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ CMS (All) ⇒ Requests :: Archives ⇒ db function in the preferences :: Archived


db function in the preferences :: Archived
Requests for core changes must be submitted through the Projects Features section.
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page     Forum Index ⇒  Requests

Topic Archived View previous topic :: View next topic  
Author Message
TRANCEBUDHA
Newbie
Newbie

Offline Offline
Joined: Apr 21, 2004
Posts: 40

PostPosted: Sat Apr 24, 2004 4:24 pm
Post subject: db function in the preferences

could it be posible to make or add a sort of function in the preferences to make a daily back up of the data base and be sent to an email addrress, if so that could i t be very attractive

_________________
FEEL FREE TO VISIT ME AT

WWW.DISHLATINO.NET

TRANCEBUDHA's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
XP/IIS/MYSQL/PHP 4
Back to top
View user's profile Visit poster's website
Seeker
Heavy poster
Heavy poster

Offline Offline
Joined: Apr 23, 2004
Posts: 158
Location: Calgary Canada
PostPosted: Sat Apr 24, 2004 4:41 pm
Post subject: Re: db function in the preferences

TRANCEBUDHA wrote:
could it be posible to make or add a sort of function in the preferences to make a daily back up of the data base and be sent to an email addrress, if so that could i t be very attractive

Or auto set for backups to be made at a certain time and to cascade files such as
BackupApr01
BackupApr02
BackupApr03
BackupApr04

Been looking for this option.

_________________
Seeker
Marketing Research

CPG-Nuke is the Absolute

Seeker's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache2Triad Package
Back to top
View user's profile
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Sat Apr 24, 2004 5:10 pm
Post subject: Re: db function in the preferences

I hope you have a verry large email box Smile

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Sat Apr 24, 2004 5:25 pm
Post subject: Re: db function in the preferences

cronjobs is a way to do it, and i use this shellbatch to do it
Code::
#! /bin/sh
FILE=cpgcms-`date +%Y%m%d%H%M`.sql
DIR=/PATH/TO/backup/DIR/`date +%Y%m%d`/
mkdir ${DIR}
mysqldump -f -hSERVERIP -uUSERNAME -pPASSWORD DBNAME --add-drop-table | gzip -9c >${DIR}${FILE}.gz
uuencode ${DIR}${FILE}.gz ${FILE}.gz | mail  WEBMASTER @ MYSITE.COM

_________________
There are two paths, the short one and the long one.
When you choose the short path you will notice it takes longer then the long path.
So READ the FAQ and Wiki first Razz

DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
norbie
Silver Supporter
Silver Supporter

Offline Offline
Joined: Jun 29, 2004
Posts: 737
Location: Norbie's World
PostPosted: Thu Jul 21, 2005 5:27 pm
Post subject: Re: db function in the preferences

This is exactly what I would like to setup.

Could someone help me convert DJMaze's example script into a working one?

Code::
#! /bin/sh
Does this get left alone?

Code::
FILE=cpgcms-`date +%Y%m%d%H%M`.sql
I gather this is the filename it will save as?

Code::
DIR=/PATH/TO/backup/DIR/`date +%Y%m%d`/
Which directory do I need to setup here? The path to where I want the backup saved? Does it get deleted when it's been emailed? e.g. would a correct line look like-
Code::
DIR=/home/norbie/backups/`date +%Y%m%d`/
Does it need to be in the www folder?

Code::
mkdir ${DIR}
I imagine nothing needs changing here again?

Code::
mysqldump -f -hSERVERIP -uUSERNAME -pPASSWORD DBNAME --add-drop-table | gzip -9c >${DIR}${FILE}.gz
Do I keep the -h and -u and -p infront of my username and password when I have filled them in? How come the DBNAME section doesn't have a letter in front of it?

Code::
uuencode ${DIR}${FILE}.gz ${FILE}.gz | mail WEBMASTER @ MYSITE.COM
And here I just enter my email address?

Sorry there's so many questions, I just wanna get this cool feature working!
I would look in the old Geek Forums, but it seems to be disabled!

Thanks to anyone who can spare a little time! Smile

_________________
Norbie

www.norbiesworld.co.uk

norbie's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / Apache Custom Version / 4.0.26-standard (client: 5.0.15) / 4.4.4 / 9.1.1
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
xfsunoles
XHTML Specialist
XHTML Specialist

Offline Offline
Joined: Apr 30, 2004
Posts: 2502
Location: Melbourne, Florida
PostPosted: Thu Jul 21, 2005 5:54 pm
Post subject: Re: db function in the preferences

first line is Required.
if you had it in www folder, they could see it unless they know file name.
replace SERVERIP to host mysql domain
replace USERNAME to user name that you set up for that database
replace PASSWORD to password that associated to DB user that you setup
replace DBNAME to Database name you setup
replace WEBMASTER @ MYSITE.COM to Email Address

_________________

Firefox is my Favorite Browser

xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
Back to top
View user's profile Visit poster's website AIM Address MSN Messenger Yahoo Messenger Photo Gallery
norbie
Silver Supporter
Silver Supporter

Offline Offline
Joined: Jun 29, 2004
Posts: 737
Location: Norbie's World
PostPosted: Thu Jul 21, 2005 6:44 pm
Post subject: Re: db function in the preferences

Thanks xfsunoles,

I'll give that a go when the next hour (00 minutes) comes up Smile

For the email address, does it needs a space between the @ symbol? Or is that just how the filter works here?

_________________
Norbie

www.norbiesworld.co.uk

norbie's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / Apache Custom Version / 4.0.26-standard (client: 5.0.15) / 4.4.4 / 9.1.1
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
xfsunoles
XHTML Specialist
XHTML Specialist

Offline Offline
Joined: Apr 30, 2004
Posts: 2502
Location: Melbourne, Florida
PostPosted: Thu Jul 21, 2005 6:56 pm
Post subject: Re: db function in the preferences

norbie wrote:
Thanks xfsunoles,

I'll give that a go when the next hour (00 minutes) comes up Smile

For the email address, does it needs a space between the @ symbol? Or is that just how the filter works here?

it propably doesn't need space.

_________________

Firefox is my Favorite Browser

xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
Back to top
View user's profile Visit poster's website AIM Address MSN Messenger Yahoo Messenger Photo Gallery
norbie
Silver Supporter
Silver Supporter

Offline Offline
Joined: Jun 29, 2004
Posts: 737
Location: Norbie's World
PostPosted: Thu Jul 21, 2005 6:58 pm
Post subject: Re: db function in the preferences

thanks! fingers crossed, i should be getting an email in a few minutes!

_________________
Norbie

www.norbiesworld.co.uk

norbie's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / Apache Custom Version / 4.0.26-standard (client: 5.0.15) / 4.4.4 / 9.1.1
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
norbie
Silver Supporter
Silver Supporter

Offline Offline
Joined: Jun 29, 2004
Posts: 737
Location: Norbie's World
PostPosted: Thu Jul 21, 2005 7:26 pm
Post subject: Re: db function in the preferences

I'm afraid it didn't work again Sad

Code::
#! /bin/sh
FILE=cpgcms-`date +%Y%m%d%H%M`.sql
DIR=/home5/sub003/sc12413-VFUZ/www/cronjobs/backups/`date +%Y%m%d`/
mkdir ${DIR}
mysqldump -f -hHOST -uUSER -pPASS DBNAME --add-drop-table | gzip -9c >${DIR}${FILE}.gz
uuencode ${DIR}${FILE}.gz ${FILE}.gz | mail  cronjobs @ me.co.uk

That's how I have it setup, and in my control panel -


Do you see anything obviously wrong?

_________________
Norbie

www.norbiesworld.co.uk

norbie's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / Apache Custom Version / 4.0.26-standard (client: 5.0.15) / 4.4.4 / 9.1.1
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
norbie
Silver Supporter
Silver Supporter

Offline Offline
Joined: Jun 29, 2004
Posts: 737
Location: Norbie's World
PostPosted: Fri Jul 22, 2005 4:46 pm
Post subject: Re: db function in the preferences

Does anyone have any tips for this? *This is in the wrong forum*

_________________
Norbie

www.norbiesworld.co.uk

norbie's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / Apache Custom Version / 4.0.26-standard (client: 5.0.15) / 4.4.4 / 9.1.1
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page    Forum Index ⇒  Requests
Page 1 of 1
All times are GMT

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

lexo me teper

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy