Find the answer to your Linux question:
Results 1 to 4 of 4
I am looking for some help/ideas on writing a script that can backup a large music/mp3 collection that I keep adding too. Here are the details: Folder structure: Artist (folder) ...
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Posts
    32

    TAR Script to backup Music Archive

    I am looking for some help/ideas on writing a script that can backup a large music/mp3 collection that I keep adding too. Here are the details:

    Folder structure:
    Artist (folder) > Album (folder) > Song (file)

    In my head I see the script going into the artist folder identifying the album and then creating a tar.gz file of only that album and then moving onto the next album and doing the same thing, and then the next artist and so on...
    In a perfect world this would be a cron job that runs once a week and only creates new tar.gz files for new albums that have been added. So there would need to be some reverse checking built into this.

    212GB's of Music, about 40,000 Songs, so i know this will take a while to run the first time, but storage space and compute power is not a problem.

    Thanks for taking the time to read this, and I really appreciate any thoughts/ideas!!

    -Matthew-

  2. #2
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    Don't know about a script, I'd probably go with something like fwbackups or rsync (the first has a GUI, the second is console-based). They can both do what you describe.
    Stumbling around the 'net:
    www.cloudyuseful.com

  3. #3
    Just Joined!
    Join Date
    Apr 2005
    Posts
    32
    PSIC - Thanks for posting a reply. I appreciate the suggestion of fwbackups and rsync. I have downloaded fwbackups and will play around with that.

    However i am still very interested in learning and writing a script that can also accomplish this task. Can you possibly make some suggestions?

    Thanks

  4. #4
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    Hey, sorry for the late reply. For learning to write Bash scripts, this guide is really great. Hope it helps!
    Stumbling around the 'net:
    www.cloudyuseful.com

Posting Permissions

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