Incremental Backups

"Trevor" <[email protected]> Mon, 7 Jun 2004 09:18:42 -0600
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
Does anybody know if I can simply use the following script to do incremental
backups on a monthly basis?  I have it set to do a daily backup every day.
Because, "force" is enabled, if it cannot find a monthly, or a weekly
backup, it does one, automatically.  The purge script will delete any files
older than 32 days.  I hate scheduling monthly, weekly and daily backups in
the cron script because they can potentially overwrite each other.  Any
pitfalls doing it this way?  It's been working for four days, so far.

I suppose I will end up with 1 monthly, 1 weekly and 30 daily directories.
That's ok, as long as I can do a restore.  When the monthly files get
deleted, and hdup has to recreate them, what will happen to the old daily
files?

Maybe full backups are the only way to go, here.

---

Basically, this is my network backup cron job:

# Network Backup enabled. (* 9:30)
0 9 * * *  	root /usr/bin/smbumount /mnt/winshare > /dev/null 2>&1
2 9 * * *  	root /usr/bin/smbmount //192.168.1.65/backup /mnt/winshare -o
username=xxxx,password=xxxx > /dev/null 2>&1
5 9 * * *   root /bin/nice -10 /usr/bin/purgedir.pl /mnt/winshare 32 >
/dev/null 2>&1
30 9 * * *  root /bin/nice -15 /usr/sbin/hdup daily server | mail -s "Server
Network Backup" postmaster

---

The purge.pl script can be found here:
http://pflanze.mine.nu/~chris/scripts/utilities/purgeolditems

---

Output for /etc/hdup/hdup.conf:

[global]
archive dir = /mnt/winshare
date spec = iso
tar = /bin/tar
always backup = on
skip = on
force = on
free = 5000m
no history = no
log = on
overwrite = on
proto = /usr/bin/ssh
proto option =  -q -oProtocol=2
user = admin
compression = gzip
compression level = 4

# ----------------------------------------
# backup configurations
# ----------------------------------------

[server]
dir = /home/myfiles
chunk size = 2000m
allow remote = no


--- Thanks, Trevor.