Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Unable to use '-x' with large directories. #15

Closed
ipsi opened this issue Jun 1, 2015 · 0 comments
Closed

Unable to use '-x' with large directories. #15

ipsi opened this issue Jun 1, 2015 · 0 comments

Comments

@ipsi
Copy link
Contributor

ipsi commented Jun 1, 2015

Attempting to use the -x option if the directory contains a large number of files results in the following:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     02015/06/01 15:49:32 could not run tar: fork/exec /usr/bin/tar: argument list too long

This is probably because the directory has 15,502 files in it. I believe the appropriate solution is to add the option -T - to the tar command, and to send the list of files to add via stdin.

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

No branches or pull requests

1 participant