chill wrote: > Looking for advice/experience, especially if it's relevant to Linux, > particularly pCP. > > My music library sits on a hard disk attached to a Raspberry Pi (3B+) > pCP server via USB - this drive is shared on the network via Samba. I > have another Raspberry Pi (Zero W), also running pCP, that mounts this > drive as a network share. This second RPi has a backup hard drive > attached via USB that maintains an exact copy of the main library via a > cron job that runs rsync once a day. > > What I'd like to do in addition is maintain a second, compressed (MP3), > copy of the main library in a separate folder on the backup disk. I'll > use this as a 'portable' copy that I can copy to a flash drive for use > in another pCP in my camper van. I expect another cron job, running a > transcoding script of some sort, would be the way to go, but what should > go in that script? > > My desired script will only have to deal with 'whole album' FLAC files > with associated CUE files (all other types of file will be dealt with in > a one-off initial copy/transcode task). I think I'd want to transcode > these to per-track MP3s, although if it's feasible to convert a 'whole > album' FLAC file to a 'whole album' MP3, and automatically (via a > script) adjust the CUE file to work with this MP3 file then I'd be > interested. > > So how would I go about this? Could I somehow configure rsync to create > a file list of changed files, to determine when files need to be added > to the portable copy? What software would I use on a pCP to transcode a > whole album FLAC file into single-track MP3 files, and how could I > script this?
Here's what I'd do: - get your usb storage device - choose a compressed filesystem - I'd try squashfs or btrfs -- better check to make sure your pi's linux kernel can mount these by default first. https://en.wikipedia.org/wiki/Category:Compression_file_systems - use gparted to format your usb device with a compressed filesystem - move your files onto the compressed filesystem - use rsync to sync your data -- if your usb storage is mounted at /mnt/user/music and your master location is on computer2 in directory /home/user/music... you'd do `rsync -avpP username@computer2:/home/user/music/ /mnt/user/music/` ------------------------------------------------------------------------ rcampbel3's Profile: http://forums.slimdevices.com/member.php?userid=38284 View this thread: http://forums.slimdevices.com/showthread.php?t=110496 _______________________________________________ ripping mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/ripping
