Masami Eiri · 2024-09-02 06:48
I started self hosting my stuff this week and it is going well. I found an app called Navidrome for hosting music, installed on my VPS. Then copy some of my music through SSH and connected to the server from my phone(it works).
Normally, I install music to my computer and use Beets for tagging it. I want to sync my computer library to VPS but I dont want to copy same songs every time. Is there any way for doing this.(USER WAS WARNED FOR THIS POST, You should always elaborate on your opinions rather than just spilling the soykaf. Learn to elaborate, also rsync)
William Holtzer · 2024-09-02 09:58
>>11979
Look into Syncthing:
https://syncthing.net/
You can set it up so that your computer's music folder(s) will automatically sync with your VPS's music folder based on what is missing/what has been recently added.
Alternatively you can set up a cronjob and a custom ssh key to log into your server and rsync all of your music from your computer to your VPS at custom intervals.
HELIOS · 2024-09-02 10:02
rsync is good for syncing directories, package repository
mirrors use it a lot for a similar purpose and it's better than
ftp.
Zero Cool · 2024-09-02 11:51
>>11981
>>11980
I learned how to use rsync but everytime I use the command it wants password of server. So how can I automate?
Stirner · 2024-09-02 13:29
>>11982
You could set up a cron job or a systemd timer that executes rsync with --ignore-existing on your music library. Regarding the password prompt: Just add your ssh public key to the authorized_keys file for the corresponding user on your server.