From: Paul Furness <paul.furness@vil.ite.mee.com>
To: Shaggy Im-erbtham <shaggy@loxinfo.co.th>
Cc: linux-newbie@vger.kernel.org
Subject: Re: need method of backing up files
Date: 08 Nov 2002 13:51:33 +0000 [thread overview]
Message-ID: <1036763493.20662.56.camel@zebra.vil.ite.mee.com> (raw)
In-Reply-To: <4.3.2.7.0.20021108184521.023f8f00@lox2.loxinfo.co.th>
Well, there are so many ways of doing this that it's difficult to know
where to start!
There are two parts to what you want to do: scheduling when the backup
happens and doing the actual backup.
The scheduling is easy - use cron. man crontab will get you started on
that. One thing to be aware of is permissioning - if it's all on one
box, then root could run the backups fine, but you might not want to run
it as root, in which case a user like operator is used, but it runs the
actual backup binary SUID root.
Doing the backup:
A lot depends on how often you want to restore, and how you want to do
this - do you want to pull out individual files, or restore everything
in a give directory? How much data is there - is it necessary to
compress the backed up data?
If _ALL_ you want to do is copy files from one place to another once per
day, retaining permissions etc, then combine find with cpio. You can set
find to find only files which have been modified within the last day.
The commands you'd use (taking the first of the examples you give) would
be something like:
cd /home/peter
find . -depth -mtime -1 -print | cpio -pmudv /mnt/1monday/peter >
{Some_Log_File}
by using different options to cpio, you can also use this technique to
create a single archive file or go direct to a tape - say once per week
as a full backup. The man page for cpio should help you there.
If you want to simply create an archive of anything that changed since
the last backup, you could use dump. This is usually run once per week
as a full backup, and all the times in between as an incremental backup.
When run as an incremental, dump backs up all the files which have
changed since the last incremental backup of the same level. Again, look
at the man page for dump which explains it fairly well.
Paul.
On Fri, 2002-11-08 at 11:55, Shaggy Im-erbtham wrote:
> I use Slackware 7.0 with upgraded 2.4.18 kernel in a box which serves
> as file server to 5 win9x clients.
>
> Is there a method to perform incremental back-ups for every user, for
> every day of the week.
>
> Eg. /home/peter
> /home/paul
> /home/mary
>
> to be backed up everyday into day-of-the-week directories
> so on Monday, files that were updated today would be copied to
> each user's sub-directory in the monday directory.
> /mnt/1monday/peter
> /mnt/1monday/paul
> /mnt/1monday/mary
>
> and so on
> /mnt/2tuesday/peter
> /mnt/2tuesday/paul
> /mnt/2tuesday/mary
>
> Sometimes we need to track the daily changes that are made, that's
> why.
>
> I'm aware RAID is available but I think this is another thing altogether.
>
> TIA
> Shaggy
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
--
Paul Furness
Systems Manager
Steepness is an illusion caused by flat things leaning over.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2002-11-08 13:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-07 6:58 Tkdesk Segmentation Fault Peter
2002-11-07 10:41 ` Elias Athanasopoulos
2002-11-08 2:13 ` Peter
2002-11-08 9:53 ` Elias Athanasopoulos
2002-11-08 11:55 ` need method of backing up files Shaggy Im-erbtham
2002-11-08 13:51 ` Paul Furness [this message]
2002-11-08 14:35 ` Paul Kraus
2002-11-08 15:38 ` Paul Furness
2002-11-08 21:37 ` Paul Kraus
2002-11-18 12:08 ` Paul Furness
2002-11-08 15:09 ` Mr. James W. Laferriere
2002-11-09 2:36 ` Tkdesk Segmentation Fault lawson_whitney
2002-11-10 4:24 ` Peter
2002-11-10 10:22 ` Elias Athanasopoulos
2002-11-11 3:35 ` Peter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1036763493.20662.56.camel@zebra.vil.ite.mee.com \
--to=paul.furness@vil.ite.mee.com \
--cc=linux-newbie@vger.kernel.org \
--cc=shaggy@loxinfo.co.th \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox