[TriLUG] rsync script

John Beimler john at radiomind.com
Fri Apr 4 10:28:25 EST 2003


JoJo Almario wrote:

> Im bad at putting out scripts with anything other than simple 
> commands. What I was looking for was a script in bash or perl that 
> would allow me to rsync a folder...lets say /home/users to a space  
> /backup/users while excluding any files with the extension " *.bkf" 
> It sounds like it would be simple but I havent been diligent in 
> learning my programming or scripting.
>
not really a script, but here:

rsync -av --delete --exclude '*.bkf' /home/users /backup/users

you may want to look at the snapshot article and scripts at 
http://www.mikerubel.org/computers/rsync_snapshots/

Peace.

john





More information about the TriLUG mailing list