Skarafaz / mercury

Simple Android app that sends pre-configured commands to remote servers via SSH.
GNU General Public License v2.0
115 stars 20 forks source link

rsync help #24

Closed plegrand1 closed 6 years ago

plegrand1 commented 6 years ago

i need a little help to use mercury to backup a directory from my mobile to a debian desktop. What would be the command line ? something like that /usr/bin/rsync -av -e ssh /my-mobile user@$desktop-debian:backup or rsync -a --delete /src/ /dst/ but in this case the rsync command is from my desktop? src : smartphone ? dst : desktop

Thanks for your help

Skarafaz commented 6 years ago

The command is executed on the remote server, so you can run a command like this:

rsync -ave ssh USER@MOBILE:PATH/TO/SRC /PATH/TO/DST

to pull the target directory from the mobile device to the server... BUT you need an ssh server running on the device!