Gestas/Tarsnap-generations — pull request #10 by th3m1773n (2014-03-05 20:04:08+00:00)
Title: Friendlier archive names, tarsnap errors

1) 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.