A
A
Artes2017-05-24 16:14:14
linux
Artes, 2017-05-24 16:14:14

Split tar.gz backup archive into parts during creation?

There is a need to split the backup archive into parts of 2GB
Tell me what's wrong

tar -czf /home/mybackup.tar.gz | split -b 2048m /home/video

What's the catch?
I've already tried different variations. but in fact, either I get the archive without splitting, ignoring the split or an error

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2017-05-24
@SMSdesign

Is the archive already on disk? Then like this:
Need to create an archive and split it? Then like this:

tar -czf - /home/video | split -b 2048m - "mybackup.tar.gz-part-"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question