MySQLDumper-Board Forum Index Follow me on Twitter

Portal  •   Forum  •  Downloads  •  Profile  •  Search   •  Register  •  Log in to check your private messages  •  Log in  •  


 Autodelete

Post new topicReply to topic
Author Message
ricksterBC12
first backups
first backups





Joined: 11 Jan 2012
Posts: 1


blank.gif

PostPosted: 2012-01-11, 02:41    Autodelete Reply with quoteBack to top

Autodelete seems to work OK when backing up locally but for remote FTP backups, it does not work. Is there a way to make this work so that I don't accumulate too many backup files on my remote server? Or is this something I have to set up on the remote server through a cron job there? Thanks
OfflineView user's profileSend private message    
Anzeigen











Posted:    Anzeigen Back to top


    
Jens_K
Moderator
Moderator




Age: 37
Joined: 04 Sep 2007
Posts: 1707
Location: Nähe Bielefeld


germany.gif

PostPosted: 2012-01-11, 10:03    Re: Autodelete Reply with quoteBack to top

« ricksterBC12 » wrote:
is this something I have to set up on the remote server through a cron job there?

Short answer: yes.

_________________
It's like math-camp all over again ... not ... that i've ever been to math-camp!
mein Blog

OfflineView user's profileSend private messageVisit poster's website    
pavdeijk
knows MySQLDumper
knows MySQLDumper





Joined: 06 Feb 2012
Posts: 3


netherlands.gif

PostPosted: 2012-02-06, 12:38    (No subject) Reply with quoteBack to top

Hi,

I am working on this problem. At the moment you can:
- specify per FTP Server if you want to auto-delete (1st variable)
- specify per FTP Server how much backups you want to keep (2nd variable)
Writing this data to /work/config/mysqldumper.conf.php and /work/config/mysqldumper.php give problems with writing the 1st variable. When modifying the files, reading it works fine. Looks like a problem with PHP (not my programming language).

The cronscript is able to:
- read the correct information
- delete correct number of files from the FTP Server
At the moment, if you have multiple databases, it will do the reading of the files on the FTP Server for each uploaded databasxe file(s).
Also the multipart files are not recognized at the moment, it is only able to find/decide on single file backups. I need to find out how the files for multipart are made (db_date_time_partnumer.extention?).

If you are able/willing to help me with the mentioned problems, feel free to contact me.

OfflineView user's profileSend private message    
pavdeijk
knows MySQLDumper
knows MySQLDumper





Joined: 06 Feb 2012
Posts: 3


netherlands.gif

PostPosted: 2012-02-06, 17:41    (No subject) Reply with quoteBack to top

Fixed the problem with the multipart files. I didn't want to open the files on the FTP-Server or download the files from the FTP-server to decide if it is a multipart file.

Still looking for someone who knows PHP and can help me with the problem that the variable autodelete on FTP server isn't written correctly to the config files.

If you want to test what I have got till now, feel free to contact me, I can tell you what and how to modify which files in order for the cronscript to work correctly.

OfflineView user's profileSend private message    
DSB
Developer
Developer




Age: 41
Joined: 30 Apr 2004
Posts: 16049
Location: Reichenberg bei Würzburg


germany.gif

PostPosted: 2012-02-06, 20:18    (No subject) Reply with quoteBack to top

I don't understand what you are talking about.
You are talking about FTP, but the autodelete function is only for deleting files on the server where MySQLDumper is running.
The FTP option is for additionally transferring the backup files to another external FTP-Server. On the external FTP-Server the autodelete function is not active and won't remove files.

So what exactly do you mean when you say FTP?
Do you use the ftp option to transfer the backups to another ftp server or do you ftp the backups to the same server where MSD is running?

_________________
Gruß / Greetings, DSB

Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.

OfflineView user's profileSend private messageSend e-mailVisit poster's website    
Jens_K
Moderator
Moderator




Age: 37
Joined: 04 Sep 2007
Posts: 1707
Location: Nähe Bielefeld


germany.gif

PostPosted: 2012-02-06, 22:54    (No subject) Reply with quoteBack to top

It seems to me that pavdeijk has programmed a new feature in MSD 1.24.4 that should implement the autodelete functionality for using with the built in FTP option, but now needs a little PHP help for writing the config files.

If it is solid enough to not just run in his server environment but together with other server configurations, that would be a nice addon.

_________________
It's like math-camp all over again ... not ... that i've ever been to math-camp!
mein Blog

OfflineView user's profileSend private messageVisit poster's website    
DSB
Developer
Developer




Age: 41
Joined: 30 Apr 2004
Posts: 16049
Location: Reichenberg bei Würzburg


germany.gif

PostPosted: 2012-02-06, 23:02    (No subject) Reply with quoteBack to top

Ah, now I understand. Didn't get that at first reading. Wink

@pavdeijk
If you post a svn-patch here, we might be able to help.

_________________
Gruß / Greetings, DSB

Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.

OfflineView user's profileSend private messageSend e-mailVisit poster's website    
pavdeijk
knows MySQLDumper
knows MySQLDumper





Joined: 06 Feb 2012
Posts: 3


netherlands.gif

PostPosted: 2012-02-08, 12:02    (No subject) Reply with quoteBack to top

Hi DSB and Jens_K,

Sorry for my English, as my German is worse.

I modified the code of some files in order to display an option of enabling auto-delete on remote FTP-servers, save this information (otherwise it is not very useful...) and use this information in the file crondump.pl.
The way I made the changes should be universal, that is not only my testing-environment canuse this, but everyone who uses your program.

Jens is correct about my problem (at least for what a colleague needs). But I do not know how to make an SVN-patch.
I used the original files, and registered my changes with a coding, so you have to search for the coding to get the modifications.
And the program I use for typing the code (notyepad++) also removed the trailing spaces from the script, so comparing it will generate quite some differences between my local copy and one from the download.

If you can tell me (via a link) or show me how to make an SVP-patch, I'll be happy to help.
Or I can send you the modified files, so you can see the differences yourself. Let me know though PM.

OfflineView user's profileSend private message    
DSB
Developer
Developer




Age: 41
Joined: 30 Apr 2004
Posts: 16049
Location: Reichenberg bei Würzburg


germany.gif

PostPosted: 2012-02-08, 12:58    (No subject) Reply with quoteBack to top

Hi pavdeijk,

In that case I would like to take a look at the code myself. Please mail your package to admin at mysqldumper.de .
Thanks in advance. Wink

_________________
Gruß / Greetings, DSB

Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.

OfflineView user's profileSend private messageSend e-mailVisit poster's website    
Display posts from previous:      
Post new topicReply to topic


 Jump to:   


Show permissions
Similar topics
Topic Author Forum Replies Posted
No new posts Autodelete without visiting MySQLDump... DrewC Errors and questions 5 2012-04-13, 17:37 View latest post
No new posts Autodelete olivermarkusbauer Fehler / Probleme 3 2012-02-23, 10:20 View latest post
No new posts Perl Cronscript ERROR: Autodelete: Er... helenbn Errors and questions 13 2010-03-31, 23:42 View latest post
No new posts [Feature request] Autodelete on FTP a... ppmr Errors and questions 5 2010-02-18, 12:07 View latest post
No new posts Frage zur Autodelete Logik jusicgn Allgemeine Fragen zu MySQLDumper 6 2009-09-03, 14:05 View latest post

 
CrackerTracker © 2004 - 2012 CBACK.de

Powered by Orion based on phpBB © 2001, 2002 phpBB Group
CBACK Orion Style based on FI Theme
All times are GMT + 2 Hours

phpBB SEO