sarfraznawaz2005 / backupmanager Goto Github PK
View Code? Open in Web Editor NEWSimple laravel package to backup/restore files and database.
License: MIT License
Simple laravel package to backup/restore files and database.
License: MIT License
If I need to store backup on another server how can i do it?
Hello,
would it be possible to share or indicate how to recover the zcat binaries. I have a Laragon and laravel 7 installation and in the binaries I don't have a zcat file but only a text file so I have the error:
'C: \laragon\bin\git\usr\bin\zcat' is not not recognized as an internal or external command, executable program, or batch file.
Thank you
PS: Sorry for my bad English.
Marmoul
I installed the package and every thing is fine, but when i run this command
php artisan backupmanager:create
these tow errors appear
Files Backup Failed
Database Backup Failed
Hi
files are constantly reported as bad health and not zipped.
I have:
'folders' => [
public_path()
],
in my config.
However what if I want to put a folder c:\xampp\html\myfolder? What would be the syntax?
Also if I want to add multiple databases in config, is it possible to do that too?
Many thanks,
Andre
Hi Sarfaraz,
I have used this package for my application. and it works like charm. Now I want to include notifications for mail and slack. How can I achieve that?
Regards
Rameez Makhdoomi
backupSuffix is stored in config, config file only get refresh if you optimize cache, so if you did not optimize laravel time to time, it will get the backupSuffix the last optimized date, so new backup will automatically delete the previous backup since it has the same name or suffix.
I run the backupmanage:create on cron every week and it only backup single file which is the latest.
My suggestion would be, change the backup_file_date_suffix in config file to only date format not the date() itself and in
// backupmanage.php config
'backup_file_date_suffix' => 'M-d-Y',
//BackupManager class
$this->backupSuffix = date(strtolower(config('backupmanager.backups.backup_file_date_suffix')));
Thank you.
Please update for Laravel 9 pls
Hi SarfrazNawaz,
Thanks for your quick response. But I have one query. Since I am testing this on my localhost. and i have 12GB RAM available. I believe this should work on the localhost.
Originally posted by @rameezmakh in #9 (comment)
hi i tried to use Middleware on backuproute but when i use then i can't get any thing it is look like it skip that part of request and use auth()->id , Auth::user()->id , $request->user->id() and all of them retunung null could please help me to fix it?
Illuminate\Database\QueryException
SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "DUPLICATE" LINE 1: ...ackup (id, verify_status) VALUES (1, 'backup') ON DUPLICATE ... ^ (SQL: INSERT INTO verifybackup (id, verify_status) VALUES (1, 'backup') ON DUPLICATE KEY UPDATE verify_status = 'backup' )
command
"mysqldump" is not recognized as an internal or external command,
program or batch file executable.
Thanks
I try use next code in function _construct:
if (!Auth::user()->role('Admin'))
$this->middleware('auth.admin');
But admin roles not works. Auth::user() is null. How I can use your package with admin users? I use spatie/laravel permissions & backpask. Thank you!
HI Sarfaraz,
This package works fine when the app is small in size. But when the size of the app increases says about 3 to 4 GBs or even more. It gives a fatal error. I even tried to increase the memory_limit in php.ini to -1. Still Gives me the same error. Kindly find the below attachment.
With Regards
Rameez Makhdoomi
Can't update to laravel 6.
Hi, I can't install this on laravel 8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.