Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

No such file or directory exception while doing backup #124

Open
fharold opened this issue Feb 20, 2017 · 0 comments
Open

No such file or directory exception while doing backup #124

fharold opened this issue Feb 20, 2017 · 0 comments

Comments

@fharold
Copy link

fharold commented Feb 20, 2017

Hi,

I am using your bundle successfully for a few month now but I only used it on my debug server.
But I do not know why I can't do a backup on my production server as I have this exception occuring.
My environment is the same on the debug and production server (Debian 7), using php 5.6.24 and Symfony 2.8 LTS

Do you know how can I fix this ? :(
Please do not hesitate to ask me more details as it is my very first issue on a public repo.
Thanks for everything,

Harold

The logs are :

[2017-02-20 10:58:14] app.CRITICAL: [dizda-backup] Unexpected exception. {"exception":"[object] (UnexpectedValueException(code: 0): RecursiveDirectoryIterator::__construct(/var/www/html/api.hipok.com/app/..//dev): failed to open dir: No such file or directory at /var/www/html/api.hipok.com/vendor/symfony/symfony/src/Symfony/Component/Filesystem/Filesystem.php:435)"} 
Something went terribly wrong. We could not create a backup. Read your log files to see what caused this error.

The configuration :

    # By default backup files will have your servers hostname as prefix
    # such as: hostname_2014-01-01_21-08-39.tar
    output_file_prefix: api_hipok
    timeout: 300
    processor:
        type: tar # Required: tar|zip|7z
        options:
            compression_ratio: 6
            password: ******
            # Split into many files of `split_size` bytes
            split:
                enable: false # Default false
                split_size: 1000 # Make each zip files no larger than "split_size" in bytes
                storages: [ Dropbox ] # Which cloud storages will upload split files
    folders: [ web ]
    cloud_storages:
        # Using dropbox via official API. You need to add "dropbox/dropbox-sdk": "1.1.*" in your composer.json file
        dropbox_sdk:
            remote_path: /api.hipok.com # Required. Path to upload files (where the root '/' will be application folder)
            access_token: MYACCESSTOKEN # Required. Access token provided by DropBox to authenticate your application. You can follow instructions at https://www.dropbox.com/developers/core/start/php

    databases:
        mysql:
            all_databases: false # Only required when no database is set
            database: '%database_name%'          # Required if all_databases is false
            db_host: '%database_host%'   # This, and following is not required and if not specified, the bundle will take ORM configuration in parameters.yml
            db_port: '%database_port%'           # Default 3306
            db_user: '%database_user%'
            db_password: '%database_password%'```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant