Tarsnap-generations icon indicating copy to clipboard operation
Tarsnap-generations copied to clipboard

Friendlier archive names, tarsnap errors

Open th3m1773n opened this issue 10 years ago • 0 comments

  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.

th3m1773n avatar Mar 05 '14 20:03 th3m1773n