GithubHelp home page GithubHelp logo

sarfraznawaz2005 / backupmanager Goto Github PK

View Code? Open in Web Editor NEW
28.0 6.0 6.0 72 KB

Simple laravel package to backup/restore files and database.

License: MIT License

PHP 67.59% Blade 32.41%
laravel package backup restore-database database php

backupmanager's People

Contributors

jeffgepiga avatar sarfraznawaz2005 avatar sarfrazonsupport avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

backupmanager's Issues

binaries zcat

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

Error:Files Backup Failed

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

Files and multiple databases

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

Bug - $this->backupSuffix

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.

Hi SarfrazNawaz,

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)

middleware

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?

How to Backup database Postgresql?

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' )

How work with admin users

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!

VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command. Symfony\Component\Debug\Exception\FatalErrorException : Out of memory (allocated 524288000) (tried to allocate 509607960 bytes)

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.

FatalError

With Regards
Rameez Makhdoomi

Error 500

on app deployment when i go to backup link i get this error
image

can you guess where is the problem?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.