Initially my post had a typo, I do a complete scan on 10,000 tracks on a
pi4 in 4 minutes, so unless you have 150,000 files (possible), it
shouldn’t take over an hour on a pi4

I have my files on an attached USB drive, and I created a directory for
the files (/mnt/MUSIC/FLAC) and a dir for my script and backups
(/mnt/MUSIC/Other)
My script is simply 

Code:
--------------------
    
  # backup.sh
  tar -chzvf /mnt/MUSIC/Other/piCorePlayer_Backup.tgz \
  /mnt/MUSIC/Other/ \
  /mnt/MUSIC/Playlists/ \
  /usr/local/slimserver/prefs/ \
  /mnt/CACHE/slimserver/prefs/ \
  /mnt/mmcblk0p2/tce/mydata.tgz
  # backing up usr/local/slimserver/prefs/ is redundant 
  
--------------------


In Tweeks, I have a cron to Tar weekly (0 1 * * 0
/mnt/MUSIC/Other/backup.sh)

And on another pi, I copy over the backup with rsync, with a cron of 

Code:
--------------------
    
  # rsync piCorePlayer Backup from piCorePlayer every Sunday at 2am
  0 2 * * 0 /usr/bin/rsync -a 
tc@picoreplayer:/mnt/MUSIC/Other/piCorePlayer_Backup.tgz /home/pi
  
--------------------



Tony
  SBTouch ♪ SBRadio ♬
------------------------------------------------------------------------
Tony T's Profile: http://forums.slimdevices.com/member.php?userid=34544
View this thread: http://forums.slimdevices.com/showthread.php?t=112456

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to