teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Fri Mar 26, 2004 5:59 pm Post subject: |
|
|
First to answer number 2, there are a fair number of backup scripts out on the internet or even here on the forums, just search w/ the terms 'tar' and 'backup' . From there you just need to look in man cron for the syntax to get it to run at your desired interval.
to answer number one, the simplest way to write one is using shell script, take this bash example: Code: | mount nfsshare #one described in fstab
tar -cf rmotemachine:wherever/mybackup /.
umount nfsshare
|
Now that's a horrible way to do things and I haven't used nfs in a year or so but you get my drift. Your general steps are mounting the NFS share, run tar, copy the file, unmount the share. man nfs describes how to put an nfs share description into fstab. You can set up anything to run as cron as long as it's executable. |
|