-
-
Notifications
You must be signed in to change notification settings - Fork 743
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
--directory option for borg create and extract #1783
Comments
I never got the point of these. Why not just cd before invoking tar/tarsnap/borg? |
Personally I use it occasionally in scripts, for atomicity (in case cd fails) and lack of side effects (no need to cd back). But I just looked at the docs https://www.gnu.org/software/tar/manual/html_node/directory.html and apparently it is meant for something else - you can use -C multiple times within tar arguments and pretty much write a program inside tar. Who knew. And now that I know, I'd say implementing this is best avoided for now. Too complicated for not enough gain. |
On Sun, Oct 30, 2016 at 10:15:21PM -0700, gleb wrote:
Note that starting a subshell will isolate environmental changes For example: Ed Blackman |
Good point, thanks! |
I wanted the ability to treat the source directory as irrelevant. This seems to be possible with:
Using I haven't yet found documentation approving of the |
There is nothing wrong with |
@ThomasWaldmann Is there anything missing from @unilynx's code mentioned in #5604? |
@alexconstsh yeah:
|
@unilynx hi. Are you willing to continue work on this feature? If not, I would like to take your code under Borg's license and work from there. |
By all means, go ahead! I still haven't gotten around to it and it would be nice to have. |
See also #4685 for more problems. |
man tar
:man tarsnap
:Would be nice to have this.
The text was updated successfully, but these errors were encountered: