CoreBOSBB
Native Backup excluding storage - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: Native Backup excluding storage (/showthread.php?tid=2076)



Native Backup excluding storage - Svemar - 01-14-2021

Hi,
We have a system witch runs more than for 10 years, so a lot of attached documents are in a Storage folder and most of them are not changed for a long time.
Backup module tries to combine database and storage in a one BIG zip file, what takes a lot of time and resources and ends by error (because of too much Storage size).
Would it be possible to separate Storage backup from a Database backup?
Maybe is it possible to use incremental backup for Storage instead of Complete backup?

Thanks


RE: Native Backup excluding storage - joebordes - 01-14-2021

Have you tried the 'External Backup' method?


RE: Native Backup excluding storage - joebordes - 01-14-2021

https://corebos.com/documentation/doku.php?id=en:adminmanual:backupserver


RE: Native Backup excluding storage - Svemar - 01-14-2021

No, I havent tried, as for the moment we do not have FTP enabled, yet.
But even we would have, is FTP abckup option is similar to incremental backup? (means only the changed files to be backuped?)


RE: Native Backup excluding storage - joebordes - 01-14-2021

It is not FTP, it is the same backup as Native but using operating system tools

The Native backup creates the .zip using PHP which can't handle that size of documents. The External backup calls the operating system mysqldump and zip commands, so the operation is done by the operating system, not PHP, which permits reaching much higher volumes of data at the expense of having those tools available in the operating system (which is very common).

The FTP option comes after the .zip has been created, one way or another.


RE: Native Backup excluding storage - Svemar - 01-14-2021

OK, will try to use Externa,
But maybe we can separate databse and Storage?
Could the database to be backuped individually and the Storage backuped the same time by using Rsync at the same time? OK that solution maybe is not for hosted environment, but...


RE: Native Backup excluding storage - Svemar - 01-21-2021

Hi,
I have tried to Enable External Backup Scheduled task and then big ZIP (9GB) with database+storage+test+user_privileges subfolders was generated.

What I would like to achieve, is to exclude Storage directory to be backuped.
someting like Guido1982 was trying to achieve here:
https://discussions.corebos.org/showthread.php?tid=316

So follwing Joes advice I have commented out the following line:
$archive->copyDirectoryFromDisk('storage/'); in /crn/modules/VitegerBackup/ExternalBackup.service

Thanks


RE: Native Backup excluding storage - joebordes - 01-21-2021

great!


RE: Native Backup excluding storage - Svemar - 01-21-2021

Thanks Joe :-)
Maybe this could also became as an GlobalVariable option?


RE: Native Backup excluding storage - joebordes - 01-23-2021

good idea. I'll put it on our endless to do list ;-)