HM\BackUpWordPress\Backup::run PHP Method

run() public method

public run ( )
    public function run()
    {
        Path::get_instance()->cleanup();
        if ('file' !== $this->type) {
            $this->backup_database();
        }
        if ('database' !== $this->type) {
            $this->backup_files();
        }
        Path::get_instance()->cleanup();
    }