LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 08-15-2009, 07:17 AM   #1
KrzysieQ
LQ Newbie
 
Registered: Aug 2007
Posts: 12
Thanked: 0
Fully restored from tar.gz Backup?


[Log in to get rid of this advertisement]
Hi, I make backup of my System using tar:
Code:
tar cvpPfz /magazyn/Backup/`date +%m-%d-%Y-%H-%M`.tar.gz --exclude={"/home/*","/media/*","/mnt/*","/proc/*","/sys/*","/tmp/*","/var/run/*","/var/tmp/*","/root/*","/magazyn/*","/usr/src/*"} /
I can restore that backup any time, but files which was created after last backup will remain. Is it any way to remove that files in a simple way?
KrzysieQ is offline  
Tag This Post , ,
Reply With Quote
Old 08-16-2009, 04:41 PM   #2
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 522
Thanked: 17
I think tar maybe a bit too simple for that. Have you tried something like Mondo Archive?
watcher69b is offline     Reply With Quote
Old 08-16-2009, 07:14 PM   #3
:::
Member
 
Registered: Aug 2009
Distribution: slackware 12.2
Posts: 51
Thanked: 4
Quote:
Originally Posted by watcher69b View Post
I think tar maybe a bit too simple for that. Have you tried something like Mondo Archive?
what? so you are simple just because you're someone one can get good along with?

Code:
Is it any way to remove that files in a simple way?
there's a --diff option. use this to find the files which are not in the backup. filter the !--exclude and then rm them . it's brute force and i think there is a more elegant way to do this but as i used to say: when you hit, hit hard .
::: is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
How to backup using tar emymcse Linux - Server 1 09-21-2008 08:29 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM
Restored backup, now new root partition reporting wrong size. wackman Linux - Software 6 05-28-2005 03:24 AM
Tar backup TheRealDeal Linux - General 7 02-08-2005 04:25 PM
tar as backup imsajjadali Red Hat 4 02-07-2004 04:46 PM


All times are GMT -5. The time now is 09:50 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration