How do I backup my file system with tar and multi-thread?
I would like to backup my file system and do it with parallel. I found this guide: https://help.ubuntu.com/community/BackupYourSystem/TAR
Where they give me the command:
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
I found that I should put -I pigz
in the beginning of the command, however this gives me the error:
tar: Conflicting compression options
How can this be solved?
backup tar multi-core
add a comment |
I would like to backup my file system and do it with parallel. I found this guide: https://help.ubuntu.com/community/BackupYourSystem/TAR
Where they give me the command:
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
I found that I should put -I pigz
in the beginning of the command, however this gives me the error:
tar: Conflicting compression options
How can this be solved?
backup tar multi-core
With the modification, it's your conflicting command looks like this:tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
?
– Emmet
2 days ago
add a comment |
I would like to backup my file system and do it with parallel. I found this guide: https://help.ubuntu.com/community/BackupYourSystem/TAR
Where they give me the command:
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
I found that I should put -I pigz
in the beginning of the command, however this gives me the error:
tar: Conflicting compression options
How can this be solved?
backup tar multi-core
I would like to backup my file system and do it with parallel. I found this guide: https://help.ubuntu.com/community/BackupYourSystem/TAR
Where they give me the command:
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
I found that I should put -I pigz
in the beginning of the command, however this gives me the error:
tar: Conflicting compression options
How can this be solved?
backup tar multi-core
backup tar multi-core
asked 2 days ago
Jesper.LindbergJesper.Lindberg
526
526
With the modification, it's your conflicting command looks like this:tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
?
– Emmet
2 days ago
add a comment |
With the modification, it's your conflicting command looks like this:tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
?
– Emmet
2 days ago
With the modification, it's your conflicting command looks like this:
tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
?– Emmet
2 days ago
With the modification, it's your conflicting command looks like this:
tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
?– Emmet
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
The z
flag you have in your command means:
-z, --gzip, --gunzip, --ungzip
Filter the archive through gzip(1).
So if you then use -I
which means:
-I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression.
The argument can contain command line options.
Then you are telling it to use both gzip
and pigz
, so it complains because you've given it conflicting compression options. So just remove the z
:
tar -cvf backup.tar.gz -I pigz --exclude=/backup.tar.gz --one-file-system /
Note that I also removed the -p
since that shouldn't have any effect when creating an archive:
-p, --preserve-permissions, --same-permissions
extract information about file permissions (default for superuser)
You should use that when extracting, not when creating the archive.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124015%2fhow-do-i-backup-my-file-system-with-tar-and-multi-thread%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The z
flag you have in your command means:
-z, --gzip, --gunzip, --ungzip
Filter the archive through gzip(1).
So if you then use -I
which means:
-I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression.
The argument can contain command line options.
Then you are telling it to use both gzip
and pigz
, so it complains because you've given it conflicting compression options. So just remove the z
:
tar -cvf backup.tar.gz -I pigz --exclude=/backup.tar.gz --one-file-system /
Note that I also removed the -p
since that shouldn't have any effect when creating an archive:
-p, --preserve-permissions, --same-permissions
extract information about file permissions (default for superuser)
You should use that when extracting, not when creating the archive.
add a comment |
The z
flag you have in your command means:
-z, --gzip, --gunzip, --ungzip
Filter the archive through gzip(1).
So if you then use -I
which means:
-I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression.
The argument can contain command line options.
Then you are telling it to use both gzip
and pigz
, so it complains because you've given it conflicting compression options. So just remove the z
:
tar -cvf backup.tar.gz -I pigz --exclude=/backup.tar.gz --one-file-system /
Note that I also removed the -p
since that shouldn't have any effect when creating an archive:
-p, --preserve-permissions, --same-permissions
extract information about file permissions (default for superuser)
You should use that when extracting, not when creating the archive.
add a comment |
The z
flag you have in your command means:
-z, --gzip, --gunzip, --ungzip
Filter the archive through gzip(1).
So if you then use -I
which means:
-I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression.
The argument can contain command line options.
Then you are telling it to use both gzip
and pigz
, so it complains because you've given it conflicting compression options. So just remove the z
:
tar -cvf backup.tar.gz -I pigz --exclude=/backup.tar.gz --one-file-system /
Note that I also removed the -p
since that shouldn't have any effect when creating an archive:
-p, --preserve-permissions, --same-permissions
extract information about file permissions (default for superuser)
You should use that when extracting, not when creating the archive.
The z
flag you have in your command means:
-z, --gzip, --gunzip, --ungzip
Filter the archive through gzip(1).
So if you then use -I
which means:
-I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression.
The argument can contain command line options.
Then you are telling it to use both gzip
and pigz
, so it complains because you've given it conflicting compression options. So just remove the z
:
tar -cvf backup.tar.gz -I pigz --exclude=/backup.tar.gz --one-file-system /
Note that I also removed the -p
since that shouldn't have any effect when creating an archive:
-p, --preserve-permissions, --same-permissions
extract information about file permissions (default for superuser)
You should use that when extracting, not when creating the archive.
answered 2 days ago
terdon♦terdon
66.8k12139221
66.8k12139221
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124015%2fhow-do-i-backup-my-file-system-with-tar-and-multi-thread%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
With the modification, it's your conflicting command looks like this:
tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
?– Emmet
2 days ago