[NTLUG:Discuss] Shell script help 2
Rev. wRy
slot0k at pogox.org
Fri May 12 11:44:38 CDT 2006
On Fri, 2006-05-12 at 10:58, . Daniel wrote:
> Also on my list of "seems simple enough" things to script:
>
> A simple backup script. Basically, what I want is this:
>
> backup.sh source_dir backup_dir
>
> where the copy operation is controlled like this:
#!/bin/bash
rsync -avz source_dir backup_dir
since you have it in a script. :)
man rsync for more details or see here for more detailed scripts:
http://www.mikerubel.org/computers/rsync_snapshots/
More information about the Discuss
mailing list