You are not logged in.

#1 2021-01-08 20:33:31

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Best way to sync music from a nas to Android's sdcard?

I have a medium-large audio collection. It resides on a freenas and I serve it to my Arch laptop via NFS. I use mpd for local playback.
For mobile, I've been streaming. But plex is proprietary garbage and wants to mar my well tagged collection with unessesary metadata. Jellyfin's client sucks and all the subsonic projects are buggy and/or abandoned.
So I bought a 1tb sdcard for my phone and I have poweramp installed. How can I keep a collection (on an nfs server) synced to my card when the phone is plugged into an arch box)? I looked at Clementine but it only recognizes my internal storage. There is Android Transfer,
but it only transfers, it doesn't sync (I want changes in my tags and directory structure to be updated or mirrored).

I guess rsync from the share (mounted on Arch) to the card (visible to Arch) would work.

Anyone have a piece of advice?

Offline

#2 2021-01-08 21:13:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Best way to sync music from a nas to Android's sdcard?

I use a udev rule and systemd.mount to trigger an rsync script when the drive is plugged in. Works great.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-01-08 21:24:02

zpg443
Member
Registered: 2016-12-03
Posts: 271

Re: Best way to sync music from a nas to Android's sdcard?

Look at Syncthing (Community repo).

Offline

#4 2021-01-08 22:40:25

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: Best way to sync music from a nas to Android's sdcard?

Forgot about syncthing. Used to use it to sync my audiobook collection. My only issue with that is that it can only write to its own home on the sdcard. no biggie, I can just scan there.Thanks.

Last edited by shoelesshunter (2021-01-08 22:41:28)

Offline

#5 2021-01-09 06:27:34

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: Best way to sync music from a nas to Android's sdcard?

rsync can be used  from termux running in android

Offline

#6 2021-01-14 16:20:20

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Best way to sync music from a nas to Android's sdcard?

It isn't mentioned so I'd say MTP - gvfs-mtp[Extra] direct access through USB works fine for reaching both internal storage and SD card.
Use rsync to transfer files like:     
'rsync -av /mnt/NAS/music/* /run/user/1000/gvfs/mtp:host=YOUR-PHONE-ID/MicroSD/Music'

Alternative, a local cloudserver like Nextcloud is a nice option too.

edit:Oh and here's a lot about MTP https://wiki.archlinux.org/index.php/Me … r_Protocol

Last edited by qinohe (2021-01-14 17:50:56)

Offline

Board footer

Powered by FluxBB