Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't backup / #30

Closed
assistcontrol opened this issue Jun 9, 2019 · 2 comments
Closed

Can't backup / #30

assistcontrol opened this issue Jun 9, 2019 · 2 comments

Comments

@assistcontrol
Copy link
Collaborator

This may be a niche problem, and it's entirely likely that I'm misusing tarsnap, but I have carefully set nodump flags throughout my filesystem, and run tarsnap --nodump -c /.

Setting backuptargets="/" works, but leads to strange-looking archive names. ACTS essentially unsets $nicedirname, leading to a dangling hyphen (host-type-date-). Setting $backuptargets to . produces odd names too (host-type-date-.). More ideal would be to just leave $nicedirname off entirely in that case (host-type-date).

Consider then:

if [ "$dir" = "/" ]; then
    nicedirname=""
else
    nicedirname=$(echo "-$dir" | tr -d '/')

and s/-$nicedirname/$nicedirname/.

@alexjurkiewicz
Copy link
Owner

alexjurkiewicz commented Jun 10, 2019 via email

@assistcontrol
Copy link
Collaborator Author

assistcontrol commented Jun 10, 2019

Fair enough! I'll fork it and make the changes, and take a whack at a few of the other reported issues

Thank you for all the time and work you put into ACTS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants