Much scouring of dejanews and poring over this simple shell script but no
working backup solution. I am looking for a basic tar routine that will do
incremental backups, taking its input from `find'. The latter uses a
touched file from the previous execution instance to find changed files.
Complication is that we need to filter out the /proc and /dev hierarchies -
I choose to do this with a perl filter.
Problems (that I know of)
- we occasionally *on filenames with spaces.
- the nst0 (non rewinding) mechanism does not seem to work well.
- tape backs up "forever" - maybe a recursive link.
What is better or fixes this:
$1 can be `f' full or `i' incremental.
case $1 in
f) find / \! -type d -depth -print0|perl -pe \
's/\/proc\/.*\0//g;s/\0\/dev\/pty.*\0//g'|xargs -0 tar czf /dev/nst0
i) find / -newer /usr/local/bin/backuptimeformytar \! \
-type d -depth -print0|perl -pe 's/\/proc\/.*\0//g;s/\0\/dev\/pty.*\0//g'|\
xargs -0 tar cf /dev/nst0
mt -f /dev/nst0 tell
*) echo 'How about an argument like "f" for full backup or "i" '
Tel. 021 236 111