[Nelug] Auto Backup

Martin Ward Martin.Ward at durham.ac.uk
Thu Sep 18 10:27:00 UTC 2003


On Thursday 18 Sep 2003 10:13 am, Andrew Hatch wrote:
> 1. Write a script on A that will use scp to copy the necessary files into a
> date-stamped directory on B.
> 2. Use cron to run the script at, say, 10pm every night.
> 3. Write a script on B that will scp over to C in a similar fasion, and
> delete the files from B.
> 4. Have some mechanism of knowing that step (1) and (2) are successful and
> have completed before executing the script in (3).
> 5. Encrypt the backup (gpg)
> 6. Store the backups in appropriately time-stamped directories on C
> 7. Delete backups that are more than 2 or 3 days old.

I have been using LUFS (http://lufs.sourceforge.net/lufs/)
to mount remote directories via ssh and carry out encrypted backups.
Once mounted, the remote filesystem just looks like any other directory:
you can copy files to it, check or change timestamps etc.
So once the copy and encryption from A to B has completed
sucessfully, use ssh to run a script on B which does the same thing
for copying from B to C and deleting the files from B
(or the latter script can use scp, if you don't have root access to B).

-- 
			Martin

Martin.Ward at durham.ac.uk http://www.cse.dmu.ac.uk/~mward/ Erdos number: 4
G.K.Chesterton web site: http://www.cse.dmu.ac.uk/~mward/gkc/





More information about the Nelug mailing list