Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Senior Member
    Join Date
    Nov 2009
    Location
    Seattle, WA USA
    Posts
    882

    piCorePlayer/LMS music/playlists files backup

    Hi,

    Not sure if this is the right place to post this, but I'll start here. I'm totally new to the Pi/Linux world with no code or programming experience. Nonetheless, thanks in great part to the excellent piCorePlayer "how to", I've just managed to get an RPI4 up and running with LMS as my new music server---replacing a microjukebox/vortexbox from Small Green Computer. I also have two RPI4 Pi's operating solely as Squeezelite players which are now happily connected to the LMS server and all is running just fine.

    So, on the Pi/LMS server, I have a 1tb SSD connected to one of the USB ports. That SSD was formatted, per the instructions, as EXT4 and I then transferred all of my music files from the spinning hard drive in the microjukebox to the SSD over my home network (bit of a lengthy process!).

    Now, I would like to be able to easily make backups. I have a couple of 1tb Western Digital external MyPassport USB hard drives laying around and figured to use one of those to backup the SSD. So, I have a couple questions for the experts here:

    1. To start, what is the fastest/best way to backup the entire SSD contents to the MyPassport? Do I need to reformat the MyPassport to EXT4, first?

    2. After that's done, I would like to be able to easily back up just the changed or newly added music files from the SSD to the HD. I'm planning to leave the Pi/LMS server on 24/7 and my preference is not to leave the HD powered on 24/7, too. I'd like to be able to just plug the HD into the second USB port of the Pi (without having to turn the Pi off and on again) and have it run some sort of automated process to back up the new/changed files from the SSD, but don't know if that's possible and, if so, how to make that happen.

    Alternative #1: it'd also be workable to plug the MyPassport HD into my Windows computer and, somehow (no idea how) have my Windows computer find the SSD on the Pi and then back up new/changed files over the network to the MyPassport HD that is plugged into my Windows computer.

    Alternative #2: people much cleverer than I, no doubt, have already figured out an even better way to do all this. If so, please give this very low-tech newbie, a step-by-step how to. I'm pretty good at following directions and I do know how to open a Putty session.

    Thanks in advance for any assistance!
    Rg

    System information
    ------------------------
    Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs.

    Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1.

    LMS 8.1.2 - 1612773843 on RPI4B with 1tb Samsung T5 SSD.

  2. #2
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    4,410
    Quote Originally Posted by rgro View Post
    Hi,

    Not sure if this is the right place to post this, but I'll start here. I'm totally new to the Pi/Linux world with no code or programming experience. Nonetheless, thanks in great part to the excellent piCorePlayer "how to", I've just managed to get an RPI4 up and running with LMS as my new music server---replacing a microjukebox/vortexbox from Small Green Computer. I also have two RPI4 Pi's operating solely as Squeezelite players which are now happily connected to the LMS server and all is running just fine.

    So, on the Pi/LMS server, I have a 1tb SSD connected to one of the USB ports. That SSD was formatted, per the instructions, as EXT4 and I then transferred all of my music files from the spinning hard drive in the microjukebox to the SSD over my home network (bit of a lengthy process!).

    Now, I would like to be able to easily make backups. I have a couple of 1tb Western Digital external MyPassport USB hard drives laying around and figured to use one of those to backup the SSD. So, I have a couple questions for the experts here:

    1. To start, what is the fastest/best way to backup the entire SSD contents to the MyPassport? Do I need to reformat the MyPassport to EXT4, first?

    2. After that's done, I would like to be able to easily back up just the changed or newly added music files from the SSD to the HD. I'm planning to leave the Pi/LMS server on 24/7 and my preference is not to leave the HD powered on 24/7, too. I'd like to be able to just plug the HD into the second USB port of the Pi (without having to turn the Pi off and on again) and have it run some sort of automated process to back up the new/changed files from the SSD, but don't know if that's possible and, if so, how to make that happen.

    Alternative #1: it'd also be workable to plug the MyPassport HD into my Windows computer and, somehow (no idea how) have my Windows computer find the SSD on the Pi and then back up new/changed files over the network to the MyPassport HD that is plugged into my Windows computer.

    Alternative #2: people much cleverer than I, no doubt, have already figured out an even better way to do all this. If so, please give this very low-tech newbie, a step-by-step how to. I'm pretty good at following directions and I do know how to open a Putty session.

    Thanks in advance for any assistance!
    Alrernative #1 - Install SAMBA on the pCP (LMS page > Setup Samba Share) and use a backup programme such as freefilesync to backup one drive to the other over your network.
    Server - LMS 8.2.0 Pi4B 4GB/Argon one case/pCP v7.0.1 - 75K library, playlists & LMS cache on SSD (ntfs)
    Study - Pi3B/pCP 7.0.1/pi screen/AlloBoss DAC HAT/Ruark MR1 Mk2
    Lounge - Pi2/pCP 6.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Pi3B/pCP/Bluetooth/Echo Show 8
    Garage - DAC32 > Edifier speakers

    Spares - 2xTouch, 1xSB Radio. 1xSB3, 6xRPi

  3. #3
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,719
    Quote Originally Posted by rgro View Post
    Hi,

    Not sure if this is the right place to post this, but I'll start here. I'm totally new to the Pi/Linux world with no code or programming experience. Nonetheless, thanks in great part to the excellent piCorePlayer "how to", I've just managed to get an RPI4 up and running with LMS as my new music server---replacing a microjukebox/vortexbox from Small Green Computer. I also have two RPI4 Pi's operating solely as Squeezelite players which are now happily connected to the LMS server and all is running just fine.

    So, on the Pi/LMS server, I have a 1tb SSD connected to one of the USB ports. That SSD was formatted, per the instructions, as EXT4 and I then transferred all of my music files from the spinning hard drive in the microjukebox to the SSD over my home network (bit of a lengthy process!).

    Now, I would like to be able to easily make backups. I have a couple of 1tb Western Digital external MyPassport USB hard drives laying around and figured to use one of those to backup the SSD. So, I have a couple questions for the experts here:

    1. To start, what is the fastest/best way to backup the entire SSD contents to the MyPassport? Do I need to reformat the MyPassport to EXT4, first?

    2. After that's done, I would like to be able to easily back up just the changed or newly added music files from the SSD to the HD. I'm planning to leave the Pi/LMS server on 24/7 and my preference is not to leave the HD powered on 24/7, too. I'd like to be able to just plug the HD into the second USB port of the Pi (without having to turn the Pi off and on again) and have it run some sort of automated process to back up the new/changed files from the SSD, but don't know if that's possible and, if so, how to make that happen.

    Alternative #1: it'd also be workable to plug the MyPassport HD into my Windows computer and, somehow (no idea how) have my Windows computer find the SSD on the Pi and then back up new/changed files over the network to the MyPassport HD that is plugged into my Windows computer.

    Alternative #2: people much cleverer than I, no doubt, have already figured out an even better way to do all this. If so, please give this very low-tech newbie, a step-by-step how to. I'm pretty good at following directions and I do know how to open a Putty session.

    Thanks in advance for any assistance!
    I assume that you have a fairly decent library with a lot of files.
    The key to successful backup is to have at least two, one of which should be offsite if it can be arranged and I’d avoid using Windows in any part of it if I were you.
    IMHO the best hardware and tools are provided by NAS devices as that’s what they are designed to do.
    I have 3 x NAS, 2 of which are at least 5 years old.

    My Production and Dev LMS servers use one of them as their file store mounted in the same way on both via NFS. This NAS is the master copy. I rip CDs from dbPoweramp directly to it and all changes and edits are done here.

    I have a second NAS at a remote location via site to site VPN and every night I use the inbuilt sync tool to replicate any changes from the master to the offsite slave. At this location I also run a pCP LMS with the NAS mounted identically (means the playlists still work).

    Because I run an instance of LMS it’s very easy to check that the backup is working. A quick glance at New Music on this LMS is usually all that is required.

    I have a third very old NAS on site and once a week I replicate changes from the master to this 3rd NAS again using the inbuilt sync tools.

    Personally I don’t see any point in wasting an SSD for file storage. I run my OS and LMS on an SSD but file storage is still on spinning disks - but then none of my NAS are anywhere that mechanical sound can be heard.
    VB2.4 storage QNAP TS419p (NFS)
    Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
    Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
    Dining Room SB Boom
    Kitchen UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
    Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
    Everything controlled by iPeng & Material on iOS

  4. #4
    Senior Member
    Join Date
    Nov 2009
    Location
    Seattle, WA USA
    Posts
    882
    Quote Originally Posted by kidstypike View Post
    Alrernative #1 - Install SAMBA on the pCP (LMS page > Setup Samba Share) and use a backup programme such as freefilesync to backup one drive to the other over your network.
    Thanks kidstypike! Hmmm....I kinda' like the sound of this. As part of the LMS and SSd install with piCorePlayer, I actually did get Samba Share up and running and the contents of the SSD drive are, indeed visible on my PC. I'll look into that freefilesynch program.

    Do you happen to know whether I need to reformat the existing MyPassport HD using EXT4 to match the SSD, or can I just leave the HD as is and freefilesynch would still work if, say, the HD was formatted with NTFS and the SSD is EXT4?
    Rg

    System information
    ------------------------
    Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs.

    Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1.

    LMS 8.1.2 - 1612773843 on RPI4B with 1tb Samsung T5 SSD.

  5. #5
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    4,410
    Quote Originally Posted by rgro View Post
    Thanks kidstypike! Hmmm....I kinda' like the sound of this. As part of the LMS and SSd install with piCorePlayer, I actually did get Samba Share up and running and the contents of the SSD drive are, indeed visible on my PC. I'll look into that freefilesynch program.

    Do you happen to know whether I need to reformat the existing MyPassport HD using EXT4 to match the SSD, or can I just leave the HD as is and freefilesynch would still work if, say, the HD was formatted with NTFS and the SSD is EXT4?
    Every drive I own is formatted NTFS, whether SSD or HDD, whether connected to Windows, NAS or Pi.

    Name:  NTFS2.jpg
Views: 107
Size:  76.5 KB
    Last edited by kidstypike; 2020-12-30 at 16:21. Reason: updating drive list jpeg
    Server - LMS 8.2.0 Pi4B 4GB/Argon one case/pCP v7.0.1 - 75K library, playlists & LMS cache on SSD (ntfs)
    Study - Pi3B/pCP 7.0.1/pi screen/AlloBoss DAC HAT/Ruark MR1 Mk2
    Lounge - Pi2/pCP 6.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Pi3B/pCP/Bluetooth/Echo Show 8
    Garage - DAC32 > Edifier speakers

    Spares - 2xTouch, 1xSB Radio. 1xSB3, 6xRPi

  6. #6
    Senior Member Tony T's Avatar
    Join Date
    Nov 2009
    Posts
    1,146
    Use rsync to backup your SSD to your WD. No need to format the WD as Ext4
    After the initial backup it will go faster as only changed files will be copied then.
    IIRC, there is a Windows implementation of rsync, but I never used it, i have a Mac and use rsync to backup my Music Files.
    Last edited by Tony T; 2020-12-30 at 16:29.
    Tony
     SBTouch ♪ SBRadio ♬

  7. #7
    Senior Member
    Join Date
    Nov 2009
    Location
    Seattle, WA USA
    Posts
    882
    Quote Originally Posted by Tony T View Post
    Use rsync to backup your SSD to your WD. No need to format the WD as Ext4
    After the initial backup it will go faster as only changed files will be copied then.
    IIRC, there is a Windows implementation of rsync, but I never used it, i have a Mac and use rsync to backup my Music Files.
    Thank you, Tony T. That's just the right solution for me. Got it and it's running the backup as I write this.

    Thanks again.
    Rg

    System information
    ------------------------
    Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs.

    Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1.

    LMS 8.1.2 - 1612773843 on RPI4B with 1tb Samsung T5 SSD.

  8. #8
    Senior Member
    Join Date
    Nov 2009
    Location
    Seattle, WA USA
    Posts
    882
    Quote Originally Posted by Tony T View Post
    Use rsync to backup your SSD to your WD. No need to format the WD as Ext4
    After the initial backup it will go faster as only changed files will be copied then.
    IIRC, there is a Windows implementation of rsync, but I never used it, i have a Mac and use rsync to backup my Music Files.
    Hey Tony T...

    It worked fine on Windows. I also have one last question about rsync. Does the basic sync/backup function continue to work after the 30 day free trial period or do you have to pay to keep it functioning???
    Rg

    System information
    ------------------------
    Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs.

    Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1.

    LMS 8.1.2 - 1612773843 on RPI4B with 1tb Samsung T5 SSD.

  9. #9
    Senior Member Tony T's Avatar
    Join Date
    Nov 2009
    Posts
    1,146
    Quote Originally Posted by rgro View Post
    Hey Tony T...

    It worked fine on Windows. I also have one last question about rsync. Does the basic sync/backup function continue to work after the 30 day free trial period or do you have to pay to keep it functioning???
    I use the open source (free) rsync from https://rsync.samba.org/ for my Mac and Linux Pi
    If the Windows variant requires payment, then you’ll need to (and should) pay after 30 days.

    Another option is to use the rsync in pCP (you will need to d/l the package first from
    Main->Additional Functions->Extentions
    You can the SSH into pCP and try to run rsync from the Pi
    Last edited by Tony T; 2020-12-31 at 06:41.
    Tony
     SBTouch ♪ SBRadio ♬

  10. #10
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    6,603
    Quote Originally Posted by rgro View Post
    Hey Tony T...

    It worked fine on Windows. I also have one last question about rsync. Does the basic sync/backup function continue to work after the 30 day free trial period or do you have to pay to keep it functioning???
    Freefilesync as mentioned in an earlier post is free as the name suggests.

    Sent from my Pixel 3a using Tapatalk

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •