[NTLUG:Discuss] Backup

Greg Edwards greg at nas-inet.com
Wed Oct 10 16:32:36 CDT 2001


Patrick Parks wrote:
> 
>    Part 1.1.1    Type: Plain Text (text/plain)
>              Encoding: quoted-printable
> 
>    Part 1.2Type: application/pgp-signature

Patrick,

Based on your last comment I don't think your looking for rsync.  If
your looking for a simple way of making an image of your directories and
disk space is not a major concern.

Create a script:

maybe call it "my_backup"

#####
#!/bin/bash

cd dir_to_backup

find . -print | cpio -pdvm nfs_mount_point/dir_to_backup_to

#####

change the mode of the file "chmod +x my_backup"

and execute when desired "./my_backup"

I like to put my scripts in a subdirectory so from my home I'd usually
type "scripts/my_backup".

You don't want to put this in cron if your laptop might be disconnected
on a
regular basis.  The above command will keep all of you file dates and
permissions as original and preserve all of your links.  Just make sure
your nfs_mount_point is NOT below the dir_to_backup or you'll be backing
up files literally forever:(

-- 
Greg Edwards
New Age Software, Inc.
http://www.nas-inet.com



More information about the Discuss mailing list