Created
August 7, 2017 18:41
-
-
Save hoogenm/2aba31918a9974744bd907918d003683 to your computer and use it in GitHub Desktop.
Shell script to backup a folder on a Blu-ray disc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to backup a folder to a Blu-ray medium | |
# 1) Change /dev/sr1 (if /dev/sr1 is not [the device name of] your bluray burning device) | |
# 2) Change ~/folder_to_backup into you choice of folder to backup (be aware of BR capacity, typically max 25 GiB) | |
# 3) Prior to running the script, installation of 'xorriso' is required and probably available in your distro packages | |
# Credit goes to Thomas Schmitt for providing a helpful explanation of xorriso. | |
xorriso -for_backup \ | |
-outdev /dev/sr1 \ | |
-map ~/folder_to_backup \ | |
-commit \ | |
-eject all \ | |
-end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment