PHP code example of numencode / wn-syncops-plugin

1. Go to this page and download the library: Download numencode/wn-syncops-plugin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

numencode / wn-syncops-plugin example snippets


'timestamp' => 'Y-m-d_H_i_s',

'database' => [
    'username' => 'dbuser',
    'password' => 'dbpass',
    'database' => 'my_database',
    'tables'   => [
        'users',
        'posts',
        'comments',
    ],
],

$schedule->command('syncops:db-push dropbox --folder=database')->dailyAt('02:00');

$schedule->command('syncops:media-push dropbox')->dailyAt('03:00');

$schedule->command('syncops:project-backup dropbox --folder=_backup')->weekly()->mondays()->at('2:00')

$schedule->command('syncops:project-backup dropbox --folder=files')->weeklyOn(1, '01:00');
$schedule->command('syncops:db-push dropbox --folder=database')->daily()->at('02:00');
$schedule->command('syncops:media-push dropbox')->daily()->at('03:00');
$schedule->command('syncops:project-push')->daily()->at('04:00');
bash
php artisan vendor:publish --tag=syncops-config
bash
php artisan syncops:db-pull {server} [options]
bash
php artisan syncops:db-push {cloud?} [options]
bash
php artisan syncops:media-pull {server} [options]
bash
php artisan syncops:media-push {cloud} [options]
bash
php artisan syncops:project-backup {cloud?} [options]
bash
php artisan syncops:project-deploy {server} [options]
bash
php artisan syncops:project-pull {server} [options]
bash
php artisan syncops:project-push [options]
bash
php artisan syncops:remote-artisan {server} {artisanCommand*}
bash
# Clear cache on the "production" server
php artisan syncops:remote-artisan production cache:clear

# Run migrations on the remote server
php artisan syncops:remote-artisan production migrate --force

# Show the remote environment
php artisan syncops:remote-artisan production env
bash
php artisan syncops:remote-health {server} [options]
bash
php artisan syncops:validate [options]