I have a script called rsync_current.sh
online at my site
which does exactly that: make a mirror of the Slackware -current tree using rsync.
You can use it to mirror other Slackware releases as well (read the header message inside the script). The only thing you have to edit in the script before running it, is the value of the TOPDIR variable, to let it point to the directory where you want to have your mirrored directory tree.
You can add a line to your crontab (by running "crontab -e"
) like this (copy the script to /usr/local/bin
# Keep the Slackware -current tree in sync:
45 5 * * sun /usr/local/bin/rsync-current.sh
And it will re-sync your local mirror every sunday night at 05:45.
If you want to exclude, say, zipslack, you can edit the script (add --exclude "zipslack/*"
to the rsync command), or run the unmodified script like this:
rsync_current.sh --exclude "zipslack/*"