LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-23-2017, 04:15 AM   #1
Glenn D.
Member
 
Registered: May 2009
Location: ACT - Australia
Distribution: Opensuse x86_64 (Latest)
Posts: 132

Rep: Reputation: 26
allow tar to complete instead of failing


Hello,

A Question:
What tar switches allow tar to complete and ignore errors ?.
Help appreciated.

Thanks
--Glenn

tar processes ~ 41,063 files and fails - see following tar command.

wc -l /home/r4/r4-sdb-file-list/r4files-sdb.log
41063 /home/r4/r4-sdb-file-list/r4files-sdb.log

# tar -cvf /media/disk2/r4files.tar /media/disk| tee /home/r4/r4-sdb-file-list/r4files-sdb.log

/media/disk/iso-factory/openSUSE-DVD-Build0146-x86_64.m3.morrors._files/
/media/disk/java/
/media/disk/java/Java_files/
/media/disk/java/java-help_files/
/media/disk/java/java-help-libnpjp2.so_files/
/media/disk/java/jre-6u14-linux-x64-rpm.bin
/media/disk/java/jre-6u14-linux-x64-rpm.bin.bak
/media/disk/jb-hifi/
/media/disk/jb-hifi/presario14-Aug09_files/
/media/disk/jb-hifi/acer-AS5536-644G32_files/
/media/disk/jibjab/
/media/disk/jibjab/2009/
/media/disk/jibjab/2009/JibJab History_files/
/media/disk/jibjab/2009/The Making of -Never a Year Like 09_files/
/media/disk/jibjab/JibJab-info_files/
/media/disk/jibjab/JibJab-info_files/JibJab_This_Land.png
/media/disk/jibjab/funnies/
/media/disk/jibjab/funnies/bush-y2005.flv
/media/disk/jibjab/info_files/

tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/show_ads.js: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/style.css: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/system.css: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/template.css: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/test_domain.js: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/typo.css: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/universe_nav.css: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/universe_nav.js: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/xajax_core.js: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/thumb_029c506ac1a3020ff6e0156a.png: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/thumb_05a3bde14acea07e18242a29.jpg: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/thumb_3296cddbcbc12f217d1e46fb.jpg: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/thumb_41d300265f61afe528569fbb.png: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/thumb_9746bf1652bf30d720f3ef9f.jpg: File removed before we read it
tar: /media/disk/linux/create-video/youtube-videos-with-linux-part-2_files/thumb_aa62405f12ea49f90e03b287.png: File removed before we read it

/media/disk/k3b/
/media/disk/k3b/k3b-fixate-error1.png
/media/disk/k3b/k3b-mp3-support_files/
/media/disk/k3b/k3b-mp3-support_files/bookmarksite_digg.gif
/media/disk/k3b/k3b-mp3-support_files/bookmarksite_google.gif
/media/disk/k3b/k3b-mp3-support_files/caf4926.jpeg
/media/disk/k3b/k3b-mp3-support_files/collapse_thead.gif
/media/disk/k3b/k3b-mp3-support_files/connection-min.js
/media/disk/k3b/k3b-mp3-support_files/founded_novell.gif
/media/disk/k3b/k3b-mp3-support_files/ga.js
/media/disk/k3b/k3b-mp3-support_files/geeko.jpg
/media/disk/k3b/k3b-mp3-support_files/geeko_icon.png
/media/disk/k3b/k3b-mp3-support_files/icon1.gif
/media/disk/k3b/k3b-mp3-support_files/im_msn.gif
/media/disk/k3b/k3b-mp3-support_files/linkback_about.gif
/media/disk/k3b/k3b-mp3-support_files/linkback_url.gif
/media/disk/k3b/k3b-mp3-support_files/lizards.png
/media/disk/k3b/k3b-mp3-support_files/menu_open.gif
/media/disk/k3b/k3b-mp3-support_files/mode_hybrid.gif
/media/disk/k3b/k3b-mp3-support_files/mode_linear.gif
/media/disk/k3b/k3b-mp3-support_files/mode_threaded.gif
/media/disk/k3b/k3b-mp3-support_files/navbits_start.gif
/media/disk/k3b/k3b-mp3-support_files/opensuse_forums.png
/media/disk/k3b/k3b-mp3-support_files/post_old.gif
/media/disk/k3b/k3b-mp3-support_files/printer.gif
/media/disk/k3b/k3b-mp3-support_files/quote.gif
/media/disk/k3b/k3b-mp3-support_files/reply.gif
/media/disk/k3b/k3b-mp3-support_files/reputation_balance.gif
/media/disk/k3b/k3b-mp3-support_files/reputation_highpos.gif
/media/disk/k3b/k3b-mp3-support_files/reputation_pos.gif
/media/disk/k3b/k3b-mp3-support_files/smile.png
/media/disk/k3b/k3b-mp3-support_files/style.css
/media/disk/k3b/k3b-mp3-support_files/style_print.css
/media/disk/k3b/k3b-mp3-support_files/user_offline.gif
/media/disk/k3b/k3b-mp3-support_files/user_online.gif
/media/disk/k3b/k3b-mp3-support_files/vbulletin_global.js
/media/disk/k3b/k3b-mp3-support_files/vbulletin_lightbox.js
/media/disk/k3b/k3b-mp3-support_files/vbulletin_menu.js
/media/disk/k3b/k3b-mp3-support_files/viewpost.gif
/media/disk/k3b/k3b-mp3-support_files/wink.png
/media/disk/k3b/k3b-mp3-support_files/yahoo-dom-event.js
/media/disk/k3b/k3b-mp3-support_files/bookmarksite_delicious.gif
/media/disk/k3b/k3b-mp3-support_files/bookmarksite_stumbleupon.gif
/media/disk/k3b/slow-unsteady-burning-via-k3b-1_files/
/media/disk/k3b/slow-unsteady-burning-via-k3b-2_files/
/media/disk/k4/
/media/disk/k4/repodata/
/media/disk/k4/repodata/2c3b415c9e793bbf4f73212ada97fb4d2ed437036e74f606cea1dea665496ee3-filelists.xml.gz
/media/disk/k4/repodata/9ca715d78bb7c34b933c053329320e78759ebc2ae2808bcd7a2f91328165fbaa-primary.xml.gz
/media/disk/k4/repodata/d949bac17eca4c78ee18b2363542ae24b8e17b3d9b8c87b8685b9a29a9464fe3-other.xml.gz
/media/disk/k4/NetworkManager-kde4-0.9.svn1128615-2.1.x86_64.rpm
/media/disk/k4/NetworkManager-kde4-libs-0.9.svn1128615-2.1.x86_64.rpm
/media/disk/k4/akonadi-runtime-1.3.80-2.3.x86_64.rpm
/media/disk/k4/akregator-4.4.3-222.9.x86_64.rpm
.
.
.
tar: /media/disk/gramps3.1.2/project_files/d79616993dab466bee3456e8ac46bfee.png: File removed before we read it
tar: /media/disk/gramps3.1.2/project_files/da9c3f343fd127052374c19e51637d53.png: File removed before we read it
tar: /media/disk/gramps3.1.2/project_files/e0f875deca04609b40a3a35dfd858618.png: File removed before we read it
tar: /media/disk/gramps3.1.2/project_files/e525e1d7589ae4b16abbb0a1dc5992ce.png: File removed before we read it
tar: /media/disk/gramps3.1.2/project_files/eebc1b9d470218b7e5f1ea91cced0371.png: File removed before we read it
tar: /media/disk/gramps3.1.2/project_files/fcf5d2036934dfa7ef2d7a77d50a235e.png: File removed before we read it
tar: /media/disk/gramps3.1.2/project_files/publish_enabled_grey.png: File removed before we read it
/media/disk/gramps3.1.2/gramps3-3.1.2-4.2.src.rpm
tar: /media/disk/gramps3.1.2/gramps3-3.1.2-4.2.noarch.rpm: File removed before we read it
tar: Exiting with failure status due to previous errors
 
Old 02-23-2017, 05:45 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,651

Rep: Reputation: 4763Reputation: 4763Reputation: 4763Reputation: 4763Reputation: 4763Reputation: 4763Reputation: 4763Reputation: 4763Reputation: 4763Reputation: 4763Reputation: 4763
see man tar. Did you try any --ignore* flags?
 
Old 02-23-2017, 05:58 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,063

Rep: Reputation: 1293Reputation: 1293Reputation: 1293Reputation: 1293Reputation: 1293Reputation: 1293Reputation: 1293Reputation: 1293Reputation: 1293
tar will actually "complete", in that it'll attempt to process all the files you've asked it to and is then telling you it's going to send back an exit errorlevel due to the previous errors.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script failing with tar command. Tadaen Linux - Newbie 4 04-27-2014 05:01 PM
tar is causing a complete freeze CaptainReboot Linux - General 3 06-14-2010 12:32 AM
FDSK Failing, Startup Process will not Complete, Debian 4.0.5 bruceam Linux - Newbie 7 03-09-2009 12:57 PM
restoring ONLY the home directory from a complete tar backup irishbitte Linux - Server 5 11-11-2008 08:24 AM
Bash backup script failing using tar and --newer option saldkj Programming 3 03-12-2005 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration