nVault backup
I want to take back up my nvault file every 30days after and it will make a new file and store new data how can i done this. using nvault array for storing
|
Re: nVault backup
Make sure the vault is closed, copy the file, give it a new name (suffix a date for example) and delete the old one.
|
Re: nVault backup
With amxx, the only ways I can suggest is: calculate in seconds how much time left to 1st day of next month and set a task with the result of the calc as its time or compare the date in plugin_init. In task function duplicate the vault file. Or consider using mysql which would be the best and easiest way to backup.
You can also try (if you have access to linux vds) to schedule backup tasks. |
Re: nVault backup
I'm surprised there is no file copy native, at least I couldn't find it. If you use nvault correctly you should have no need to do backups. I have not had one become corrupt on me in years, and it only happened because I was using it incorrectly (not closing the vault, server crash, etc). I can write a file copy function for you.
|
Re: nVault backup
Thanks Bugsy got you properly :D
|
Re: nVault backup
Quote:
|
Re: nVault backup
PHP Code:
|
Re: nVault backup
cant got :/ how i will use this
|
Re: nVault backup
really ?
copy_file( "file you want to copy.txt" , "copied file name.txt" ) copy_file( "SomeSong.mp3" , "Copy of SomeSong.mp3" ) |
Re: nVault backup
got it now :D
|
| All times are GMT -4. The time now is 07:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.