<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unraid &#8211; BeatificaBytes</title>
	<atom:link href="https://www.BeatificaBytes.be/tag/unraid/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.BeatificaBytes.be</link>
	<description>The Joys of Computing</description>
	<lastBuildDate>Fri, 01 Jan 2021 23:27:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>
	<item>
		<title>Sync Plex Movies from Synology onto Unraid</title>
		<link>https://www.BeatificaBytes.be/sync-plex-movies-from-synology-onto-unraid/</link>
					<comments>https://www.BeatificaBytes.be/sync-plex-movies-from-synology-onto-unraid/#respond</comments>
		
		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Fri, 01 Jan 2021 23:27:15 +0000</pubDate>
				<category><![CDATA[Synology]]></category>
		<category><![CDATA[Plex]]></category>
		<category><![CDATA[Unraid]]></category>
		<guid isPermaLink="false">http://www.beatificabytes.be/?p=4896</guid>

					<description><![CDATA[I am managing my movies with Plex. It is installed both on my Synology NAS, which is running  24/7, and on my Unraid Server, that [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p style="text-align: justify;">I am managing my movies with Plex. It is installed both on my Synology NAS, which is running  24/7, and on my Unraid Server, that I turn on only for backup purpose.</p>
<p style="text-align: justify;">I am usually adding new movies first on my Synology. I copy them later onto my Unraid Server. To do so, I am using rsync.</p>
<p style="text-align: justify;"><span class="collapseomatic " id="id69b42ab22ce03"  tabindex="0" title="Click to Read More"    >Click to Read More</span><span id='swap-id69b42ab22ce03'  class='colomat-swap' style='display:none;'>Click to Close</span><div id="target-id69b42ab22ce03" class="collapseomatic_content ">
<p>ATTENTION: this is only to sync the files, not the metadata.</p>
<p> </p>
<p style="text-align: justify;">In each Plex, I have two libraries: <em><strong>Movies</strong></em> and <em><strong>Series TV</strong></em></p>
<p style="text-align: justify;">On Synology, each library includes two folders:</p>
<ul style="text-align: justify;">
<li>Movies includes /volume1/plex/Movies and /volume1/plex/new Movies</li>
<li>Series TV includes /volume1/plex/Series and /volume1/plex/new Series </li>
</ul>
<p style="text-align: justify;">On Unraid, each library includes only one folder:</p>
<ul style="text-align: justify;">
<li>Movies includes /mnt/user/Movies</li>
<li>Series TV includes /mnt/user/Series</li>
</ul>
<p style="text-align: justify;">On Unraid, I have two shares <em><strong>Movies</strong> </em>and <em><strong>Series</strong></em> to access respectively mnt/user/Movies and /mnt/user/Series.</p>
<p style="text-align: justify;">On the Synology NAS, I have mounted the shares of the Unraid Server as CIFS Shared Folder:</p>
<ul style="text-align: justify;">
<li>/&lt;Unraid Server&gt;/Movies on /volume1/mount/Movies</li>
<li>/&lt;Unraid Server&gt;/Series on /volume1/mount/Series</li>
</ul>
<p style="text-align: justify;"><img decoding="async" class="alignnone wp-image-4898 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2021/01/Pasted-1.png" /></p>
<p style="text-align: justify;"><img decoding="async" class="alignnone wp-image-4901 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2021/01/Pasted-4.png" /></p>
<p style="text-align: justify;">Each time I have a new movie or serie, I copy it onto my Synology, respectively into /volume1/plex/new Movies or /volume1/plex/new Series.</p>
<p style="text-align: justify;">All movies and series are first renamed using <a href="https://www.filebot.net/" target="_blank" rel="noopener noreferrer">filebot</a>. This is a guarantee that all are well uniquely identified with the title, year, resolution, season, episode, encoding, etc, &#8230; According to Plex best practices, each movie is in its own folder.</p>
<p style="text-align: justify;">Once I have a few new media, I turn on my Unraid Server and launch the following script in a SSH console (using Putty) on the Synology:</p>
<blockquote>
<pre>#!/bin/bash<br /><br />if grep -qs '/volume1/mount/Series ' /proc/mounts<br />then<br />rsync --ignore-existing -h -v -r -P -t /volume1/plex/New\ Series/ /volume1/mount/Series/<br />else<br />echo "Cannot sync new Series as Zeus is not mounted on /mount/Series"<br />fi<br /><br />if grep -qs '/volume1/mount/Movies ' /proc/mounts<br />then<br />rsync --ignore-existing -h -v -r -P -t /volume1/plex/New\ Movies/ /volume1/mount/Movies/<br />else<br />echo "Cannot sync new Movies as Zeus is not mounted on /mount/Movies"<br />fi</pre>
</blockquote>
<p style="text-align: justify;">Next, on Synology, I move all movies and series respectively from /volume1/plex/new Movies and /volume1/plex/new Series into /volume1/plex/Movies or /volume1/plex/Series <sup>(</sup>*<sup>)</sup>. </p>
<p style="text-align: justify;">Than, to be sure I don&#8217;t have the same movie twice on the Unraid Server (with distinct encoding or resolution), I run this command in a SSH console on Unraid:</p>
<blockquote>
<pre>find /mnt/user/Movies -type f -iname '*.mkv' -printf '%h\n'|sort|uniq -c | awk '$1 &gt; 1'^C</pre>
</blockquote>
<p style="text-align: justify;">It does not work for the Series as each folder (season) contains obviously several episodes&#8230;</p>
<p style="text-align: justify;"> </p>
<p><strong>This is only syncing the files</strong>! There is no easy way to sync also the metadata between the two Plex.</p>
<p>But voilà&#8230;.</p>
<p> </p>
<hr />
<p style="text-align: justify;"><sup>(</sup>*<sup>) </sup>Doing so, the fine tunings done in Plex, when the movie was under &lt;/new Movie&gt;, are not lost. Temporarily, the movie will appear as &#8220;deleted&#8221; in Plex. Above all, do not &#8220;Empty Trash&#8221; ! Soon (depending on how many movies you moved), it will be &#8220;available&#8221; again. I did test that trick explicitly:</p>
<p style="text-align: justify;">1. Take a new movie:</p>
<p style="padding-left: 40px; text-align: justify;"><img decoding="async" class="alignnone wp-image-4902 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2021/01/Pasted-5.png" /></p>
<p style="text-align: justify;">2. Open it:</p>
<p style="padding-left: 40px; text-align: justify;"><img decoding="async" class="alignnone wp-image-4903 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2021/01/Pasted-6.png" /></p>
<p style="text-align: justify;">3. Check that path (here under, it is under /New Movies):</p>
<p style="padding-left: 40px; text-align: justify;"><img decoding="async" class="alignnone wp-image-4904 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2021/01/Pasted-7.png" /></p>
<p style="text-align: justify;">4. Edit some info for testing purpose (here under, the &#8220;Original Title&#8221;):</p>
<p style="padding-left: 40px; text-align: justify;"><img decoding="async" class="alignnone wp-image-4905 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2021/01/Pasted-8.png" /></p>
<p style="text-align: justify;">5. Change also the poster:</p>
<p style="padding-left: 40px; text-align: justify;"><img decoding="async" class="alignnone wp-image-4906 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2021/01/Pasted-9.png" /></p>
<p style="text-align: justify;">5. Using Windows Explorer or the File Station, move the folder of the movie into its new location. The movie will appear very soon as unavailable:</p>
<p style="padding-left: 40px; text-align: justify;"><img decoding="async" class="alignnone wp-image-4908 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2021/01/Pasted-11.png" /></p>
<p style="text-align: justify;">6. Open it:</p>
<p style="padding-left: 40px; text-align: justify;"><img decoding="async" class="alignnone wp-image-4907 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2021/01/Pasted-10.png" /></p>
<p style="text-align: justify;">7.  Wait&#8230; Soon it will become again available:</p>
<p style="padding-left: 40px; text-align: justify;"><img decoding="async" class="alignnone wp-image-4909 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2021/01/Pasted-12.png" /></p>
<p style="text-align: justify;">8. Check now the path (here under, it is now under /Movies):</p>
<p style="padding-left: 40px; text-align: justify;"><img decoding="async" class="alignnone wp-image-4910 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2021/01/Pasted-13.png" /></p>
<p style="text-align: justify;">9. As you can see, the chosen cover is still there. And editing the details, you would see that the original title is still &#8220;DEMO MOVE FOLDER within Plex&#8221;.</p>
<p style="text-align: justify;"></div>
<div class="pvc_clear"></div><p id="pvc_stats_4896" class="pvc_stats total_only  " data-element-id="4896" style=""><i class="pvc-stats-icon medium" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewBox="0 0 502 315" preserveAspectRatio="xMidYMid meet"><g transform="translate(0,332) scale(0.1,-0.1)" fill="" stroke="none"><path d="M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z"/><path d="M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z"/><path d="M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z"/><path d="M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z"/><path d="M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z"/><path d="M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z"/><path d="M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z"/><path d="M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z"/><path d="M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z"/></g></svg></i> <img decoding="async" width="16" height="16" alt="Loading" src="https://www.BeatificaBytes.be/wp-content/plugins/page-views-count/ajax-loader-2x.gif" border=0 /></p><div class="pvc_clear"></div>]]></content:encoded>
					
					<wfw:commentRss>https://www.BeatificaBytes.be/sync-plex-movies-from-synology-onto-unraid/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Backup Synology to Unraid</title>
		<link>https://www.BeatificaBytes.be/backup-synology-to-unraid/</link>
					<comments>https://www.BeatificaBytes.be/backup-synology-to-unraid/#comments</comments>
		
		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Sat, 16 May 2020 18:07:46 +0000</pubDate>
				<category><![CDATA[Synology]]></category>
		<category><![CDATA[Unraid]]></category>
		<guid isPermaLink="false">http://www.beatificabytes.be/?p=4699</guid>

					<description><![CDATA[The easiest way to backup a Synology NAS to Unraid Server is to use Hyper Backup on Synology and rsync on Unraid.]]></description>
										<content:encoded><![CDATA[
<p style="text-align: justify;">The easiest way to backup a Synology NAS to Unraid Server is to use Hyper Backup on Synology and rsync on Unraid.</p>
<p style="text-align: justify;"><span class="collapseomatic " id="id69b42ab22ee4b"  tabindex="0" title="Click to Read More"    >Click to Read More</span><span id='swap-id69b42ab22ee4b'  class='colomat-swap' style='display:none;'>Click to Close</span><div id="target-id69b42ab22ee4b" class="collapseomatic_content ">
<p style="text-align: justify;">First, enable rsync on your Unraid Server. It is preinstalled but not running as a daemon.</p>
<p style="text-align: justify;">Create a file <strong>/boot/custom/etc/rsyncd.conf</strong> with the following content:</p>
<pre>uid             = root
gid             = root
use chroot      = no
max connections = 4
pid file        = /var/run/rsyncd.pid
timeout         = 600

[backups]
    path = /mnt/user/backups
    comment = Backups
    read only = FALSE</pre>
<p style="text-align: justify;">Here above:</p>
<ul>
<li style="text-align: justify;">The name &#8220;backups&#8221; between brackets will be visible as &#8220;backup module&#8221; from the Synology. You can create several blocks like this one.</li>
<li style="text-align: justify;">The &#8220;path&#8221; (here /mnt/user/backups) must exist on your Unraid server (create this one as a shared folder, to be able to access the backup later from any PC)</li>
<li>Notice: the folder /boot should exist. But you could possibly have to create the subfolders /custom/etc</li>
</ul>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">Next, create a file <strong>/boot/custom/etc/rc.d/S20-init.rsyncd</strong> with the following content:</p>
<pre class="ipsCode">#!/bin/bash

if ! grep ^rsync /etc/inetd.conf &gt; /dev/null ; then
cat &lt;&lt;-EOF &gt;&gt; /etc/inetd.conf
rsync   stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/bin/rsync --daemon
EOF
read PID &lt; /var/run/inetd.pid
kill -1 ${PID}
fi

cp /boot/custom/etc/rsyncd.conf /etc/rsyncd.conf</pre>
<p style="text-align: justify;">Finally, add the following line in the file <strong>/boot/config/go</strong> :</p>
<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">#!/bin/bash</span></pre>
<pre class="ipsCode">bash /boot/custom/etc/rc.d/S20-init.rsyncd</pre>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">Now, either reboot or execute: <strong>bash /boot/custom/etc/rc.d/S20-init.rsyncd</strong></p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">Go now on your Synology and open &#8220;Hyper Backup&#8221; to Create a new Data Backup Task:</p>
<p style="text-align: justify;"><img decoding="async" class="alignnone wp-image-4700 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2020/05/Pasted.png" /></p>
<p style="text-align: justify;">Select rsync as Backup Destination:</p>
<p style="text-align: justify;"><img decoding="async" class="alignnone wp-image-4701 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2020/05/Pasted-1.png" /></p>
<p style="text-align: justify;">And Create the backup Task with &#8220;rsync-compatible server&#8221; as Server Type:</p>
<p style="text-align: justify;"><img decoding="async" class="alignnone wp-image-4702 size-full" src="http://www.beatificabytes.be/wp-content/uploads/2020/05/Pasted-2.png" /></p>
<p>In order to access the backup and retrieve files from a PC, use the application &#8220;<a href="https://kb.synology.com/en-us/DSM/help/HyperBackupExplorer/hyperbackupexplorer?version=7" target="_blank" rel="noopener noreferrer">Hyper Backup Explorer</a>&#8221; from Synology and open the backup file .bkpi located under \\&lt;YourServer&gt;\backups\&lt;Yourbackup&gt;.bkp\</p>
<p style="text-align: justify;"></div>
<div class="pvc_clear"></div><p id="pvc_stats_4699" class="pvc_stats total_only  " data-element-id="4699" style=""><i class="pvc-stats-icon medium" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewBox="0 0 502 315" preserveAspectRatio="xMidYMid meet"><g transform="translate(0,332) scale(0.1,-0.1)" fill="" stroke="none"><path d="M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z"/><path d="M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z"/><path d="M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z"/><path d="M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z"/><path d="M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z"/><path d="M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z"/><path d="M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z"/><path d="M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z"/><path d="M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z"/></g></svg></i> <img decoding="async" width="16" height="16" alt="Loading" src="https://www.BeatificaBytes.be/wp-content/plugins/page-views-count/ajax-loader-2x.gif" border=0 /></p><div class="pvc_clear"></div>]]></content:encoded>
					
					<wfw:commentRss>https://www.BeatificaBytes.be/backup-synology-to-unraid/feed/</wfw:commentRss>
			<slash:comments>49</slash:comments>
		
		
			</item>
	</channel>
</rss>
