Problem mit Shell Befehl für Swipe Backup

T

the-unknown

Dauergast
83
Hallo zusammen,

ich möchte auf meinem auto Radio, welches mit Android läuft, regelmäßig mit Tasker (darum hoffe ich hier richtig zu sein) das Backup anstoßen.
Laut Swipe Backup ist das auch möglich.
FAQs | Swift Backup
Yes. Swift Backup supports a minimal implementation for running schedules at your convenience via a shell command. You can run this command in a terminal emulator or use it in automation apps like Tasker, Macrodroid, etc. Root access needed.


Command
am start -n org.swiftapps.swiftbackup/.shortcuts.ShortcutsActivity -e "cmd" "-s [schedule_id1] [schedule_id2]"


Breakdown of the above command
am start -n org.swiftapps.swiftbackup/.shortcuts.ShortcutsActivity
This just starts the activity that handles the command. '-n' is very important!


-e "cmd" "-s [schedule_id1] [schedule_id2]"
This is the extra (-e) called 'cmd' (short for command) that is passed to the activity. -s takes one or more ids of the schedules to run separated by a whitespace.


How to get the [schedule_id]?
These ids can be obtained by long clicking the title of the respective schedule which will copy the id to clipboard. Make sure you do NOT add the squared brackets '[' or ']' around the ids in the final command.

Der Befehl bei mir wäre wie folgt
Code:
am start -n org.swiftapps.swiftbackup/.shortcuts.ShortcutsActivity -e "cmd" "-s xyz1234"

Nun schmeißt er allerdings einen Fehler, siehe Bild.

Habt ihr dazu eine Idee?

Lieben Dank
Christoph
 

Anhänge

  • PX6_ScreenShot_20210818.jpg
    PX6_ScreenShot_20210818.jpg
    51,1 KB · Aufrufe: 100
Hast du das Autoradio gerootet?

wenn ja, hast du bei der Aktion das Root häcken gesetzt?
 
Zuletzt bearbeitet:
  • Danke
Reaktionen: the-unknown
Radio hat root, Aber daran hatte ich gar nicht gedacht da vielleicht einen extra Haken zu setzten.

Besten Dank. Das war es :)
 
  • Danke
Reaktionen: Spardas

Ähnliche Themen

M
Antworten
0
Aufrufe
282
MaGu64
M
keinnamemehrfrei
Antworten
19
Aufrufe
776
keinnamemehrfrei
keinnamemehrfrei
rtwl
Antworten
3
Aufrufe
401
rtwl
rtwl
Zurück
Oben Unten