LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-15-2009, 06:17 AM   #1
KrzysieQ
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Rep: Reputation: 0
Fully restored from tar.gz Backup?


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?
 
Old 08-16-2009, 03:41 PM   #2
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 539

Rep: Reputation: 39
I think tar maybe a bit too simple for that. Have you tried something like Mondo Archive?
 
Old 08-16-2009, 06:14 PM   #3
:::
Member
 
Registered: Aug 2009
Distribution: slackware 12.2
Posts: 51

Rep: Reputation: 17
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 .
 
  


Reply

Tags
backup, restore, tar


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


All times are GMT -5. The time now is 02:39 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration