Re: Looking for a Backup Program

Peter Ruskin <[email protected]>
Newsgroups gmane.linux.gentoo.newbies
Message-ID <[email protected]>
On Friday 13 Sep 2002 02:42, Kent Jantz wrote:
> I'm looking for a backup program that will do repeatable schedlued
> backups, doesn't have to be to fancy.  I looked at Rdiff but I don't
> know if it's repeatable.
>
> Kent
>
tar?

for example /etc/cron.daily/backup-peter1:

#!/bin/bash
echo "Job started at $(date)."
echo
# Backup jobs for cron.daily...
downloadfrom="/home/peter/"
downloadto="/bak/daily/"
stub="gentoo1.4-peter-"
dirs=".kde3 OpenOffice.org1.0 Mail win"
for dir in $dirs; do
	echo "Deleting stale $(date +%A) backups of $dir ..."
	echo
	rm -f $downloadto$(date +%a)-$stub$dir-2*
done
cd $downloadfrom
for dir in $dirs; do
	echo
	echo "Backing up $downloadfrom$dir to $downloadto ..."
	echo "Job started at $(date)."
	echo "            Please be patient."
	tar zcvf $downloadto$(date +%a)-$stub$dir-$(date +%Y-%m-%d-%H%M).tar.gz 
$dir
done
echo
echo "All finished at $(date)."

-- 
Gentoo Linux (portage-2.0.36).  KDE: 3.0.3  Qt: 3.0.5
AMD Athlon(tm) XP 1600+ 512MB.	Kernel: 2.4.19-win4lin.	GCC 3.2
Linux user #275590 (http://counter.li.org/).  up 51 min.
#=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=#
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.