Jellyfin Forum
rsync errors - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: rsync errors (/t-rsync-errors)



rsync errors - alleycat - 2024-10-20

Trying to figure out how to backup jellyfin data. I'm getting an error I'm not sure what it means.
This is new, only tried the command a couple of times and decided something was not right.
Can someone please look at it and see what you think?

Commands:
----------------------------------
sudo systemctl stop jellyfin

cd /jellydata

rsync -a -p --progress /var/lib/jellyfin libJellyfin/

-------------------------------------

   


RE: rsync errors - TheDreadPirate - 2024-10-21

Run it as root or use sudo. Your user doesn't have sufficient permissions to read everything. Also, if you are doing daily diffs, you need to add --delete to the end of the rsync command.


RE: rsync errors - alleycat - 2024-10-21

(2024-10-21, 12:03 AM)TheDreadPirate Wrote: Run it as root or use sudo.  Your user doesn't have sufficient permissions to read everything.  Also, if you are doing daily diffs, you need to add --delete to the end of the rsync command.

Like this?
---------------------------------------
sudo systemctl stop jellyfin

cd /jellydata

mkdir etcJellyfin libJellyfin cacheJellyfin

sudo rsync -a -p --progress --delete /etc/jellyfin etcJellyfin/

sudo rsync -a -p --progress --delete /var/lib/jellyfin libJellyfin/

sudo rsync -a -p --progress --delete /var/cache/jellyfin cacheJellyfin/

tar cfz jellyfinBackup.tgz
-----------------------------------------

Tar not working either...


RE: rsync errors - TheDreadPirate - 2024-10-21

Try switching to root and run the command, which is how I do my backups. Having said that, I ran the rsync as my user with sudo and didn't have any issues.

You'd also need to use sudo for the tar since the -p option preserves the ownership and permissions of the original files when copying them.

Also, I'm assuming you own /jellydata, correct? I ran my rsync test in my home directory without issue.


RE: rsync errors - alleycat - 2024-10-21

(2024-10-21, 12:18 PM)TheDreadPirate Wrote: Try switching to root and run the command, which is how I do my backups.  Having said that, I ran the rsync as my user with sudo and didn't have any issues.

You'd also need to use sudo for the tar since the -p option preserves the ownership and permissions of the original files when copying them.

Also, I'm assuming you own /jellydata, correct?  I ran my rsync test in my home directory without issue.

Thanks for the reply. I'm trying to make this harder than It needs to be I guess.  Just a copy is going to have to do for now. I need to focus on learning cli, ownership and permissions. A lot of us are still GUI guys and I'm using a headless machine for Jellyfin (which works great! btw)...