Synchronization between live content and its backup involves the building two separate lists, one representing live content and one for the backup, and comparing these lists. By finding, or not finding, items in the live content and in the backup, synchronization actions can be initiated, such as add, remove, and replace. What has to be identified between the lists are these categories of content: (a) files that are unchanged, (b) files that are changed, (c) files that are in the live content, but not in the backup, and (d) files that are in the backup, but not in the live content.
Write a program that compares files in a live folder (and its subfolders) and its backup, and updates the backup by:
Here are the specifications:
Here's what a MyBackup.txt might look like for an iTunes volume on a Windows system, backing up to a network drive:
C:\Documents and Settings\Robert Burns\My Documents\My Music\iTunes \\192.168.1.89\music\Robert .mp3 .m4aHere's what a MyBackup.txt might look like for an iTunes volume on an Apple system, backing up to a network drive:
/Volumes/Macintosh HD/Users/tina/Music/iTunes/iTunes Music /Volumes/BURNS;SERVER/Tina .mp3 .m4aThis project is worth 100 points, awarded as follows: 20 points for the final code's neatness and presentation, including alignment and indenting of code, and comments, 80 points for the correctness of the solution. 10 points will be deducted for each listed specification that is not satisfied, with partial credit possible. Zero points will be awarded for a source file that does not compile.
Post your project2.jar file to your student UNIX account for grading and credit. The jar should contain all of the files from your lab work to date. This does not have to be complete through lab 9 -- just go as far as you need to go in order to have the data structure classes needed in the project. Do not move any lab files into the compsci61b.project2 package -- leave then in the compsci61b package!
[ Home | Contact Prof. Burns ]