NAS

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
frage
Posts: 43
Joined: 20 May 2017 12:15

NAS

Post by frage » 16 Jan 2019 08:34

Hallo Forum,

ich versuche Dateien von Handy auf mein NAS zu kopieren.
Das kopieren auf dem Handy von einem Ordner in einen anderen Orden funktioniert ohne Probleme.

Sobald ich aber auf das NAS kopieren möchte erhalte ich keinen Zugriff.

Ich habe den vollständigen Pfad kopiert und eingestzt aber es geht nicht.
smb://nas:@192.200.2.8/NAS/Ordner/

Hier nur 2 weiter Bsp. die ich versucht habe.
smb://192.200.2.8/NAS/Ordner/
//192.200.2.8/NAS/Ordner/

Finde meinen Fehler leider nicht.

Danke für Eure Hilfe.

Gruß
frage

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: NAS

Post by Desmanto » 17 Jan 2019 17:17

You can't copy to samba or any other drive related folder which need authentication. I don't know if Martin is going to add the function. Currently we have FTP upload or Gdrive upload. But to add other network drive probably takes long time.

Meanwhile, just use MiXplorer broadcast. MiXplorer support to copy/move to every drive or any path it can access. And the authentication is directly from MiXplorer, we don't need to worry about the username password anymore. If MiXplore can access it, we can copy to it using Automagic.

Download MiXplorer from xda : https://forum.xda-developers.com/showth ... ?t=1523691. If you need smb v2, install the MiX SMB2 addon too from playstore : https://play.google.com/store/apps/deta ... .addon.smb

Simply add the samba/NAS you have in MiXplorer. Make sure you can access it already, put your username password as needed. Then at automagic, use the ACTION_TASK
Element : Action - Send Broadcast
Action : com.mixplorer.ACTION_TASK
Explicit Component >> Check
Package Name: com.mixplorer (or com.mixplorer.silver or com.mixplorer.beta if you use silver or beta version)
Class Name: com.mixplorer.BroadcastReceiver
Extras:

Code: Select all

putString("task", "copy");
putString("src", "/path/to/source-file-or-folder");
putString("dst", "/path/to/destination-folder");
putString("mode", "KEEP_BOTH");
For task, you can use "copy", "move", or "archive", this is equivalent to copy file, move file and zip file
For mode, you can use OVERWRITE or SKIP or KEEP_BOTH.
This is for single file copy/move/zip, you have to loop the action if you need to copy a lot of files.

You can put your nas folder at the "dst", "smb://192.200.2.8/NAS/Ordner/"
The easiet way is to go to your NAS tab at MiXplorer, tap long at the top left, and copy path, paste this at the "dst"

@Martin : Probably we can have this template at the Send Broadcast examples. Along with the turning on HTTP, FTP and TCP server at MiXplorer.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

frage
Posts: 43
Joined: 20 May 2017 12:15

Re: NAS

Post by frage » 18 Jan 2019 06:14

Hallo Desmanto,

Danke für die schnelle Antwort und den Lösungsvorschlag. Ich werde mir das einmal genau ansehen und schauen ob das für mich so die Lösung ist. Es wäre schön wenn Martin die Zeit hätte das im Programm einbauen zu können.

Danke
frage

Post Reply