Why tar is failing to backup my home?
by dedec0 from LinuxQuestions.org on (#5P290)
Look at this test, which show the error. I added a few commands before the key one, so you know the situation context:
Code:2021.09.01 18:28:43 [ 2] eu@compo: /home
$ alias du0; du0 eu/
alias du0='du -h --max-depth=0 -x'
749M eu/
2021.09.01 18:30:15 [ 0] eu@compo: ~
$ cd; cd ..
2021.09.01 18:31:22 [ 0] eu@compo: /home
$ df /var/tmp
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/system--vg-root 23G 12G 11G 54% /
2021.09.01 18:31:40 [ 0] eu@compo: /home
$ mkdir /var/tmp/eu
2021.09.01 18:32:00 [ 0] eu@compo: /home
$ tar cjf /var/tmp/eu/tudo,2021,09,01.tbz eu/
tar: eu/.gnupg/S.gpg-agent: socket ignored
tar: eu/.cache/tilda/locks/lock_32220_0: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
2021.09.01 18:56:43 [ 0] eu@compo: /home
$The error is repeatable. I did it several times: it always produces a file of the same size, with the same md5sum. I also tried to do give just "cf" to tar, instead of "cvjf" (my original command) or "cjf" (support suggestion).
Can you tell me what i should do, now? Possibly to finish this problem. I want to backup all my files from that computer, and storing them in a tar file is good, for what i should do with it.
Code:2021.09.01 18:28:43 [ 2] eu@compo: /home
$ alias du0; du0 eu/
alias du0='du -h --max-depth=0 -x'
749M eu/
2021.09.01 18:30:15 [ 0] eu@compo: ~
$ cd; cd ..
2021.09.01 18:31:22 [ 0] eu@compo: /home
$ df /var/tmp
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/system--vg-root 23G 12G 11G 54% /
2021.09.01 18:31:40 [ 0] eu@compo: /home
$ mkdir /var/tmp/eu
2021.09.01 18:32:00 [ 0] eu@compo: /home
$ tar cjf /var/tmp/eu/tudo,2021,09,01.tbz eu/
tar: eu/.gnupg/S.gpg-agent: socket ignored
tar: eu/.cache/tilda/locks/lock_32220_0: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
2021.09.01 18:56:43 [ 0] eu@compo: /home
$The error is repeatable. I did it several times: it always produces a file of the same size, with the same md5sum. I also tried to do give just "cf" to tar, instead of "cvjf" (my original command) or "cjf" (support suggestion).
Can you tell me what i should do, now? Possibly to finish this problem. I want to backup all my files from that computer, and storing them in a tar file is good, for what i should do with it.