Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[Plugin Tiers][Sujet Principal] CloudSync Pro

Pour échanger sur les plugins classés en catégorie "Communication"
Yoan
Timide
Messages : 28
Inscription : 11 juin 2017, 13:31

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par Yoan » 02 nov. 2017, 17:40

thanaus a écrit :
02 nov. 2017, 17:29
@Yoan

Peux-tu être plus précis pourquoi la commande liste ne prendrait pas en compte le répertoire distant ?
En effet, elle s'est normalement bien exécuté vu que tu as pu voir les fichiers sur ton dropbox.
Ce que je voulais dire c'est que dans le log je récupère la liste de tous mes fichiers que j'indique quelquechose dans le champ destination ou pas
thanaus a écrit :
02 nov. 2017, 17:29
Tu es la deuxième personne a ne pouvoir voir le contenu d’exécution des commandes par le biais de l'interface Jeedom.
Je n'ai pas pour ma part ce problème. Utilises-tu l'utilisateur admin ou un autre utilisateur que tu aurais créé ?
J'utilise mon seul utilisateur qui est admin, par contre je suis sous debian, peut-être qu'il n'aime pas les extensions avec des # ?
thanaus a écrit :
02 nov. 2017, 17:29
Peux-tu exécuter les commandes suivantes :
J'ai aussi mis ls -al /var/www/html/backup

Code : Tout sélectionner

yj@odroid-jessie64:~$ ls -al /var/www/html

drwxrwxr-x 16 www-data www-data   4096 nov.   2 16:30 .
drwxr-xr-x  3 www-data root       4096 mai   20 19:08 ..
drwxrwxr-x 37 www-data www-data   4096 sept. 26 21:03 3rdparty
-rw-r--r--  1 www-data www-data   7094 oct.   8 09:40 apple-touch-icon.png
-rw-r--r--  1 www-data www-data   7094 oct.   8 09:40 apple-touch-icon-precomposed.png
drwxrwxr-x  2 www-data www-data   4096 nov.   2 04:54 backup
-rwxrwxr-x  1 www-data www-data  40949 nov.   2 16:30 cache.tar.gz
-rw-r--r--  1 www-data www-data    639 oct.   8 09:40 composer.json
-rw-r--r--  1 www-data www-data  43517 oct.   8 09:40 composer.lock
-rw-r--r--  1 www-data www-data  35059 oct.   8 09:40 COPYING
drwxrwxr-x 15 www-data www-data   4096 mai   20 19:09 core
drwxrwxr-x  2 www-data www-data   4096 juil. 13 06:34 data
-rwxrwxr-x  1 www-data www-data 333410 nov.   2 04:54 DB_backup.sql
drwxrwxr-x  7 www-data www-data   4096 mai   20 19:09 desktop
drwxrwxr-x 10 www-data www-data   4096 mai   20 19:09 doc
-rw-r--r--  1 www-data www-data   1094 oct.   8 09:40 Dockerfile
-rw-r--r--  1 www-data www-data   7094 oct.   8 09:40 favicon.ico
-rw-r--r--  1 www-data www-data    169 oct.   8 09:39 .gitignore
-rw-r--r--  1 www-data www-data   1426 oct.   8 09:40 health.sh
-rw-r--r--  1 www-data www-data      2 oct.   8 09:40 here.html
-rw-r--r--  1 www-data www-data   2434 oct.   8 09:39 .htaccess
-rw-r--r--  1 www-data www-data   3517 oct.   8 09:40 index.php
drwxrwxr-x  4 www-data www-data   4096 oct.   8 09:40 install
-rw-r--r--  1 www-data www-data  18047 oct.   8 09:40 LICENSE
drwxrwxr-x  3 www-data www-data   4096 nov.   2 13:59 log
-rw-r--r--  1 www-data www-data    891 oct.   8 09:40 manifest.json
-rw-r--r--  1 www-data www-data    891 oct.   8 09:40 manifest.webmanifest
drwxrwxr-x  6 www-data www-data   4096 sept. 26 21:03 mobile
-rw-r--r--  1 www-data www-data   9228 oct.   8 09:40 mobile.manifest.php
-rw-r--r--  1 www-data www-data    158 oct.   8 09:40 phpunit.xml.dist
drwxrwxr-x 16 www-data www-data   4096 nov.   2 14:10 plugins
-rw-r--r--  1 www-data www-data   1062 oct.   8 09:40 README.md
-rw-r--r--  1 www-data www-data     25 oct.   8 09:40 robots.txt
drwxrwxr-x  2 www-data www-data   4096 juil. 13 06:34 script
-rw-r--r--  1 www-data www-data   5001 oct.   8 09:40 sick.php
drwxrwxr-x  5 www-data www-data   4096 mai   20 19:09 tests
drwxrwxr-x  3 www-data www-data   4096 juil. 13 06:34 tmp
-rw-r--r--  1 www-data www-data   1842 oct.   8 09:39 .travis.yml
drwxrwxr-x 22 www-data www-data   4096 juil. 13 06:34 vendor

yj@odroid-jessie64:~$ ls -al /var/www/html/log
total 760
drwxrwxr-x  3 www-data www-data   4096 nov.   2 13:59 .
drwxrwxr-x 16 www-data www-data   4096 nov.   2 16:30 ..
-rwxrwxrwx  1 www-data www-data    821 nov.   1 23:00 blea
-rwxrwxrwx  1 www-data www-data  18882 nov.   1 23:00 blea_dependancy
-rwxrwxrwx  1 www-data www-data   2628 nov.   1 23:00 blea_local
-rwxrwxrwx  1 www-data www-data  45618 nov.   2 11:07 cloudsyncpro
-rw-r--r--  1 www-data www-data    412 nov.   2 11:07 cloudsyncpro.#188
-rw-r--r--  1 www-data www-data 176630 nov.   2 11:03 cloudsyncpro.#198
-rwxrwxrwx  1 www-data www-data   9724 nov.   1 23:00 cloudsyncpro_update
-rwxrwxrwx  1 www-data www-data   4064 nov.   1 23:00 core
-rwxrwxrwx  1 www-data www-data   4624 nov.   2 16:37 cron_execution
-rwxrwxrwx  1 www-data www-data      1 nov.   1 23:00 empty
-rwxrwxrwx  1 www-data www-data    756 nov.   2 11:24 enedis_linky
-rw-r--r--  1 www-data www-data     30 oct.   8 09:40 .htaccess
-rwxrwxrwx  1 www-data www-data  34748 nov.   1 23:00 http.error
-rwxrwxrwx  1 www-data www-data     75 nov.   1 23:00 JPI
-rwxrwxrwx  1 www-data www-data  66000 nov.   1 23:00 network
-rwxrwxrwx  1 www-data www-data  18797 nov.   1 23:00 networks_update
-rwxrwxrwx  1 www-data www-data  40979 nov.   1 23:00 openzwave
-rwxrwxrwx  1 www-data www-data    992 nov.   1 23:00 openzwaved
-rwxrwxrwx  1 www-data www-data    559 nov.   1 23:00 openzwave_syncconf
-rwxrwxrwx  1 www-data www-data  26548 nov.   1 23:00 openzwave_update
-rwxrwxrwx  1 www-data www-data     82 nov.   1 23:00 plugin
-rwxrwxrwx  1 www-data www-data 178182 nov.   2 16:15 rfplayer
-rwxrwxrwx  1 www-data www-data     95 nov.   1 23:00 RTSP_delete
-rwxrwxrwx  1 www-data www-data  13930 nov.   1 23:00 RTSP_dep
-rwxrwxrwx  1 www-data www-data    341 nov.   1 23:00 RTSP_followLinks
-rwxrwxrwx  1 www-data www-data     53 nov.   1 23:00 RTSP_log
-rwxrwxrwx  1 www-data www-data    145 nov.   1 23:00 RTSP_status
-rwxrwxrwx  1 www-data www-data    920 nov.   1 23:00 scenario
-rwxrwxrwx  1 www-data www-data     36 nov.   1 23:00 scenario_execution
drwxrwxr-x  2 www-data www-data   4096 mai   25 20:04 scenarioLog
-rwxrwxrwx  1 www-data www-data   4388 nov.   1 23:00 script
-rwxrwxrwx  1 www-data www-data    724 nov.   1 23:00 starting
-rw-r--r--  1 www-data www-data  10459 nov.   2 16:35 tradfri_dep
-rwxrwxrwx  1 www-data www-data   2843 nov.   2 14:10 update

yj@odroid-jessie64:~$ ls -al /var/www/html/backup
total 327600
drwxrwxr-x  2 www-data www-data     4096 nov.   2 04:54 .
drwxrwxr-x 16 www-data www-data     4096 nov.   2 16:30 ..
-rw-r--r--  1 www-data www-data 78812918 oct.  30 04:54 backup-TanardDom-3.1.7-2017-10-30-05h54.tar.gz
-rw-r--r--  1 www-data www-data 85539473 oct.  31 04:54 backup-TanardDom-3.1.7-2017-10-31-05h54.tar.gz
-rw-r--r--  1 www-data www-data 85539518 nov.   1 04:54 backup-TanardDom-3.1.7-2017-11-01-05h54.tar.gz
-rw-r--r--  1 www-data www-data 85541256 nov.   2 04:54 backup-TanardDom-3.1.7-2017-11-02-05h54.tar.gz
Merci de ton support ultra-rapide !

Y.

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par thanaus » 02 nov. 2017, 18:05

@Yoan

1/ Je ne reproduis pas ton problème. Pour information, cette commande est récursive.
J'ai indiqué / dans le répertoire destination et il m'a retourné tout le contenu de mon Dropbox
J'ai indiqué un sous-répertoire /test/cloudsyncpro/core/ajax et il m'a retourné uniquement le contenu de ce répertoire.
Peux-tu me faire une capture d'écran de ta commande ?

2/ Aucun souci avec les extensions comportant le caractère # et je suis aussi sous Debian.
Nous avons les mêmes droits pour le répertoire 'log' mais différent pour les fichiers des logs des commandes.
Dans mon cas, j'ai les droits suivants :

Code : Tout sélectionner

-rwxrwxrwx  1 www-data www-data     353 Nov  2 11:56 cloudsyncpro.#80
En faisant un test, j'ai l'impression que jeedom positionne tous les droits à la lecture du fichier. En effet, j'avais positionné les droits 644 sur mon fichier de log de la commande (pour être identique à toi) et les droits se sont retrouvés à 777 après lecture du fichier par l'interface.
As-tu rencontré des problèmes de droits d'accès sous Jeedom ?
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

Panama
Timide
Messages : 96
Inscription : 01 janv. 2016, 18:49
Localisation : DIjon

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par Panama » 06 nov. 2017, 21:41

Bonsoir à tous,
Je tente de faire fonctionner CloudSync Pro avec le port 51294 mais ça ne fonctionne pas (aucun problème avec le port 21).
Est-ce possible d'utiliser d'autres ports que le 21 et 22 ?

Merci pour vos réponses !

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par thanaus » 06 nov. 2017, 22:19

@Panama

Que te donnes la commande suivante ou [IP] est à remplacer par l'adresse IP de ton serveur FTP ?

Code : Tout sélectionner

telnet [IP] 51294
[EDIT] j’espère que tu as bien entendu configuré ton serveur FTP pour écouter sur ce port
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

Yoan
Timide
Messages : 28
Inscription : 11 juin 2017, 13:31

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par Yoan » 07 nov. 2017, 00:07

thanaus a écrit :
02 nov. 2017, 18:05
@Yoan

1/ Je ne reproduis pas ton problème.
Sûrement une erreur de ma part, j'ai retesté et ça fonctionne comme prévu
2/
As-tu rencontré des problèmes de droits d'accès sous Jeedom ?
Je crois me souvenir que effectivement j'avais eu lors de l'installation, la nécessité de modifier à la main les droits sur le répertoire tmp de jeedom, c'est peut-être lié.

Par contre, ma commande liste fonctionne bien mais pas celle de backup, serait-ce aussi lié à une question de droits ?

Merci de tes lumières,

Y.

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par thanaus » 07 nov. 2017, 11:00

@Yoan

Je viens de te contacter en MP car ce sera plus simple pour tenter de comprendre le comment du pourquoi...
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

Avatar de l’utilisateur
tom74
Actif
Messages : 1798
Inscription : 16 juil. 2014, 09:16
Localisation : Annecy (74)

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par tom74 » 07 nov. 2017, 11:44

Salut,

Je viens de m'apercevoir que depuis le 26/10, jour où on à résolu mon bug dans lancement multiple de commande, l'envoi du backup sur Dropbox ne fonctionne plus...
Voici le log général (toujours rien dans le log de la commande) :

Code : Tout sélectionner

[2017-11-07 11:38:02][DEBUG] : preRemove:: this:cloudsyncpro::__set_state(array(    'id' => '22',    'name' => 'Test',    'logicalId' => '',    'object_id' => NULL,    'eqType_name' => 'cloudsyncpro',    'eqReal_id' => NULL,    'isVisible' => '0',    'isEnable' => '1',    'configuration' => '{"createtime":"2017-10-25 08:42:03","comment":"","type":"dropbox","param1":"xxxxxxx","updatetime":"2017-10-25 08:43:53"}',    'timeout' => NULL,    'category' => '{"heating":"0","security":"0","energy":"0","light":"0","automatism":"0","multimedia":"0","default":"0"}',    'display' => '{"showObjectNameOnview":1,"showObjectNameOndview":1,"showObjectNameOnmview":1,"height":"auto","width":"auto","layout::dashboard::table::parameters":{"center":1,"styletd":"padding:3px;"},"layout::mobile::table::parameters":{"center":1,"styletd":"padding:3px;"},"layout::dashboard::table::cmd::162::line":1,"layout::dashboard::table::cmd::162::column":1,"layout::mobile::table::cmd::162::line":1,"layout::mobile::table::cmd::162::column":1}',    'order' => '0',    'comment' => NULL,    '_debug' => false,    '_object' => NULL,    '_needRefreshWidget' => false,    '_timeoutUpdated' => false,    '_batteryUpdated' => false,    '_cmds' =>    array (   ),    '_templateArray' =>    array (   ), ))
[2017-11-07 11:38:02][DEBUG] : loadConfigFile::
[2017-11-07 11:38:02][DEBUG] : loadConfigFile:: rclone.conf:array (   21 =>    array (     'type' => 'dropbox',     'app_key' => '',     'app_secret' => '',     'token' => '{"access_token":"xxxxxxx-S2yg6","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}',   ),   22 =>    array (     'type' => 'dropbox',     'app_key' => '',     'app_secret' => '',     'token' => '{"access_token":"xxxxxxxxx","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}',   ), )
[2017-11-07 11:38:02][DEBUG] : saveConfigFile:: array:array (   21 =>    array (     'type' => 'dropbox',     'app_key' => '',     'app_secret' => '',     'token' => '{"access_token":"xxxxxxxxxxx-S2yg6","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}',   ), )
[2017-11-07 11:38:02][DEBUG] : saveConfigFile:: content:'[21] type = dropbox app_key =  app_secret =  token = {"access_token":"xxxxxxxx-S2yg6","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}  '
[2017-11-07 11:38:08][DEBUG] : execute:: options:NULL
[2017-11-07 11:38:08][DEBUG] : execute:: this:cloudsyncproCmd::__set_state(array(    'id' => '161',    'logicalId' => NULL,    'eqType' => 'cloudsyncpro',    'name' => 'Backup',    'order' => '0',    'type' => 'action',    'subType' => 'other',    'eqLogic_id' => '21',    'isHistorized' => '1',    'unite' => '',    'configuration' => '{"command":"copy","source":"\/var\/www\/html\/backup","destination":"\/backup","include":"","exclude":"","minage":"7D","maxage":""}',    'template' => NULL,    'display' => '{"icon":"","invertBinary":"0"}',    'html' => NULL,    'value' => NULL,    'isVisible' => '1',    'alert' => NULL,    '_collectDate' => '',    '_valueDate' => '',    '_eqLogic' =>    cloudsyncpro::__set_state(array(      'id' => '21',      'name' => 'Cloudsync',      'logicalId' => '',      'object_id' => '3',      'eqType_name' => 'cloudsyncpro',      'eqReal_id' => NULL,      'isVisible' => '1',      'isEnable' => '1',      'configuration' => '{"createtime":"2017-10-25 08:14:32","comment":"","type":"dropbox","param1":"xxxxx-S2yg6","updatetime":"2017-10-28 12:27:18"}',      'timeout' => NULL,      'category' => '{"heating":"0","security":"0","energy":"0","light":"0","automatism":"1","multimedia":"0","default":"0"}',      'display' => '{"showObjectNameOnview":1,"showObjectNameOndview":1,"showObjectNameOnmview":1,"height":"auto","width":"auto","layout::dashboard::table::parameters":{"center":1,"styletd":"padding:3px;"},"layout::mobile::table::parameters":{"center":1,"styletd":"padding:3px;"},"layout::dashboard::table::cmd::161::line":1,"layout::dashboard::table::cmd::161::column":1,"layout::mobile::table::cmd::161::line":1,"layout::mobile::table::cmd::161::column":1}',      'order' => '0',      'comment' => NULL,      '_debug' => false,      '_object' =>      object::__set_state(array(        'id' => '3',        'name' => 'Maintenance',        'father_id' => NULL,        'isVisible' => '1',        'position' => NULL,        'configuration' => '{"parentNumber":0,"summary::global::security":"0","summary::global::motion":"0","summary::global::door":"0","summary::global::windows":"0","summary::global::shutter":"0","summary::global::light":"0","summary::global::outlet":"0","summary::global::temperature":"0","summary::global::humidity":"0","summary::global::luminosity":"0","summary::global::power":"0","summary::hide::desktop::security":"0","summary::hide::desktop::motion":"0","summary::hide::desktop::door":"0","summary::hide::desktop::windows":"0","summary::hide::desktop::shutter":"0","summary::hide::desktop::light":"0","summary::hide::desktop::outlet":"0","summary::hide::desktop::temperature":"0","summary::hide::desktop::humidity":"0","summary::hide::desktop::luminosity":"0","summary::hide::desktop::power":"0","summary::hide::mobile::security":"0","summary::hide::mobile::motion":"0","summary::hide::mobile::door":"0","summary::hide::mobile::windows":"0","summary::hide::mobile::shutter":"0","summary::hide::mobile::light":"0","summary::hide::mobile::outlet":"0","summary::hide::mobile::temperature":"0","summary::hide::mobile::humidity":"0","summary::hide::mobile::luminosity":"0","summary::hide::mobile::power":"0","summary":{"security":[],"motion":[],"door":[],"windows":[],"shutter":[],"light":[],"outlet":[],"temperature":[],"humidity":[],"luminosity":[],"power":[]},"tagColor":"#000000","tagTextColor":"#FFFFFF","desktop::summaryTextColor":"","mobile::summaryTextColor":""}',        'display' => '{"icon":"<i class=\"fa fa-asterisk\"><\/i>","tagColor":"#8000ff","tagTextColor":"#ffffff"}',     )),      '_needRefreshWidget' => false,      '_timeoutUpdated' => false,      '_batteryUpdated' => false,      '_cmds' =>      array (     ),      '_templateArray' =>      array (     ),   )),    '_needRefreshWidget' => NULL,    '_needRefreshAlert' => NULL,    '_templateArray' =>    array (   ), ))
[2017-11-07 11:38:08][DEBUG] : execute:: this:array (   'command' => 'copy',   'source' => '/var/www/html/backup',   'destination' => '/backup',   'include' => '',   'exclude' => '',   'minage' => '7D',   'maxage' => '', )
[2017-11-07 11:38:08][ALERT] : Starting task (Cloudsync/Backup #161)
[2017-11-07 11:38:08][DEBUG] : execute:: pid:'12458' rclone:'/var/www/html/plugins/cloudsyncpro/3rparty/rclone-v1.37-linux-arm64/rclone -v --log-file /var/www/html/core/class/../../log/cloudsyncpro.#161 --config /var/www/html/plugins/cloudsyncpro/core/config/rclone.conf --min-age 7D copy \'/var/www/html/backup\' 21:\'/backup\''
[2017-11-07 11:38:18][DEBUG] : execute:: statistics:array (   'Errors' => NULL,   'Checks' => NULL,   'Transferred' => NULL,   'Elapsed time' => NULL,   'Bytes Loaded (Speed)' => NULL, )
[2017-11-07 11:38:18][ERROR] : Erreur execution de la commande [Maintenance][Cloudsync][Backup] : Task finished on Error (Cloudsync/Backup #161)
Une idée?

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par thanaus » 07 nov. 2017, 12:03

@tom74

L'option --min-age doit être 7d et non 7D.
Si tu remplaces la majuscule par la minuscule, tout devrait fonctionner.

Je serais plus rigoureux dans la prochaine version sur ce que rentre l'utilisateur en paramètre.
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

Yoan
Timide
Messages : 28
Inscription : 11 juin 2017, 13:31

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par Yoan » 07 nov. 2017, 13:18

thanaus a écrit :
07 nov. 2017, 11:00
@Yoan

Je viens de te contacter en MP car ce sera plus simple pour tenter de comprendre le comment du pourquoi...
Bon thanaus a trouvé, j'avais laissé un espace en début de chemin de répertoire... Attention car c'est peu visible et ça fait bugger rclone

Merci encore,

Y.

Avatar de l’utilisateur
tom74
Actif
Messages : 1798
Inscription : 16 juil. 2014, 09:16
Localisation : Annecy (74)

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par tom74 » 07 nov. 2017, 17:43

thanaus a écrit :
07 nov. 2017, 12:03
@tom74

L'option --min-age doit être 7d et non 7D.
Si tu remplaces la majuscule par la minuscule, tout devrait fonctionner.

Je serais plus rigoureux dans la prochaine version sur ce que rentre l'utilisateur en paramètre.
J'ai mis le "d" en minuscule, du coup la tâche est bien exécutée mais rien n'est envoyé vers dropbox...

Code : Tout sélectionner

[2017-11-07 17:39:55][DEBUG] : execute:: options:NULL
[2017-11-07 17:39:55][DEBUG] : execute:: this:cloudsyncproCmd::__set_state(array(    'id' => '161',    'logicalId' => NULL,    'eqType' => 'cloudsyncpro',    'name' => 'Backup',    'order' => '0',    'type' => 'action',    'subType' => 'other',    'eqLogic_id' => '21',    'isHistorized' => '1',    'unite' => '',    'configuration' => '{"command":"copy","source":"\/var\/www\/html\/backup","destination":"\/backup","include":"","exclude":"","minage":"7d","maxage":""}',    'template' => NULL,    'display' => '{"icon":"","invertBinary":"0"}',    'html' => NULL,    'value' => NULL,    'isVisible' => '1',    'alert' => NULL,    '_collectDate' => '',    '_valueDate' => '',    '_eqLogic' =>    cloudsyncpro::__set_state(array(      'id' => '21',      'name' => 'Cloudsync',      'logicalId' => '',      'object_id' => '3',      'eqType_name' => 'cloudsyncpro',      'eqReal_id' => NULL,      'isVisible' => '1',      'isEnable' => '1',      'configuration' => '{"createtime":"2017-10-25 08:14:32","comment":"","type":"dropbox","param1":"XXXXXXXXXXXXXXX","updatetime":"2017-11-07 13:05:30"}',      'timeout' => NULL,      'category' => '{"heating":"0","security":"0","energy":"0","light":"0","automatism":"1","multimedia":"0","default":"0"}',      'display' => '{"showObjectNameOnview":1,"showObjectNameOndview":1,"showObjectNameOnmview":1,"height":"auto","width":"auto","layout::dashboard::table::parameters":{"center":1,"styletd":"padding:3px;"},"layout::mobile::table::parameters":{"center":1,"styletd":"padding:3px;"},"layout::dashboard::table::cmd::161::line":1,"layout::dashboard::table::cmd::161::column":1,"layout::mobile::table::cmd::161::line":1,"layout::mobile::table::cmd::161::column":1}',      'order' => '0',      'comment' => NULL,      '_debug' => false,      '_object' =>      object::__set_state(array(        'id' => '3',        'name' => 'Maintenance',        'father_id' => NULL,        'isVisible' => '1',        'position' => NULL,        'configuration' => '{"parentNumber":0,"summary::global::security":"0","summary::global::motion":"0","summary::global::door":"0","summary::global::windows":"0","summary::global::shutter":"0","summary::global::light":"0","summary::global::outlet":"0","summary::global::temperature":"0","summary::global::humidity":"0","summary::global::luminosity":"0","summary::global::power":"0","summary::hide::desktop::security":"0","summary::hide::desktop::motion":"0","summary::hide::desktop::door":"0","summary::hide::desktop::windows":"0","summary::hide::desktop::shutter":"0","summary::hide::desktop::light":"0","summary::hide::desktop::outlet":"0","summary::hide::desktop::temperature":"0","summary::hide::desktop::humidity":"0","summary::hide::desktop::luminosity":"0","summary::hide::desktop::power":"0","summary::hide::mobile::security":"0","summary::hide::mobile::motion":"0","summary::hide::mobile::door":"0","summary::hide::mobile::windows":"0","summary::hide::mobile::shutter":"0","summary::hide::mobile::light":"0","summary::hide::mobile::outlet":"0","summary::hide::mobile::temperature":"0","summary::hide::mobile::humidity":"0","summary::hide::mobile::luminosity":"0","summary::hide::mobile::power":"0","summary":{"security":[],"motion":[],"door":[],"windows":[],"shutter":[],"light":[],"outlet":[],"temperature":[],"humidity":[],"luminosity":[],"power":[]},"tagColor":"#000000","tagTextColor":"#FFFFFF","desktop::summaryTextColor":"","mobile::summaryTextColor":""}',        'display' => '{"icon":"<i class=\"fa fa-asterisk\"><\/i>","tagColor":"#8000ff","tagTextColor":"#ffffff"}',     )),      '_needRefreshWidget' => false,      '_timeoutUpdated' => false,      '_batteryUpdated' => false,      '_cmds' =>      array (     ),      '_templateArray' =>      array (     ),   )),    '_needRefreshWidget' => NULL,    '_needRefreshAlert' => NULL,    '_templateArray' =>    array (   ), ))
[2017-11-07 17:39:55][DEBUG] : execute:: this:array (   'command' => 'copy',   'source' => '/var/www/html/backup',   'destination' => '/backup',   'include' => '',   'exclude' => '',   'minage' => '7d',   'maxage' => '', )
[2017-11-07 17:39:55][ALERT] : Starting task (Cloudsync/Backup #161)
[2017-11-07 17:39:55][DEBUG] : execute:: pid:'32325' rclone:'/var/www/html/plugins/cloudsyncpro/3rparty/rclone-v1.37-linux-arm64/rclone -v --log-file /var/www/html/core/class/../../log/cloudsyncpro.#161 --config /var/www/html/plugins/cloudsyncpro/core/config/rclone.conf --min-age 7d copy \'/var/www/html/backup\' 21:\'/backup\''
[2017-11-07 17:40:06][DEBUG] : execute:: statistics:array (   'Errors' => '0',   'Checks' => '0',   'Transferred' => '0',   'Elapsed time' => '1.1s',   'Bytes Loaded (Speed)' => '0 Bytes (0 Bytes/s)', )
[2017-11-07 17:40:06][ALERT] : Task finished (Cloudsync/Backup #161) : Errors (0), Checks (0), Transferred (0), Elapsed time (1.1s), Bytes Loaded (Speed) (0 Bytes (0 Bytes/s)), 

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par thanaus » 07 nov. 2017, 18:21

@tom74

Extrait de la documentation rclone que tu peux retrouver dans le lien ci-dessous :

Code : Tout sélectionner

--min-age - Don’t transfer any file younger than this
This option controls the minimum age of files to transfer. Give in seconds or with a suffix (see --max-age for list of suffixes)
For example --min-age 2d means no files younger than 2 days will be transferred.
Tu indiques donc que les fichiers dont la date de modification est inférieure à 7j ne seront pas transférés.
Est-ce qu'il y a donc des fichiers de plus de 7j dans ton répertoire /var/www/html/backup ?

https://rclone.org/filtering/
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

Panama
Timide
Messages : 96
Inscription : 01 janv. 2016, 18:49
Localisation : DIjon

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par Panama » 07 nov. 2017, 18:34

@thanaus

Merci Thanaus pour ta réponse, j'utilise un le transfert FTP sur un NAS Synology DS216j et je viens de m'apercevoir que le problème vient du paramétrage de ce dernier, ça fonctionne très bien sur le port 21, mais pas avec un autre port, je ne trouve pas la bonne configuration pour mon NAS...

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par thanaus » 07 nov. 2017, 18:51

Panama a écrit :
07 nov. 2017, 18:34
@thanaus

Merci Thanaus pour ta réponse, j'utilise un le transfert FTP sur un NAS Synology DS216j et je viens de m'apercevoir que le problème vient du paramétrage de ce dernier, ça fonctionne très bien sur le port 21, mais pas avec un autre port, je ne trouve pas la bonne configuration pour mon NAS...
As-tu suivi cette documentation pour définir le port ?
https://www.synology.com/fr-fr/knowledg ... tp_setting
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

xavax
Actif
Messages : 1828
Inscription : 01 sept. 2017, 14:03
Localisation : Lille

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par xavax » 09 nov. 2017, 11:16

bonjour,
j'essaye de faire une sauvegarde jeedom sur le ftp de ma freebox V6 mais j'ai toujours une erreur... je ne comprends pas pourquoi.
Erreur execution de la commande [Multimédia ][ftp][Sauvegarde] : Task finished on Error (ftp/Sauvegarde #1583)

j'ai mis dans les paramètres :

copie (source vers destination)
source /var/www/html/backup
destination /Disque\ dur/jeedom
C'est bien ca ? j'ai vu ur le dorum que pour disque dur il fallait mettre /Disque\ dur

et pour le FTP j'ai mis
ftp://mafreebox.freebox.fr/
port 21
le login et mot de passe

Qu'ai je oublié ? je ne suis pas sur de ma source. JE suis sur raspberry pi3 avec la derniere version de jeedom installé sur raspbian jessie 8

Merci pour votre aide

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par thanaus » 09 nov. 2017, 11:32

@xavax

Je viens de t'envoyer un MP pour essayer de résoudre ton problème...
Il s'agit pour ma part d'un simple problème de configuration
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

xavax
Actif
Messages : 1828
Inscription : 01 sept. 2017, 14:03
Localisation : Lille

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par xavax » 09 nov. 2017, 12:09

Problème resolu Merci à thanaus !
J'avais une erreur dans l'adresse ftp : il ne faut pas mettre ftp:// et le / a la fin il faut juste mettre
mafreebox.freebox.fr
concernant le chemin de destination il faut juste mettre
Disque dur/jeedom

je vais essayer drop box maintenant :)

xavax
Actif
Messages : 1828
Inscription : 01 sept. 2017, 14:03
Localisation : Lille

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par xavax » 09 nov. 2017, 12:11

C'est quoi les différences entre les différents modes :
copie
synchronisation
liste
suppression ?

thanaus
Actif
Messages : 1106
Inscription : 20 nov. 2016, 13:06

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par thanaus » 09 nov. 2017, 12:14

xavax a écrit :
09 nov. 2017, 12:11
C'est quoi les différences entre les différents modes :
copie
synchronisation
liste
suppression ?
copie : copie depuis la source UNIQUEMENT les nouveaux fichiers et les fichiers modifiés rapport à la destination
synchronisation : réplique exacte du répertoire source vers le répertoire destination : les fichiers précédemment copiés et supprimés à la source seront donc aussi supprimés à la destination
liste : liste les fichiers à la destination
suppression : supprime les fichiers à la destination
Netatmo Pro | CloudSync Pro
On gagne sa vie avec ce que l'on reçoit, mais on la bâtit avec ce que l'on donne.
Winston Churchill
Lien Paypal

xavax
Actif
Messages : 1828
Inscription : 01 sept. 2017, 14:03
Localisation : Lille

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par xavax » 09 nov. 2017, 13:18

pour dropbox il faut mettre quoi dans le champ destination ? sachant que j'ai crée ma clé que pour le dossier application sur dropbox ?

xavax
Actif
Messages : 1828
Inscription : 01 sept. 2017, 14:03
Localisation : Lille

Re: [Plugin Tiers][Sujet Principal] CloudSync Pro

Message par xavax » 09 nov. 2017, 13:50

C'est bon j'ai réussi en re générant la clé dropbox. J'ai encore une question, comment fait on pour créer une commande pour ne garder que le dernier mois par exemple ?

Répondre

Revenir vers « [Catégorie] Communication »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 5 invités