Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Native Backup excluding storage
#1
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
Reply
#2
Have you tried the 'External Backup' method?
Joe
TSolucio
Reply
#3
https://corebos.com/documentation/doku.p...ckupserver
Joe
TSolucio
Reply
#4
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?)
Reply
#5
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.
Joe
TSolucio
Reply
#6
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...
Reply
#7
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
Reply
#8
great!
Joe
TSolucio
Reply
#9
Thanks Joe :-)
Maybe this could also became as an GlobalVariable option?
Reply
#10
good idea. I'll put it on our endless to do list ;-)
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)