All pastes #47197 Raw Edit

Mine

public text v1 · immutable
#47197 ·published 2006-03-27 20:05 UTC
rendered paste body
basically, in the shell script would be something like this, name it like /home/user/backup.sh

#!/bin/sh
rsync -a /from/this/path /to/this/backup/dir

save and close, see rsync's man page for more options.


then you need to add a cron job:

# crontab -e

and you would want to have an entry like this

* * * * 0 /home/user/backup.sh
# --^----
# \every Sunday

save and close and that should be it.

also see here http://www.adminschoice.com/docs/crontab.htm or cron's manpage for the syntax and usage of c
ron, it can be confusing
~