Tarsnap-generations
Tarsnap-generations copied to clipboard
Friendlier archive names, tarsnap errors
- When using paths like /path/to/my/folder inside tarsnap.folders, tarsnap-generations will use that as $dir in the filename, which can cause issues because of slashes. Proposed method is to replace slashes with dots to keep filenames harmless.
2)Line 124, the exit $? exits with the status of the last echo, which is always 0. Better to store tarsnap's code in an $errcode variable and use it in the exit statement.