Backup on CD-R or RW
Sprache: English
Programmiersprache: Unix Shell
Veröffentlicht von: auriocus [nicht registriert]
Letzte Änderung: 15.05.2006
Aufrufe: 971
Beschreibung
This is simple shellscript very similar to my multimount/multiumount scripts. It is suitable for doing incremental backup on directories holding not too much so it fits on a single CD-R. If you set the Variables in the beginning correctly, you can just run ./backup.sh /some/directory and then insert a blank CD-R into the writer. The first time you run it, the shell script just does a full backup of the directory. There is one extra feature: If you include a file named "EXCLUDELIST" in any of the subdirectories, that can contain shellscript patterns ( separated by newline ), all files under this subdirectory that match the pattern are not written. This is for example useful if you want to exclude all object files, because they can easily be recompiled, just put "*.o" into "EXCLUDELIST" in the toplevel directory.When you run it a second time on the same tree and have inserted the same CD-R, the script checks what files have changed ( according to their modification time ) or if you have added new files, and writes them as the next session on the CD-R. So it gives you incremental backup, but with easy access, because the multisesion logic takes care about that you get the newest version always if you mount the CD-R regularly. Limits:- doesn't check if there is enough space- relys on that the clock is right- doesn't automatically blank a CD-RW if this would free space- quite strange program, slow- writes an image instead of using a pipe from mkisofs to cdrecord- needs bash and the GNU-shell tools, otherwise it will not work, because it relys on some specific behaviour
Code
Noch kein Kommentar vorhanden
Dieses Snippet kommentieren
Name *
E-Mail (wird nicht angezeigt) *
Website
Kommentar *
Sicherheitscode *