All pastes #729069 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-07 16:54 UTC
rendered paste body
#!/bin/sh

TARGET="/backup/foo-web.com"

HOST="foo.com"

# Snapshot of current system. Exact clone of www.
rsync --rsh=ssh -a --delete root@$HOST:/usr/home/www/ $TARGET/$HOST/www

rsync --rsh=ssh -a --delete root@$HOST:/backup/mysql/ $TARGET/$HOST/mysql

exit 0