Cron Users

Hi,



I am new here so i hope that somebody can help me.



I want an csv export of all users every night in a SECURE folder.



Is that possible and how can i do that. Or are there other tips?



Thanks for the reply!



Kind regards,

Bas

Hi there,



You can write a custom php script for this issue. Just connect your database, make a special query, and store it into a CSV file :)



Regards,



Istvan

Hi Istvan,



Good tip! When that works i have to store this in a folder, how can i secure this? I dont want everybody to download my customers :-)



Regards,

Bas

[quote name=‘Bas D L’ timestamp=‘1359383212’ post=‘153825’]

Hi Istvan,



Good tip! When that works i have to store this in a folder, how can i secure this? I dont want everybody to download my customers :-)



Regards,

Bas

[/quote]



Hi,



you can restrict accessing via http. put this code into your .htaccess file in the directory you generate the csv file:


<br />
Order deny,allow<br />
Deny from all<br />

```<br />
You can read more details about Access Control in Apache, [url="http://httpd.apache.org/docs/2.2/howto/access.html"]here.[/url]

Hi,

Thanks for the good help! I will try it!

Regards,

Bas

[quote name='Bas D L' timestamp='1359447121' post='153895']

Hi,

Thanks for the good help! I will try it!

Regards,

Bas

[/quote]

You are welcome. Reputation points will be appreciated ;]

How? :-(

Click on the green arrow on the right.


You can also back up into a folder above the 'www' (public_html) root directory.