• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting rsync errors

     
    • 0 Vote(s) - 0 Average

    rsync errors

    rsync error
    alleycat
    Offline

    Member

    Posts: 69
    Threads: 19
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #1
    2024-10-20, 10:43 PM
    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/

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

       
    Jellyfin 10.10.7 (bare metal)
    Ubuntu 24.04.2 LTS, OS 1TB NVMe
    Dell OptiPlex 7050 Intel i7-6700 32GB ram
    Intel Arc A310 ELF
    Storage: TrueNas Mini R Raidz2 45 TiB (Samba shares)
    Gateway: PFsense/HAproxy

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-10-21, 12:03 AM
    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    alleycat
    Offline

    Member

    Posts: 69
    Threads: 19
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #3
    2024-10-21, 03:40 AM (This post was last modified: 2024-10-21, 03:50 AM by alleycat. Edited 1 time in total.)
    (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...
    Jellyfin 10.10.7 (bare metal)
    Ubuntu 24.04.2 LTS, OS 1TB NVMe
    Dell OptiPlex 7050 Intel i7-6700 32GB ram
    Intel Arc A310 ELF
    Storage: TrueNas Mini R Raidz2 45 TiB (Samba shares)
    Gateway: PFsense/HAproxy

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-10-21, 12:18 PM
    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    alleycat
    Offline

    Member

    Posts: 69
    Threads: 19
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #5
    2024-10-21, 12:58 PM (This post was last modified: 2024-10-21, 12:59 PM by alleycat. Edited 1 time in total.)
    (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)...
    Jellyfin 10.10.7 (bare metal)
    Ubuntu 24.04.2 LTS, OS 1TB NVMe
    Dell OptiPlex 7050 Intel i7-6700 32GB ram
    Intel Arc A310 ELF
    Storage: TrueNas Mini R Raidz2 45 TiB (Samba shares)
    Gateway: PFsense/HAproxy

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode