# Backup on Raspberry Pi

**URL:** <https://forums.plex.tv/t/backup-on-raspberry-pi/675809>\
**Category:** Plex Media Server\
**Tags:** server-linux-arm\
**Created:** [January 8, 2021, 9:40am UTC](https://forums.plex.tv/t/backup-on-raspberry-pi/675809 "2021-01-08T09:40:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomsimmons](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tomsimmons](https://forums.plex.tv/u/tomsimmons)\
**Post date:** [January 8, 2021, 9:40am UTC](https://forums.plex.tv/t/backup-on-raspberry-pi/675809/1 "2021-01-08T09:40:48Z")

</div>

Server Version#:4.49.2  
Player Version#:N/A

I tried to set up a backup of my Plex Media Server running on a Raspberry Pi. I used rclone to copy all the music from the /home/pi/Music folder to OneDrive, then from the guide about backing up I copied some of the contents of /var/lib/plexmediaserver/Library/Application Support/Plex Media Server to the cloud also. I says some, I didn’t do logs, crash reports and similar. Some of it is seems to be symlinks…

However when I tried to restore the library was unreadable.

So what is the correct backup process?

Tom

---

<div class="post-metadata">

**Author:** ![tomsimmons](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tomsimmons](https://forums.plex.tv/u/tomsimmons)\
**Post date:** [February 1, 2021, 6:06pm UTC](https://forums.plex.tv/t/backup-on-raspberry-pi/675809/2 "2021-02-01T18:06:49Z")

</div>

No one got any guidance or input on how to perform a backup of the media server correctly?

---

<div class="post-metadata">

**Author:** ![tomsimmons](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tomsimmons](https://forums.plex.tv/u/tomsimmons)\
**Post date:** [February 2, 2021, 7:28pm UTC](https://forums.plex.tv/t/backup-on-raspberry-pi/675809/3 "2021-02-02T19:28:01Z")

</div>

OK ignoring the guide about backing up as it is… I went with the following:

rclone to copy what’s new/changed in the directory that contains the music files to OneDrive

stop PMS  
tar the Library dir inside plexmediaserver directory  
start PMS  
rclone to copy the Library.tar file to OneDrive

all of this is in a bash script that is run by cron once a day

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [May 3, 2021, 7:28pm UTC](https://forums.plex.tv/t/backup-on-raspberry-pi/675809/4 "2021-05-03T19:28:24Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
