Giter Site home page Giter Site logo

oc-backup-plugin's People

Contributors

adrienadb avatar chvuagniaux avatar gergo85 avatar panakour avatar tobias-kuendig avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

oc-backup-plugin's Issues

Schedule backup

Hi,

First, really thanks for this plugin.

Second, i don't know where to post this, so i put it here and i hope that you will tell me what to do exactly if there is something to do. :)

I was needed to have this plugin creating backup automatically and twice a day. So i have register a schedule into the plugin.php file. But i think for the next version we can improve this feature to make this as a setting with more parameters like :

  • when the user wants to create backup,
  • what backup the user need to create automatically.

So, if someone need to automate this plugin, just add this code into plugin.php and be sure to have configure your cron jobs for octobercms like it is said into octobercms docs.

PanaKour\Backup\plugin.php

public function registerSchedule($schedule) {
        $schedule->call(function () {
            $records = Backups::createBackup(['--disable-notifications' => true]);
        })->twiceDaily(1, 12);
    }

and change the function createBackup() to be static

PanaKour\Backup\Controllers\Backups.php:36

public static function createBackup($artisanArguments)

Hope it can help someone :)

Backup folder issue

When I created a backup, the file is in the "October-CMS" folder instead of "panakour-backup".
I use October build 430.

Another backup folder issue

Whenever I try to backup anything (files, database or complete) I get the following error:
Symfony\Component\Debug\Exception\FatalThrowableError: Parse error: syntax error, unexpected '?' in /octobercms/public/plugins/panakour/backup/vendor/spatie/laravel-backup/src/BackupDestination/BackupDestination.php:138
Any idea why? I chose Local for destination.

Restore procedure suggestions?

Hi,

fortunately, I had no need for full website restore... yet :D What would be the best procedure to perform a restore?

Regard,
Darjan

Error - start plugin

I have a problem when i want start a plugin. I see this text:

We're very sorry, but something went wrong and the page cannot be displayed due to a messy error.

Don't worry, our specially programmed robotic workers have been deployed to clean things up.

Error code: 500

Feature Request: Retention Period

It would be great if we could specify a retention period (or number of generations) for backups, so thy get purged automatically after a certain period of time.

Backup error

On last update and click App backup and db backup

Call to undefined method

Hi,
I'm using this module for the first time and I'm getting the following error when I click on 'Create backup':

"Call to undefined method Symfony\Component\Process\Process::fromShellCommandline()" on line 186 of /Users/sahaj/Sites/tailwindui/plugins/panakour/backup/vendor/spatie/db-dumper/src/Databases/MySql.php

I'm on mac and have mysqldump installed.

Thanks for help.

Scoped App (App Folder) access?

Plugin does not work with the new API access, right?

EDIT:
I didn't set the Permissions :D Dang... Mondays are hard! ... So here is what I found out during my enlightment session on Dropbox Console...

  1. Create App
  2. Set permissions (files.metadata.write, files.metadata.read, files.content.write, files.content.read)
  3. Set Access token expiration to No Expiration
  4. Generate access token

Works! :D

Maybe this should be written to the Readme... just to be on the safe side.

count(): Parameter error

Hello, when clicking on the top menu icon, I get the following error with the las october installation :

count(): Parameter must be an array or an object that implements Countable
/var/www/clients/client1/web3/web/plugins/laminsanneh/flexicontact/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 67

What could it be ?

Error 404 when downloading archive files

When pressing archive download button it result in an error 404.

domain.tld/storage/app/panakour-backup/2018-02-07-12-33-31.zip
is blocked by October's default .htaccess file on apache servers.

    ##
    ## White listed folders
    ##
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} !/.well-known/*
    RewriteCond %{REQUEST_FILENAME} !/storage/app/uploads/.*
    RewriteCond %{REQUEST_FILENAME} !/storage/app/media/.*
    RewriteCond %{REQUEST_FILENAME} !/storage/temp/public/.*
    RewriteCond %{REQUEST_FILENAME} !/themes/.*/(assets|resources)/.*
    RewriteCond %{REQUEST_FILENAME} !/plugins/.*/(assets|resources)/.*
    RewriteCond %{REQUEST_FILENAME} !/modules/.*/(assets|resources)/.*
    RewriteRule !^index.php index.php [L,NC]

Temporary workaround :

  • add in October defaut .htaccess file at white listed folders section, the following line :
    RewriteCond %{REQUEST_FILENAME} !/storage/app/panakour-backup/.*

Update need :

  • change the archives destination folder for one in white listed folders

Not working

For me, it simply does not create any backup. At first it was complaining I didn't specify a MySQL port, then I added one and now it says it has created the backup, but in reality, nothing happens. Not sure how to debug this so any help is appreciated.

I'm running PHP 7.1.12 on Apache 2.4. Permissions are ok.

Thanks.

PHP 7.1 is required

The currently shipped laravel-backup version makes use of nullable return types.

    // spatie/laravel-backup/src/BackupDestination/BackupDestination.php:138
    public function newestBackup(): ?Backup
    {
        return $this->backups()->newest();
    }

The minimum plugin requirements in the README and the Marketplace should be updated to require PHP 7.1

Parse error: syntax error, unexpected '?'

Hi
I tried to install the backup plugin but got this error : Parse error: syntax error, unexpected '?'

Going to tell the steps:

  1. Add the plugin to the project via october cms website;
  2. Login in the production website and install the plugin;
  3. Try to click any kind of update and didn't work and always gave me this error message :
    Parse error: syntax error, unexpected '?'

php 7.4.3

On php7.3 it works fine. But on 7.4 its not working on my system. When I click Backup in the control panel, an error occurs
image

after upgrade to 1.0.8 got this error on all sites

after upgrade to 1.0.8 got this error on all sites
"Parse error: syntax error, unexpected '?'" on line 138 of *****/www/html/plugins/panakour/backup/vendor/spatie/laravel-backup/src/BackupDestination/BackupDestination.php

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.