Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Backing Up Playlists To Dropbox
#1
It is a good idea to backup your playlists in case your SD card fails. This tutorial shows how to backup to a dropbox account.

First install the dropbox uploader script (note: this is one single command) :

Code:
sudo curl "https://raw.githubusercontent.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh" -o /usr/local/bin/dropbox_uploader.sh

Now give the script execution permission:

Code:
sudo chmod +x /usr/local/bin/dropbox_uploader.sh

Now run the script and follow the wizard instructions to enable access to your Dropbox account:

Code:
dropbox_uploader.sh

Once you have completed the script wizard instructions you can upload your playlists to dropbox with the following command (you may need to change the playlist directory if you have installed blissflixx somewhere else) .

Code:
dropbox_uploader.sh upload /home/pi/blissflixx/data/playlists /

The next thing to do is add this command to your crontab file is that your playlists are backed up regularly and automatically.

Code:
crontab -e

Now add the following line to the end of the cron file (again remember to change playlist directory if yours is different):

Code:
5 * * * * /usr/local/bin/dropbox_uploader.sh upload /home/pi/blissflixx/data/playlists /

Now save the file. This will backup your playlists at 5 minutes past every hour.

Finally if you need to recover your playlists from dropbox. First cd into the BlissFlixx data directory:

Code:
cd data

Now run the command to download your backed up playlists:

Code:
dropbox_uploader.sh download /playlists
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)