Migrate From Personal Storage To Bytesized - Bytesized Hosting Wiki
AKA: How to get my personal Plex content to Bytesized
There are multiple ways to do this. In this tutorial we'll look at using rsync with a few twists so that you can start a process that will resume successfully and let you see what file it's working on.
This is some clever Unix/Linux items, so please be careful
- Set up a SSH Keypair
- Copy the Public half of the keypair to the box you're going to be sending your data to in the
- Ensure the SSH private key is loaded up in the linux environment
- From the Directory you want to send (ex:
Movies) use the following:
while [ 1 ] do rsync -avhzS --partial-dir=.partials --progress . alchemi[email protected]:media/Movies sleep 10 done
This starts up a rsync sender/reciever pair with the following options:
-hHuman Readable Sizes
-zOn the fly compression/decompression
-SSparse file efficency
--partial-dir=.partialsAllow your rsync to try to resume a partial file without needing to resend the entire file
--progressReport the progress of the file upload
.Current Working Directory (in this case I chose my local Movie Store
[email protected]Your Username SSH Host that is on the dashboard
:media/MoviesWhere to write the rsync sent files to.
If for some reason the rsync is inturrupted, the script will sleep for 10 seconds and then restart the rsync. 10 seconds is chosen as a happy medium in case the system is down or there is a temporary inturruption in the network between you and the ByteSized server.
|Last Author||Contributors||Versions||Last update|
|hasteur||None||1||Tue, 09 Mar 2021 20:15:06 +0100|