From nadeem.m.khan@gmail.com Thu Feb 23 12:56:20 2006 From: "Nadeem M. Khan" To: linuxers@mm.ilug-bom.org.in Subject: [ILUG-BOM] Differential backups with tar. Date: Thu, 23 Feb 2006 12:56:11 +0530 Message-ID: <1140679570.2480.24.camel@nadeemdesk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8217616028407371979==" --===============8217616028407371979== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi. I've been trying to get differential backups with tar. I've got it working nice and fine except for one problem. If a file is modified after the last full backup, it gets included in my differential backup, as it should. But my differential backup also includes directories that have not been modified since the last full backup. These directories get included as empty directories. The files in them (rightly) do not get included in the differential. To create a full backup I do: tar cvf /backups/full.tar /home To create a differential, I use the timestamp of the full backup archive as a reference: tar cvf /backups/diff.tar --newer="`date -r /backups/full.tar`" /home Works well, except for the directory inclusion part. Am I missing something? Regards, NMK. --===============8217616028407371979==-- From lists@anoan.com Fri Feb 24 06:45:31 2006 From: benoy To: linuxers@mm.ilug-bom.org.in Subject: Re: [ILUG-BOM] Differential backups with tar. Date: Fri, 24 Feb 2006 06:46:22 +0530 Message-ID: <43FE5E66.7090203@anoan.com> In-Reply-To: <1140679570.2480.24.camel@nadeemdesk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2727591439453046719==" --===============2727591439453046719== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Nadeem M. Khan wrote: > Hi. > > I've been trying to get differential backups with tar. I've got it > working nice and fine except for one problem. If a file is modified > after the last full backup, it gets included in my differential backup, > as it should. But my differential backup also includes directories that > have not been modified since the last full backup. These directories get > included as empty directories. The files in them (rightly) do not get > included in the differential. > > To create a full backup I do: > > tar cvf /backups/full.tar /home > > To create a differential, I use the timestamp of the full backup archive > as a reference: > > tar cvf /backups/diff.tar --newer="`date -r /backups/full.tar`" /home > > Works well, except for the directory inclusion part. Am I missing > something? > for differential backups I will suggest rsync I am running below script by cron job every day which will create differential backup(daily basis) on current folder and moved only changed file to another folder called changes/`date +%d%m%y`. And verbose mode will generate a detailed report on email every time. And recovery is very easy. Hope this helps and you can find more resource from http://rsync.samba.org/examples.html /Benoy --===============2727591439453046719==-- From nadeem.m.khan@gmail.com Fri Feb 24 22:39:36 2006 From: Nadeem M Khan To: linuxers@mm.ilug-bom.org.in Subject: Re: [ILUG-BOM] Differential backups with tar. Date: Fri, 24 Feb 2006 22:40:14 +0530 Message-ID: <98b265ee0602240910x7605a506ifb3cf6b50cf5e6b@mail.gmail.com> In-Reply-To: <43FE5E66.7090203@anoan.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6409154251593537335==" --===============6409154251593537335== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 2/24/06, benoy wrote: > > > for differential backups I will suggest rsync I backup to a tape. I too have a script, but posted only the relevant lines to isolate the issue. Could anyone else suggest a differential backup scheme using tar (and not any third-party tools like amanda)? Regards, NMK. --===============6409154251593537335==-- From amitabhmca@yahoo.com Sat Feb 25 14:30:34 2006 From: amitabh pandey To: linuxers@mm.ilug-bom.org.in Subject: Re: [ILUG-BOM] Differential backups with tar. Date: Sat, 25 Feb 2006 01:00:40 -0800 Message-ID: <20060225090040.55019.qmail@web36215.mail.mud.yahoo.com> In-Reply-To: <98b265ee0602240910x7605a506ifb3cf6b50cf5e6b@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5772777359927199712==" --===============5772777359927199712== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit HI Nadeem, Please visit this URL--www.netadmintools.com You will get your solution ... Thanks AMitabh Nadeem M Khan wrote: On 2/24/06, benoy wrote: > > > for differential backups I will suggest rsync I backup to a tape. I too have a script, but posted only the relevant lines to isolate the issue. Could anyone else suggest a differential backup scheme using tar (and not any third-party tools like amanda)? Regards, NMK. -- http://mm.glug-bom.org/mailman/listinfo/linuxers --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. --===============5772777359927199712==--