OpenMediaVault Rsync -- Photo/Video Synchronization -- Android.

PseudoOriginal1 Posted messages 2 Status Member -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -
Hello everyone,

Is anyone able to explain to me how to set up the Rsync function?
I would like to synchronize the photos/videos from my Android phone with my OMV NAS.

I tried to do this with some incomplete tutorials that I found online, but unfortunately, I was unsuccessful.

Thank you :)

1 answer

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
     
    Hello,

    The simplest way, in my opinion, is to use
    kdeconnect
    (or its GNOME equivalent
    gsconnect
    ). You need to install the kdeconnect app on your Android. Once that's done, assuming your PC and Android are connected to the same Wi-Fi network, they should be able to see each other. You can then pair them. On your phone, share the directory that contains your photos. You should then be able to access it from your computer, and this connection will show up in the result of the command
    mount | grep kdeconnect
    .

    Example:

    (mando@silk) (~) $ mount | grep kdeconnect
    kdeconnect@192.168.0.15:/ on /run/user/1000/4a2069f581a536e0 type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)


    Here, you can see that my Android is accessible from my Linux via the folder
    /run/user/1000/4a2069f581a536e0
    . I can indeed access my photos by going into the right folder.

    From there, all the necessary components are in place to synchronize two directories (typically, my Photos directory on my PC, e.g.
    ~/Photos
    , and that of the phone, e.g.
    /run/user/1000/4a2069f581a536e0/primary/DCIM/Camera
    ). All that's left is to synchronize the two directories with the rsync command... Before doing this on a sensitive directory, I encourage you to practice on two folders that contain few files and where it wouldn't be a disaster if you mess up...

    Good luck
    0