![]() |
Quote:
|
You could just change the time format in the config to use the day of the week, this is what I do so I only ever have 7 folders (Monday to Sunday).
Code:
$backup['DATE'] = 'l'; // Lowercase 'L' |
Paul, never mind my earlier request.
I have successfully built a VB script (Windows Scripting Host) which: 1. Invokes Windows FTP command to connect to my site host server and list out all the folder names for all the backups. 2. Examines these folder names (each is actually the date the folder was created), does a numerical check against todays date, and stores the information for all folders which are more than 7 days old, and stores the information for all folders which are 7 days old or less. 3. Loops through all the folder names which are more than 7 days old, and creates/runs a Windows FTP job to delete each folder. 4. Loops through all the folder names which are 7 or less days old (I want to copy them to my computer for a second backup), and copies the file in each one to my computer. Actually, it first checks to see if the folder already exists on my computer. If so, it ignores copying that file; if not, it creates that folder, then copies the file over. This is also done via a Windows FTP job. Now I merely schedule this task to run every day on my computer, and presto... it all runs unattended for me, and does exactly what I want. Perfect. By the way.... if anyone would like a copy of my script, just PM me and I'll be happy to send it to you. Of course, it will be "bare bones"... you will have to insert/modify the code to accommodate your FTP ID and password, and your server backups folder structure, and your PC folder structure. But is is significantly commented so you should be able to do this quite easily. Cheers, |
Quote:
|
well installed, did force cron to run a backup worked like a charm
downloaded backup aswell. this might be a FAQ- if so, could u add it to your post for mySQL newbs like me. How do i restore the backup if i needed to, i dont right now, but would be nice to know when i get to the point where i need to restore ;) I got phpmyadmin acces to mySQL server at the webhost. ;) no rush.. PS: Installed ;) |
Paul, thanks for the hint.
At least now, I will only have 7 days stored. And I won't have to use the script I built. |
Thanks Paul M! I just installed and ran a 'run now" and it worked like a champ! Very nice! Marked as installed and nominated.
|
Quote:
the folders is empty :( |
where do i create the "backups" folder? Which directory?
|
Quote:
- - - - - - - - - Paul. Pleash help me, in my problem. Thanks, yonatan |
All times are GMT. The time now is 07:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|