[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Backup Script



High,

On Sat, 19 Oct 2002, Debian User wrote:

> Would anyone happen to know of a ready made backup (tar) script for a
> debian box, something that I could tell to backup to another drive, and
> make full copies with incremental updates throughout the week.  Would be
> nice to have it report to a file too.  I have messed around with using
> tar, but don't know enough to make a nice backup script yet, maybe
> someone already has one made up they could hand out.  Don't want an
> excessive script, just something that gets to the point.
>
What about a cron job? Put this in /etc/cron.daily/backup

#!/bin/sh
tar -cvzf /mnt/drive2/backup.tgz /home /root /etc | sendmail root

I have not tried this myself, but your question seems as simple as this.
You can edit this script to satisfy your needs (like adding the date to
the filename, delete files older than a week, etc).

Don't forget to set the execution flag of the backup file.

Greetz,
Sebastiaan


--
  NT is the OS of the future. The main engine is the 16-bit Subsystem
  (also called MS-DOS Subsystem). Above that, there is the windoze 95/98
  16-bit Subsystem. Anyone can see that 16+16=32, so windoze NT is a
  *real* 32-bit system.


> Thanks a bunch
>
> du
>
>
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>



Reply to: