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

[Feature Request] Split Large ‘tar’ Archive into Multiple Files of Certain Size #462

Open
thangckt opened this issue Jun 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@thangckt
Copy link
Contributor

thangckt commented Jun 3, 2024

Dear developers,

Can you give an option to split a large .tar file into smaller parts before downloading?

It will more efficient for transferring.

I face a problem that the backward files have large size, then it can not be downloaded, even dpdispatcher finishs without error.

Thank

@thangckt thangckt changed the title Split Large ‘tar’ Archive into Multiple Files of Certain Size [Feature Request] Split Large ‘tar’ Archive into Multiple Files of Certain Size Jun 4, 2024
@felix5572
Copy link
Collaborator

for temp use just modify dpdispatcher/contexts/ssh_context.py _get_file method? (tar_command and split command).

For example

# Step 1: Create a tar archive
tar -cvf archive.tar largefile.txt

# Step 2: Split the tar archive into 100 MB chunks
split -b 100M archive.tar archive_part_

# Step 3: Combine the split files back into a single tar file
cat archive_part_* > archive.tar

# Step 4: Extract the contents of the tar file
tar -xvf archive.tar

@njzjz njzjz added the enhancement New feature or request label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants