dup 0.6 for Synology is here!

Filed in DevelopmentTags: , , , ,

So I finally managed to get this to it’s current state, made some more changes and updates and did some more testing. Added a feedback section so you can help with fixing any bugs or getting new features added.

Just uninstall any old version and then install this one, no need to delete the database as the new dup will drop the old dup database before setting up it’s new one.

When installed, open it up and enter your MySQL database password to set it up. Now its time to add your profiles, its as easy as that!

More info here including screenshots!

http://www.arden.ie/wp-content/plugins/downloads-manager/img/icons/default.gif Download: dup 0.6.2 (286.5KB)
Added: 10/07/2013
Description: Find duplicate files on your Synology system

Note, the 0.6.3 beta 2 is also out with additional features!

http://www.arden.ie/wp-content/plugins/downloads-manager/img/icons/default.gif Download: dup 0.6.3 Beta 2 (338KB)
Added: 31/01/2014
Description: Find duplicate files on your Synology system.

Feedback

Comments

5 Responses to “dup 0.6 for Synology is here!”
  1. avatar wp200 says:

    Hi!

    Cannot get past the setup page. Running DSM 5 (with MariaDB instead of MySQL), could that be the problem?

    Any advice is welcome,

    Greetings,

    wp200

    • avatar arden says:

      Does the solution in http://www.arden.ie/forums/viewtopic.php?f=8&t=8 help at all? A few people have had this issues and it’s turned out to be their browsers cookies.

    • avatar erdnuesse says:

      wp200:
      Hi!
      Cannot get past the setup page. Running DSM 5 (with MariaDB instead of MySQL), could that be the problem?
      Any advice is welcome,
      Greetings,

      wp200

      Hi!
      I received a PDOexception in the /web/dup/db.php while setting up the database.
      I did some research and php hacking and fould a solution for installing just a few seconds ago.

      Open /web/dup/db.php and replace the part from line 230-254:

      if($dup->Settings[‘logs’]==1 or $type==1 or type==4 or $profile==0)// log defaults always
      {
      try {
      $query = “INSERT INTO logs(str, type, page, line, function) VALUES(:str, :type, :page, :line, :func);”;
      $sdt = $dblink->prepare($query);
      $sdt->bindParam(‘:str’, $str, SQLITE3_TEXT);
      $sdt->bindParam(‘:type’, $type, SQLITE3_INTEGER);
      $sdt->bindParam(‘:page’, $page, SQLITE3_TEXT);
      $sdt->bindParam(‘:line’, $line, SQLITE3_INTEGER);
      $sdt->bindParam(‘:func’, $func, SQLITE3_TEXT);
      $sdt->execute();
      $sdt->closeCursor();
      }
      catch(PDOException $ex) {
      if(strstr($ex, “SQLSTATE[42S02]”) == FALSE)
      {
      file_put_contents(“logs/last_error.txt”, print_r($ex, true), FILE_APPEND);
      header(“Location: error.php”);
      Exit;
      }
      else
      SetupDB();
      }
      }
      }

      With this:

      /* if($dup->Settings[‘logs’]==1 or $type==1 or type==4 or $profile==0)// log defaults always
      {
      try {
      $query = “INSERT INTO logs(str, type, page, line, function) VALUES(:str, :type, :page, :line, :func);”;
      $sdt = $dblink->prepare($query);
      $sdt->bindParam(‘:str’, $str, SQLITE3_TEXT);
      $sdt->bindParam(‘:type’, $type, SQLITE3_INTEGER);
      $sdt->bindParam(‘:page’, $page, SQLITE3_TEXT);
      $sdt->bindParam(‘:line’, $line, SQLITE3_INTEGER);
      $sdt->bindParam(‘:func’, $func, SQLITE3_TEXT);
      $sdt->execute();
      $sdt->closeCursor();
      }
      catch(PDOException $ex) {
      if(strstr($ex, “SQLSTATE[42S02]”) == FALSE)
      {
      file_put_contents(“logs/last_error.txt”, print_r($ex, true), FILE_APPEND);
      header(“Location: error.php”);
      Exit;
      }
      else
      SetupDB();
      }
      }*/
      SetupDB();
      }

      Installing on mariaDB should run just fine then.

      OT: got it to work for the first time tho, still need to find out how to use it properly, so no guarantee that it will actually work.

      On another note: DSM now has the possibility to scan for dups: Main Menu – Storage Analyzer – Create –

  2. avatar GimzmoPower says:

    Hello sir.

    First thank you for this package.
    I really could use this for all my photos, mainly my kids. A lot of duplicates ­čÖé

    But I need some help.
    Everything installed fine. I made a profile, but it wount start the job.
    In profile under status it say “Starting Scan…” but nothing happens.

    Any clue?

  3. avatar GimzmoPower says:

    Here is the error:

    PDOException Object
    (
    [message:protected] => SQLSTATE[HY093]: Invalid parameter number: no parameters were bound
    [string:Exception:private] => exception ‘PDOException’ with message ‘SQLSTATE[HY093]: Invalid parameter number: no parameters were bound’ in /volume1/web/dup/db.php:242
    Stack trace:
    #0 /volume1/web/dup/db.php(242): PDOStatement->execute()
    #1 /volume1/web/dup/scan-files-thread.php(5): LogStr(‘Scan Files’, 1, ‘/volume1/web/du…’, 5, ”)
    #2 {main}
    [code:protected] => HY093
    [file:protected] => /volume1/web/dup/db.php
    [line:protected] => 242
    [trace:Exception:private] => Array
    (
    [0] => Array
    (
    [file] => /volume1/web/dup/db.php
    [line] => 242
    [function] => execute
    [class] => PDOStatement
    [type] => ->
    [args] => Array
    (
    )

    )

    [1] => Array
    (
    [file] => /volume1/web/dup/scan-files-thread.php
    [line] => 5
    [function] => LogStr
    [args] => Array
    (
    [0] => Scan Files
    [1] => 1
    [2] => /volume1/web/dup/scan-files-thread.php
    [3] => 5
    [4] =>
    )

    )

    )

    [previous:Exception:private] =>
    [errorInfo] => Array
    (
    [0] => HY093
    [1] => 0
    )

    )

Trackbacks

  1. dup for Synology systems » Blog arden

Leave a Reply