![]() |
2010-09-14
, 21:13
|
Posts: 2,829 |
Thanked: 1,459 times |
Joined on Dec 2009
@ Finland
|
#2
|
![]() |
2010-09-14
, 21:45
|
|
Posts: 168 |
Thanked: 58 times |
Joined on Aug 2010
@ Vienna
|
#3
|
![]() |
2010-09-14
, 21:58
|
Posts: 2,802 |
Thanked: 4,491 times |
Joined on Nov 2007
|
#4
|
When I am using tar to pack files with
tar -cvzf /media/mmc1/backup.tar.gz /
What can I do?
The Following User Says Thank You to lma For This Useful Post: | ||
![]() |
2010-09-15
, 05:55
|
|
Posts: 466 |
Thanked: 180 times |
Joined on Feb 2010
|
#5
|
You need to exclude /sys & /proc at the very least. You probably also want to exclude other filesystems like /media/mmc1 and python bind mounts.
sudo gainroot mount --bind / /mnt tar -cvzf /media/mmc1/backup.tar.gz /mnt
The Following User Says Thank You to clasificado For This Useful Post: | ||
The Following User Says Thank You to lma For This Useful Post: | ||
![]() |
2010-09-15
, 19:28
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#7
|
![]() |
2010-09-15
, 19:33
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#8
|
![]() |
2010-09-15
, 20:54
|
Posts: 2,802 |
Thanked: 4,491 times |
Joined on Nov 2007
|
#9
|
I mean - recursive write of tar file. Commands like "tar cvf somefile /" will never ends until the space on somefile file system is exhausted. Because tar will try to write somefile into somefile!
![]() |
2010-09-15
, 23:09
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#10
|
When I am using tar to pack files with
tar -cvzf /media/mmc1/backup.tar.gz /
or
tar -cvf /media/mmc1/backup.tar /
onto the SD card as root user I am getting
"tar: short read"
and the tar file is garbage.
:-(
What can I do?
(I am used to Linux so if there is an alternative I can try please tell me, but normally tar should work on a Linux system!)